(self.webpackChunk=self.webpackChunk||[]).push([[660],{17268:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsGtmId=e.GTM_ID_PATTERN=void 0,e.GTM_ID_PATTERN=/^GTM-[0-9A-Z]+$/,e.assertIsGtmId=function(t){if("string"!=typeof t||!e.GTM_ID_PATTERN.test(t))throw new Error(`GTM-ID '${t}' is not valid`)}},22920:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GtmSupport=void 0;const r=n(17268),i=n(57131);e.GtmSupport=class{constructor(t){if(this.scriptElements=[],this.isInBrowserContext=()=>"undefined"!=typeof window,Array.isArray(t.id))for(const e of t.id)"string"==typeof e?(0,r.assertIsGtmId)(e):(0,r.assertIsGtmId)(e.id);else(0,r.assertIsGtmId)(t.id);this.id=t.id,this.options={enabled:!0,debug:!1,loadScript:!0,defer:!1,compatibility:!1,...t},delete this.options.id}enabled(){var t;return null===(t=this.options.enabled)||void 0===t||t}enable(t=!0,e){if(this.options.enabled=t,this.isInBrowserContext()&&t&&!(0,i.hasScript)(e)&&this.options.loadScript)if(Array.isArray(this.id))this.id.forEach((t=>{let e;e="string"==typeof t?(0,i.loadScript)(t,{...this.options}):(0,i.loadScript)(t.id,{...this.options,queryParams:t.queryParams}),this.scriptElements.push(e)}));else{const t=(0,i.loadScript)(this.id,{...this.options});this.scriptElements.push(t)}}debugEnabled(){var t;return null!==(t=this.options.debug)&&void 0!==t&&t}debug(t){this.options.debug=t}dataLayer(){var t;return!(!this.isInBrowserContext()||!this.options.enabled)&&(window.dataLayer=null!==(t=window.dataLayer)&&void 0!==t?t:[])}trackView(t,e,n={}){var r,i;const o=this.isInBrowserContext()&&null!==(r=this.options.enabled)&&void 0!==r&&r;if(this.options.debug&&console.log(`[GTM-Support${o?"":"(disabled)"}]: Dispatching TrackView`,{screenName:t,path:e}),o){(window.dataLayer=null!==(i=window.dataLayer)&&void 0!==i?i:[]).push({...n,event:"content-view","content-name":e,"content-view-name":t})}}trackEvent({event:t,category:e=null,action:n=null,label:r=null,value:i=null,noninteraction:o=!1,...a}={}){var s,l;const c=this.isInBrowserContext()&&null!==(s=this.options.enabled)&&void 0!==s&&s;if(this.options.debug&&console.log(`[GTM-Support${c?"":"(disabled)"}]: Dispatching event`,{event:t,category:e,action:n,label:r,value:i,...a}),c){(window.dataLayer=null!==(l=window.dataLayer)&&void 0!==l?l:[]).push({event:null!=t?t:"interaction",target:e,action:n,"target-properties":r,value:i,"interaction-type":o,...a})}}}},64427:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loadScript=e.hasScript=e.GtmSupport=e.GTM_ID_PATTERN=e.assertIsGtmId=void 0;var r=n(17268);Object.defineProperty(e,"assertIsGtmId",{enumerable:!0,get:function(){return r.assertIsGtmId}}),Object.defineProperty(e,"GTM_ID_PATTERN",{enumerable:!0,get:function(){return r.GTM_ID_PATTERN}});var i=n(22920);Object.defineProperty(e,"GtmSupport",{enumerable:!0,get:function(){return i.GtmSupport}});var o=n(57131);Object.defineProperty(e,"hasScript",{enumerable:!0,get:function(){return o.hasScript}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return o.loadScript}})},57131:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasScript=e.loadScript=void 0,e.loadScript=function(t,e){var n,r,i,o,a;const s=document,l=s.createElement("script"),c=n=>{var r;null===(r=e.onReady)||void 0===r||r.call(e,{id:t,script:l}),l.removeEventListener("load",c)};if(l.addEventListener("load",c),window.dataLayer=null!==(n=window.dataLayer)&&void 0!==n?n:[],null===(r=window.dataLayer)||void 0===r||r.push({event:"gtm.js","gtm.start":(new Date).getTime()}),!t)return l;l.async=!e.defer,l.defer=Boolean(e.defer||e.compatibility),e.nonce&&(l.nonce=e.nonce);const u=new URLSearchParams({id:t,...null!==(i=e.queryParams)&&void 0!==i?i:{}}),d=null!==(o=e.source)&&void 0!==o?o:"https://www.googletagmanager.com/gtm.js";l.src=`${d}?${u}`;const f=null!==(a=e.parentElement)&&void 0!==a?a:s.body;if("function"!=typeof(null==f?void 0:f.appendChild))throw new Error("parentElement must be a DOM element");return f.appendChild(l),l},e.hasScript=function(t="https://www.googletagmanager.com/gtm.js"){return Array.from(document.getElementsByTagName("script")).some((e=>e.src.includes(t)))}},4952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"action-bar",data:function(){return{isSubmitting:!1,slots:{beforeLinks:!1,afterLinks:!1,beforeButtons:!1,afterButtons:!1}}},computed:a(a(a({},(0,r.mapState)({xBarIsVisible:function(t){return t.actionBar.isVisible},xBarSelectAll:function(t){return t.actionBar.selectAll},xBarDoneButton:function(t){return t.actionBar.doneButton},xBarCount:function(t){return t.actionBar.count},xBarLabel:function(t){return t.actionBar.label},xBarColumns:function(t){return t.actionBar.columns},xBarLinks:function(t){return t.actionBar.links},xBarButtons:function(t){return t.actionBar.buttons},xBarSideLinks:function(t){return t.actionBar.sideLinks},xBarSelectedIds:function(t){return t.actionBar.selected}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{hasSideLeftButtons:function(){return this.links.length||this.slots.beforeLinks||this.slots.afterLinks},hasSideLeft:function(){return this.xBarCount||this.xBarLabel||this.hasSideLeftButtons},hasButtons:function(){return this.xBarButtons.length||this.slots.beforeButtons||this.slots.afterButtons},hasSideRight:function(){return this.sideLinks.length},links:function(){var t=this,e=[];return this.xBarSelectAll&&(e=e.concat([{id:"~1",label:this.$trans("select_all"),onClick:function(){return t.$store.commit("actionBar/selectAll")}},{id:"~2",label:this.$trans("deselect_all"),onClick:function(){return t.$store.commit("actionBar/deselectAll")}}])),e.concat(this.xBarLinks)},sideLinks:function(){var t=this,e=[];return this.xBarDoneButton&&e.push({id:"~1",label:"string"==typeof this.xBarDoneButton?this.xBarDoneButton:"Done",onClick:function(){return t.$store.commit("actionBar/deselectAll")}}),e.concat(this.xBarSideLinks).map((function(t){return t.id="side-".concat(t.id),t}))},columnsClass:function(){var t=[0,12,0];return this.xBarColumns&&3===this.xBarColumns.length?t=this.xBarColumns.slice(0):this.hasButtons?this.hasSideLeft?t=this.links.length>3?[5,4,3]:[4,4,4]:this.hasSideRight&&(t=[2,8,2]):t=[6,0,6],t.map((function(t){return"g-col-".concat(t)}))}}),methods:{onButtonClick:function(t,e){var n=this;if(!this.isSubmitting){this.isSubmitting=e.id;var r=e.onClick(t,e);r&&r.promise?r.promise.finally((function(){n.isSubmitting=!1})):this.isSubmitting=!1}},onPortalUpdate:function(t,e){this.slots[e]=t}},watch:{xIsPageLoading:function(t,e){t!==e&&this.xBarIsVisible&&this.$store.commit("actionBar/reset")}}}},60968:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(71995),o=n(42456),a=n(14580),s=n(13844),l=n(70992),c=n(22164);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"ai-chatbot",components:{PagesTreeList:s.default},mixins:[o.mixinClickOutside,l.mixinSitemapLoad],initTimerId:null,queueTimerId:null,shuffleTimerId:null,scrollTimerId:null,data:function(){return{index:0,isVisible:!1,isVisibleMenu:null,isVisibleSubmenu:null,isQueueRunning:!1,searchableFilter:"",errorMessage:"",queue:[],messages:[],steps:[],selected:{optimize:[],improve:[],branch:[],section:[],describe:[""],counter:[],language:["en_US"]},waitingBotTexts:[],minDescribeLength:10,maxDescribeLength:1e3,aiActionToken:null}},computed:m(m(m({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xWindowHeight:function(t){return t.core.windowSize.height},xSitemapData:function(t){return t.sitemap.details},xSitemapCells:function(t){return t.sitemapCell.cells},xCellsByParentsWithHidden:function(t){return t.sitemapCell.cellsByParentsWithHidden}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData",xGetCellData:"sitemapCell/getData",xGetCellsByAttribute:"sitemapCell/getCellsByAttribute"})),{},{step:function(){return this.steps.length&&this.steps[this.steps.length-1]||null},chatState:function(){return this.xSitemapData.ai?this.xSitemapData.ai:this.steps.length>1?"pending":null},label:function(){return"done"===this.chatState?"Your updates are ready!":"submit"===this.chatState?"Creating sitemap suggestions…":"pending"===this.chatState?"Pending changes, continue in Assistant":"Need help with your sitemap?"},isSubmitting:function(){return this.queue.length||"submit"===this.step||"reset"===this.xSitemapData.ai||"save"===this.xSitemapData.ai},currentMenu:function(){return"string"==typeof this.chats[this.step].menu?this.chats[this.step].menu:this.step},canInputSubmit:function(){var t;return"describe"===this.step?this.selected[this.step][0].trim().length>=this.minDescribeLength:this.chats[this.step].searchable?!!this.selectedOptionText:!(null===(t=this.selected[this.step])||void 0===t||!t.length)},toSubmit:function(){var t=this;return this.steps.reduce((function(e,n){var r;return null!==(r=t.selected[n])&&void 0!==r&&r.length&&(e[n]=t.selected[n]),e}),{})},doneBotText:function(){if(this.steps.length){var t,e;if("branch"===(null===(t=this.steps)||void 0===t?void 0:t[2]))return"Your new branch is ready!";if("section"===(null===(e=this.steps)||void 0===e?void 0:e[2]))return"Your new section is ready!"}return"Your sitemap is ready!"},searchQuery:function(){var t=String(this.searchableFilter).trim().toLowerCase().split(" ");return t.length&&(t=t.filter((function(t){return!Slickplan.helpers.isBlank(t)}))),t},maxSubmenuHeight:function(){return this.xWindowHeight-220},selectedOptionText:function(){var t,e,n=this;if(null!==(t=this.chats[this.step])&&void 0!==t&&t.menu&&null!==(e=this.selected[this.step])&&void 0!==e&&e.length){var r,i;if("pages"===this.chats[this.step].menu)return this.xGetCellData(this.selected[this.step][0],a.constants.CELL_DATA_KEY_LABEL)||"";if("languages"===this.chats[this.step].menu)return(null===(i=this.languages.find((function(t){return t.id===n.selected[n.step][0]})))||void 0===i?void 0:i.label)||"";var o,s=this.selected[this.step][0],l=d(s.split(":"),2),c=l[0],u=l[1],f=null===(r=this.chats[this.step].menu.filter((function(t){return t.id===c})))||void 0===r?void 0:r[0];if(u)if(f.submenu)f=null===(o=f.submenu.filter((function(t){return t.id===u||t.id===s})))||void 0===o?void 0:o[0];else f=null;if(f)return f.message||f.label}return null},languages:function(){var t=a.supportedAiLanguages.map((function(t){var e=Slickplan.constants.CONTENT_LANGUAGES[t];if(!e)return null;var n=e.name===e.name_local?e.name:"".concat(e.name," / ").concat(e.name_local);return{id:t,label:n,message:"Translate to ".concat(e.name),normalizedLabel:Slickplan.helpers.normalizeString(n)}})).filter((function(t){return t}));return t.sort((function(t,e){return t.label.localeCompare(e.label)})),t},filteredLanguages:function(){var t=this;return this.searchQuery.length?this.languages.filter((function(e){var n=e.normalizedLabel;return t.searchQuery.every((function(t){return~n.indexOf(t)}))})):this.languages},chats:function(){var t,e=this,n="generate"===(null===(t=this.steps)||void 0===t?void 0:t[1]),r=Slickplan.helpers.objectCloneDeep(this.languages),i=this.xSitemapCells.length>0,o={start:{messages:["Hey! 🖐️ How can I assist you today?"],options:[{disabled:!i,label:"Optimize structure",id:"optimize"},{disabled:!i,label:[{text:"Add new"},{text:"branch",tooltip:"Create new child pages under an existing<br>parent page in your main sitemap"},{text:"or"},{text:"section",tooltip:"Segment and nest related pages to make<br>sitemap organization more manageable"}],id:"modify"},{label:"Generate new sitemap",id:"generate"}]},optimize:{messages:["Got it! I won’t modify any existing content, diagrams, or page properties, so your work will remain safe","How would you like to optimize your sitemap? You can pick multiple options:"],multi:!0,options:[{label:[{text:"Expand",tooltip:"Suggest additional pages for your sitemap"}],id:"expand",tooltip:"Suggest additional pages for your sitemap"},{label:[{text:"Reorganize",tooltip:"Enhance your sitemap’s structure and hierarchy"}],id:"reorganize",tooltip:"Enhance your sitemap’s structure and hierarchy"},{label:"Improve label names",id:"improve"}]},modify:{messages:["Which one?"],options:[{label:"Add a branch",id:"branch"},{label:"Add a section",id:"section"}]},generate:{messages:["Would you like to overwrite the current sitemap or create a new version?"],options:[{label:"Overwrite sitemap",id:"overwrite"},{label:"Create new version",id:"counter"}]},improve:{messages:["How would you like to improve those labels?"],menu:[{id:"tone",label:"Change tone",icon:"i-megaphone",submenu:[{label:"Professional",tooltip:"Formal and business-like"},{label:"Friendly",tooltip:"Warm and approachable"},{label:"Direct",tooltip:"Clear and to the point"},{label:"Playful",tooltip:"Fun and lighthearted"},{label:"Minimalist",tooltip:"Simple and concise"},{label:"Creative",tooltip:"Imaginative and unique"},{label:"Authoritative",tooltip:"Confident and assertive"},{label:"Modern",tooltip:"Trendy and up-to-date"},{label:"Elegant",tooltip:"Sophisticated and refined"},{label:"Bold",tooltip:"Strong and impactful"}]},{id:"length",label:"Change length",icon:"i-length",submenu:[{label:"Shorter"},{label:"Longer"}]},{id:"grammar",label:"Fix grammar",icon:"i-grammar"},{label:"Translate",icon:"i-translate",submenu:r}]},branch:{messages:["Choose a parent page"],placeholder:"Find",searchable:!0,menu:"pages",nextStep:"describe"},describe:{messages:[n?"Describe the site in one or two sentences":"Briefly describe the new pages"],input:!0,examples:[{html:"<p>Examples:</p><ul>".concat(n?"<li>A local Miami gym chain specializing in CrossFit</li><li>A university website emphasizing research and science programs</li><li>A pickup pickleball league</li>":"<li>Blog pages on content planning</li><li>Specialty coffee pages</li><li>Product pages</li><li>Not sure, generate some ideas for me</li>","</ul>")}],nextStep:n?"submit":"counter"},counter:{messages:["Number of pages"],options:[{label:"1-10",id:"1-10"},{label:"10-20",id:"10-20"},{label:"20+",id:"20-30"},{label:"Decide for me",id:"any"}],nextStep:n?"language":"submit"},language:{messages:["Which language?"],placeholder:"Find",searchable:!0,menu:"languages",nextStep:"describe"},overwrite:{messages:["⚠️ Overwriting a sitemap will erase your current work. Creating a new version saves your existing sitemap"],options:[{label:"Go back",id:"generate"},{label:"Confirm overwrite",id:"counter"}]}};return o.section=o.branch,o.improve.menu=o.improve.menu.map((function(t){var n=e.getLabelText(t.label);return t.id||(t.id=Slickplan.helpers.sluggify(n)),t.submenu&&(t.submenu=t.submenu.map((function(e){return e.id||(e.id=Slickplan.helpers.sluggify(e.label)),e.id.includes(":")||(e.id="".concat(t.id,":").concat(e.id)),e.message||(e.message="".concat(n," to ").concat(e.label.toLowerCase())),e}))),t})),o},disabledPagesList:function(){return"section"===this.step?[].concat(this.xCellsByParentsWithHidden[a.constants.CELL_LEVEL_HOME],this.xGetCellsByAttribute(a.constants.CELL_DATA_KEY_SUBSECTION)):"branch"===this.step?[].concat(this.xCellsByParentsWithHidden[a.constants.CELL_LEVEL_HOME],this.xCellsByParentsWithHidden[a.constants.CELL_LEVEL_UTIL],this.xCellsByParentsWithHidden[a.constants.CELL_LEVEL_FOOT]):[]}}),methods:m(m({},(0,r.mapActions)({xSitemapSectionBreadcrumbBack:"sitemapSection/backBreadcrumb"})),{},{getLabelText:function(t){return Array.isArray(t)?t.map(this.getLabelText).join(" "):"object"===u(t)?t.text||t.label:t},toggleMenu:function(t,e){this.isVisibleMenu="boolean"==typeof e?e?t:null:this.isVisibleMenu===t?null:t,this.isVisibleSubmenu=null},toggleSubmenu:function(t,e){this.isVisibleSubmenu="boolean"==typeof e?e?t:null:this.isVisibleSubmenu===t?null:t},onSearchableClick:function(){this.searchableFilter="",this.toggleMenu(this.currentMenu,!0)},menuItemClick:function(t,e){t.submenu?this.toggleSubmenu(t.id,e):this.onOptionClick(t,!0,e)},seeExamples:function(){this.examplesAdded=!0,this.addMessages(this.chats[this.step].examples,!0,!0)},onOptionClick:function(t,e,n){var r;t.disabled||(!0===e?(this.selected[this.step]=!0===n?[t.id]:(null===(r=this.selected[this.step])||void 0===r?void 0:r[0])===t.id?[]:[t.id],this.toggleMenu(null,!1)):null!=e&&e.multi?this.selected[this.step].includes(t.id)?this.selected[this.step]=this.selected[this.step].filter((function(e){return e!==t.id})):this.selected[this.step].push(t.id):(null!=e&&e.nextStep&&(this.selected[this.step]=[t.id]),this.steps.push((null==e?void 0:e.nextStep)||t.id),this.addMessages(this.getLabelText(t.label)),this.addStepMessages()))},onPageSelect:function(t){this.onOptionClick({id:t},!0,!0)},onMultiOptionsSubmit:function(){var t=this;if(this.canInputSubmit){var e=null;if(this.selected[this.step].length){if(this.chats[this.step].options){var n=this.chats[this.step].options.filter((function(e){return t.selected[t.step].includes(e.id)}));n.length&&this.addMessages(n.map((function(e){return t.getLabelText(e.label)})).join(", ")),e=this.selected[this.step].filter((function(e){return t.chats[e]}))}else this.chats[this.step].menu?this.selectedOptionText&&(this.addMessages(this.selectedOptionText),e=[]):this.chats[this.step].input&&this.addMessages(this.selected[this.step]);this.chats[this.step].nextStep&&(e=[this.chats[this.step].nextStep])}e&&(e.length?(this.steps.push(e[0]),this.addStepMessages()):this.steps.push("submit"))}},onNewChat:function(){this.onReset(),this.isVisible=!0,this.isVisibleMenu=null,this.isVisibleSubmenu=null,this.initChat()},onReset:function(){var t=this;this.messages=[],Object.keys(this.selected).forEach((function(e){var n;t.selected[e]=null!==(n=t.chats[e])&&void 0!==n&&n.input?[""]:[]})),this.steps=[]},onResetClose:function(){this.onReset(),this.isVisible=!1},addStepMessages:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.chats[this.step]&&this.addMessages(this.chats[this.step].messages,!0,t)},addMessages:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Slickplan.helpers.castArray(t).forEach((function(t){e.queue.push(m({key:"a".concat(++e.index),bot:n},null!=t&&t.html?t:{text:t}))})),this.isQueueRunning||(this.isQueueRunning=!0,clearTimeout(this.$options.queueTimerId),this.$options.queueTimerId=setTimeout(this.runQueue,n&&!r&&this.messages.length?this.randomTime():50))},runQueue:function(){clearTimeout(this.$options.queueTimerId),this.messages.push(this.queue.shift()),this.queue.length?(this.isQueueRunning=!0,this.$options.queueTimerId=setTimeout(this.runQueue,this.randomTime())):(this.isQueueRunning=!1,this.$options.queueTimerId=null)},randomTime:function(){return Slickplan.helpers.randomNumber(500,1700)},insertWaitTexts:function(){this.waitingBotTexts.length||(this.waitingBotTexts=Slickplan.helpers.arrayShuffle(["You’re seconds away from a sweet sitemap! 🎉","Hang tight; we’ll be back quickly with your new sitemap!","Good things come to those who wait… and you won't wait long! ⏳","Your sitemap is on the assembly line 🔧. Nearly finished!","Relax while we brew your sitemap! ☕","Your sitemap is on its way! ✨","Just a sec, we’re giving your sitemap the VIP 🎟️ treatment!","Wax on 🧼 wax off… hold on as we polish up your sitemap!"]))},moveWaitTexts:function(){clearTimeout(this.$options.shuffleTimerId),this.waitingBotTexts.push(this.waitingBotTexts.shift()),this.$options.shuffleTimerId=setTimeout(this.moveWaitTexts,4e3)},onConfirmChanges:function(){var t=this;"done"===this.xSitemapData.ai&&(this.aiActionToken||this.onResetPreview(),this.$notify({destroyAll:!0}),this.setAiStatus("save"),Slickplan.helpers.requestSingle((function(){var e=i.default.sitemap.aiBotSave(t.aiActionToken);return e.promise.then((function(e){if(e&&e.alias){var n=t.$router.resolve({name:"sitemap",params:{sitemap:e.alias}});Slickplan.helpers.navigateTo(n.href,!0)}else t.onLoadStructure(e),t.onResetClose()})).catch((function(){})),e}),this.$options.name))},onTryAgain:function(){var t=this;this.onResetPreview((function(){var e=t.steps[1]||null;t.onNewChat(),e&&(e=t.chats.start.options.find((function(t){return t.id===e})))&&t.onOptionClick(e,t.chats.start)}))},onUndoChanges:function(t){this.onResetPreview(void 0,"boolean"==typeof t?t:void 0)},onRetryAfterError:function(){this.steps=this.steps.filter((function(t){return"error"!==t&&"done"!==t})),this.insertWaitTexts()},initChat:function(){this.messages.length||(this.steps=["start"],this.addStepMessages(!0))},setAiStatus:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.$store.commit("sitemap/setData",{ai:t})},doSubmit:function(){var t=this;this.$notify({destroyAll:!0}),this.errorMessage=null,this.setAiStatus("submit"),Slickplan.helpers.requestSingle((function(){var e=i.default.sitemap.aiBotGenerate(t.steps,t.toSubmit);return e.promise.then((function(e){var n;if(null!=e&&e.token&&(t.aiActionToken=null==e?void 0:e.token),t.onLoadStructure(e,!0),t.steps.push("done"),t.steps.includes("section")&&null!==(n=t.toSubmit)&&void 0!==n&&null!==(n=n.section)&&void 0!==n&&n[0]){var r=t.xGetCellData(t.toSubmit.section[0],a.constants.CELL_DATA_KEY_SUBSECTION);r&&t.$nextTick((function(){c.EventBus.$emit("cell-click",{cellId:t.toSubmit.section[0],property:a.constants.CELL_DATA_KEY_SUBSECTION,data:r})}))}})).catch((function(e){t.setAiStatus(),null!=e&&e.error&&null!=e&&e.ai_note?t.errorMessage=e.ai_note:null!=e&&e.errors&&null!=e&&e.message&&(t.errorMessage=e.message.replace(" Options","").replace(" 0 "," ")),t.steps.push("error")})),e}),this.$options.name)},onBeforeEnter:function(){this.onAfterEnter(),this.$options.scrollTimerId=setInterval(this.onTransitionEnd,10)},onAfterEnter:function(){clearInterval(this.$options.scrollTimerId)},onLoadStructure:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&(this.setAiStatus(n?"done":null),this.loadSitemapStructure(t.structure||t),this.$store.dispatch("sitemapCell/regroupCells"),n&&this.$nextTick((function(){var t,n;(null!==(t=e.xCellsByParentsWithHidden[a.constants.CELL_LEVEL_UTIL])&&void 0!==t&&t.length||null!==(n=e.xCellsByParentsWithHidden[a.constants.CELL_LEVEL_FOOT])&&void 0!==n&&n.length)&&e.$store.commit("sitemap/setSectionVisibility",!0)})))},onResetPreview:function(t,e){var n=this;"done"!==this.xSitemapData.ai&&!0!==e||(this.xSitemapSectionBreadcrumbBack(0),this.setAiStatus("reset"),Slickplan.helpers.requestSingle((function(){var e=i.default.sitemap.getStructure();return e.promise.then((function(e){n.onLoadStructure(e),"function"==typeof t?t(e):n.onResetClose()})).catch((function(){window.location.reload()})),e}),this.$options.name))},resetData:function(){this.isVisibleMenu=null,this.isVisibleSubmenu=null,this.searchableFilter="",this.examplesAdded=!1},onTransitionEnd:function(){this.$refs.scrollable&&this.$refs.scrollable.scrollToBottom()},checkToast:function(){"submit"===this.step?this.$notify({id:"ai",type:"ai-submit",title:"Creating sitemap suggestions…",text:"Just a moment, generating updates",duration:0}):"done"===this.step?this.$notify({id:"ai",type:"ai-done",title:"Your updates are ready!",text:"Choose confirm, undo, or retry in the AI Assistant to unlock your sitemap.",duration:0}):this.$notify({destroy:"ai"})}}),watch:{isVisible:function(t,e){t&&!e&&(this.resetData(),this.initChat()),t!==e&&this.checkToast()},step:function(t,e){var n=this;t!==e&&this.resetData(),"submit"===t&&t!==e?this.$options.initTimerId=setTimeout((function(){n.doSubmit(),n.insertWaitTexts(),n.$options.shuffleTimerId=setTimeout(n.moveWaitTexts,4e3),n.checkToast()}),500):t!==e&&this.checkToast(),"submit"!==t&&(clearTimeout(this.$options.initTimerId),clearTimeout(this.$options.shuffleTimerId),"done"!==t&&(this.waitingBotTexts=[]))}},mounted:function(){this.$el.addEventListener("transitionend",this.onTransitionEnd)},beforeDestroy:function(){this.$el&&this.$el.removeEventListener("transitionend",this.onTransitionEnd),this.onAfterEnter(),Slickplan.helpers.requestCancel(this.$options.name),clearTimeout(this.$options.initTimerId),clearTimeout(this.$options.queueTimerId),clearTimeout(this.$options.shuffleTimerId)}}},89124:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(14580),o=n(71995),a=n(59484),s=n(30160),l=n(43500);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"app-header",components:{"link-help":s.default},trialInterval:null,data:function(){return{seconds:0,open:!1,permissionsAccount:i.permissionsAccount}},computed:d(d(d({},(0,r.mapState)({xPlanLimits:function(t){return t.core.planLimits},xAccountData:function(t){return t.user.user}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{notificationsCount:function(){var t=this.xAccountData.notifications;return t>999&&(t="".concat(Math.floor(t/1e3),"K")),t},topLinks:function(){var t=[];return this.isRegistration?t.push({name:"Log Out",onClick:this.onLogout}):(t.push({name:"Dashboard",link:"dashboard"}),this.$root.userCan(i.permissionsAccount.MANAGE_TEAM)&&t.push({name:"Team",link:"team"}),t.push({name:"Integrations",link:"integrations"}),t.push({name:"SEO Tools",id:"seo",submenu:this.subMenuSeo,onClick:this.toggleSeoTools})),t},subMenuSeo:function(){return[{name:"XML sitemap generator",link:"seo-xml-generator"},{name:"XML sitemap validator",link:"seo-xml-validator"},{name:"Robots.txt generator",link:"seo-robots-txt"},{name:"Header status checker",link:"seo-header-status"},{name:"Redirect checker",link:"seo-redirect-checker"},{name:"UTM link builder",link:"seo-utm-builder"}]},subMenuAccount:function(){var t=[];return this.$root.userCan(i.permissionsAccount.COMPANY_SETTINGS)&&t.push({name:this.$trans("company_settings"),link:"account-company"}),this.$root.userCan(i.permissionsAccount.PAYMENTS)&&t.push({name:this.$trans("plans_and_billing"),link:"account-billing"}),this.$root.userCan(i.permissionsAccount.VIEW_INVOICES)&&t.push({name:this.$trans("invoices"),link:"account-invoices"}),this.$root.userCan(i.permissionsAccount.MESSAGE_TEMPLATES)&&t.push({name:this.$trans("message_templates"),link:"account-messages"}),t.push({name:this.$trans("preferences"),link:"account-preferences"}),this.xAccountData.is_suspended&&!this.$root.isSuspendedEmailActivation||t.push({name:"Workflow Templates",link:"account-workflows"}),t},suspendedMessage:function(){var t=null,e=this.xAccountData.is_suspended;return"trial_expired"===e?t="your trial has ended and your **account is inactive**":"card_expired"===e||"credit_expired"===e?t="your **credit card has expired**":"payment_error"===e&&(t="there was a **payment error**"),t?(0,a.default)("Uh-oh, looks like ".concat(t,"!")):null},detailedErrorMessage:function(){return"payment_error"===this.xAccountData.is_suspended?this.xAccountData.error_message:null},isRegistration:function(){return/(configure|register)/.test(this.$route.matched[0].path)},logoClasses:function(){return!Object.keys(this.$route.query).length&&/dashboard/.test(this.$route.matched[0].path)?"cursor-default":null},humanReadableCountdown:function(){var t=this.seconds,e="seconds";return this.seconds>=86400?(t=Math.trunc(this.seconds/60/60/24),e="days"):this.seconds>=3600?(t=Math.trunc(this.seconds/60/60)%24,e="hours"):this.seconds>=60&&(t=Math.trunc(this.seconds/60)%60,e="minutes"),"".concat(t," ").concat(this.$trans(String(e),t))}}),methods:{logoLink:function(){this.isRegistration?this.$router.push(window.location.pathname).catch(_noop):(this.$router.push("/dashboard").catch(_noop),this.$emit("logo"))},toggleSeoTools:function(){this.open="seo"!==this.open&&"seo"},onLogout:function(){this.open=!1,o.default.auth.logout().promise.then((function(t){t&&t.redirect&&Slickplan.helpers.navigateTo(t.redirect,!0)}))},openErrorDetails:function(){this.$modal.showConfirm({width:500,title:"Payment error details",titleClass:"t",htmlText:"".concat(Slickplan.helpers.escapeHtml(this.detailedErrorMessage),' <a href="').concat(Slickplan.helpers.getLink("/contact"),'" target="_blank" rel="noreferrer noopener" class="style-link">Need help?</a>'),buttons:[{className:["-primary","-small"],label:"Close"}]})},openNotificationPanel:function(){this.$store.dispatch("panel/set",{id:"notifications",visibility:!0,title:"Notifications",tabs:[{id:"notifications",component:l.default}]})}},watch:{seconds:function(t){t<=0&&this.$options.trialInterval&&(clearInterval(this.$options.trialInterval),this.$options.trialInterval=null,window.location.reload())}},mounted:function(){var t=this;this.xAccountData.trial&&(this.seconds=this.xAccountData.trial,this.$options.trialInterval=setInterval((function(){t.seconds-=60}),6e4)),this.$parent.onWindowResize()},updated:function(){this.$parent.onWindowResize()},beforeDestroy:function(){clearInterval(this.$options.trialInterval)}}},56200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"app-title-heading",props:{title:{type:String,default:null},border:{type:Boolean,default:!0}},computed:a(a({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),{},{hasTitleSlot:function(){return!!this.$slots.title},hasDescriptionSlot:function(){return!!this.$slots.description},hasIconSlot:function(){return!!this.$slots.icon},hasMenuSlot:function(){return!!this.$slots.menu},hasButtonsSlot:function(){return!!this.$slots.buttons}})}},32660:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(58592),o=n(96392),a=n(28906),s=n(22164),l=n(65056),c=n(66404),u=n(42456);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"app",components:{VerifyEmail:n(55792).default,"action-bar":i.default,"app-header":o.default,panel:a.default},mixins:[l.mixinProjectStatus,c.mixinCommentsBase,u.formHelpers],debounceTimer:null,notifyLoaded:!1,data:function(){return{hasHeader:!1,routeName:null,id:null}},computed:p(p(p({},(0,r.mapState)({xBarIsVisible:function(t){return t.actionBar.isVisible},xPanelVisible:function(t){return t.panel.visible},xPanelVisibleStatus:function(t){return t.panel.visibleStatus},xPanelId:function(t){return t.panel.id},xCommentsType:function(t){return t.comments.type},xSitemapSelectedCells:function(t){return t.sitemapCell.selectedCells},xWindowSize:function(t){return t.core.windowSize},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xSitemapData:function(t){return t.sitemap.details},xUserPreferences:function(t){return t.user.preferences},xCommentsFromGlobals:function(t){return t.comments.fromGlobalComments}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{isShared:function(){return/shared/.test(this.routeName)},className:function(){var t=this.xSitemapSelectedCells.length&&this.xBarIsVisible,e=this.xPanelVisible&&"visible"===this.xPanelVisibleStatus;return[{"page-loading":this.xIsPageLoading,"has-panel":e,"is-batch":t,"is-property":e&&this.xCurrentCellAlias&&"cell"===this.xPanelId},this.routeName]}}),methods:{isAnyModalOpened:function(){return document.querySelector(".modal-overlay")},onWindowResize:function(){var t=document.getElementById("app-header"),e=t?parseInt(t.offsetHeight,10):0;this.$store.dispatch("core/setWindowSize",{width:window.innerWidth,height:window.innerHeight,headerHeight:e,scrollableHeight:window.innerHeight-e})},onKeyPress:function(t){if(Slickplan.helpers.isAnyFormFocused())return!0;var e="".concat(t.key).toLowerCase();"="===e?e="+":"_"===e&&(e="-");var n=null;switch(e){case"esc":case"escape":n="escape";break;case"space":case" ":n="space";break;case"enter":n=e;break;case"delete":case"backspace":n="delete";break;case"+":case"-":case"0":case"c":case"v":case"z":case"y":case"o":case"s":case"e":case"[":case"]":case"{":case"}":(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)&&(n=e)}if(this.isAnyModalOpened())return"escape"===n&&this.$modal.hide(!0),!0;n&&(t.shiftKey&&(n="shift-".concat(n)),t.altKey&&(n="alt-".concat(n)),(t.ctrlKey||t.metaKey)&&(n="ctrl-".concat(n)),s.EventBus.$emit("keypress-".concat(n),{event:t,key:e,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey,meta:t.metaKey}))},olarkClassUpdate:function(t,e){var n=t&&e&&"page-sitemap"!==e&&"page-diagram"!==e;document.body.classList.toggle("olark-force-show",n)}},watch:{$route:function(t){this.hasHeader=t.matched.some((function(t){return t.meta.hasHeader})),this.routeName=t.name?"route-".concat(t.name):null,this.id=t.name?"page-".concat(t.name.split("-")[0]):null,this.$nextTick(this.onWindowResize)},xIsPageLoading:function(t,e){var n=this;!1===e||!1!==t||this.$options.notifyLoaded||(this.$options.notifyLoaded=!0,Slickplan.constants.NOTIFY&&this.$nextTick((function(){return n.$notify(Slickplan.constants.NOTIFY)})))},xBarIsVisible:function(t){document.body.classList.toggle("has-bar",t)},id:function(t){this.olarkClassUpdate(this.xUserPreferences.always_show_support_chat,t),document.body.className="".concat(document.body.className.replace(/page-[^\s]+/g,"")," ").concat(t)},xUserPreferences:{handler:function(t){this.olarkClassUpdate(t.always_show_support_chat,this.id)},deep:!0}},created:function(){var t=this;if(this.$store.dispatch("core/refreshScrollbarWidth"),this.onWindowResize(),s.EventBus.$on("dom-updated",this.onWindowResize),window.addEventListener("resize",(function(){clearTimeout(t.$options.debounceTimer),t.$options.debounceTimer=setTimeout(t.onWindowResize,250)}),!0),document.addEventListener("keydown",this.onKeyPress,!0),this.$cookies.config("".concat(1825,"d"),"/","",!0,!0),window.gtag&&Slickplan.constants.MEASUREMENT_ID)window.gtag("get",Slickplan.constants.MEASUREMENT_ID,"client_id",(function(t){Slickplan.globalVars.gaClientId=t}));else{var e=this.$cookies.get("_ga");e&&(Slickplan.globalVars.gaClientId=e.substring(6))}}}},10752:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(27672),o=n(38856),a=n(14580),s=n(46936),l=n(70992);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"archetypes-item",components:{"buttons-list":i.default,"icon-archetype":o.default},mixins:[s.mixinPanelOverlay,s.mixinPanelComponents,l.mixinSitemapCellData],props:{archetypeId:{type:String,required:!0},isSelected:{type:Boolean,default:!1}},data:function(){return{isSaving:!1,isHovering:!1}},computed:d(d({},(0,r.mapState)({xArchetypes:function(t){return t.sitemap.archetypes}})),{},{isCustom:function(){return"_"!==this.archetypeId.charAt(0)},name:function(){return this.xArchetypes[this.archetypeId].name||""}}),methods:{onSelect:function(){if(!this.isSelected)return this.$listeners.select?this.$emit("select",this.archetypeId):void this.saveForCurrentCell()},saveForCurrentCell:function(){var t=this;this.isSaving=!0,this.panelOverlayEnable(),this.cellDataSave(a.constants.CELL_DATA_KEY_ARCHETYPE,this.archetypeId).promise.then((function(){t.panelCloseComponents()})).finally((function(){t.isSaving=!1,t.panelOverlayDisable()}))}}}},17316:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"blocked-by",props:{user:{required:!0}},computed:a(a(a({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{userData:function(){return"object"===i(this.user)&&this.user.id&&this.user.color?this.user:"string"==typeof this.user||"number"==typeof this.user||!0===this.user?this.xGetTeamMemberData(!0===this.user?this.xAccountData.id:this.user):null},name:function(){var t=this.userData,e=t.first_name,n=t.last_name,r=t.name;return e?e+(n?" ".concat(n.match(/(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g)[0],"."):""):r}})}},64680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"buttons-list",props:{buttons:{type:Array,required:!0},rotate:{type:Boolean,default:!1},menu:{type:Boolean,default:!0},item:null},data:function(){return{isSaving:!1}},computed:{elementClasses:function(){return["-icons-".concat(this.buttons.length),{"-force-show":this.isSaving}]}},methods:{onClick:function(t){var e=this;if(this.isSaving)return!1;if("function"==typeof t.onClick){var n=t.onClick(this.item);this.isSaving=t.id,n&&n.promise?n.promise.catch(_noop).finally((function(){e.isSaving=!1})):this.isSaving=!1}}}}},82312:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"buttons-view",components:{"buttons-list":n(27672).default},props:{value:{type:[String,Number],default:null},buttons:{type:Array,default:function(){return["list","grid"]}}},data:function(){return{selected:null}},computed:{buttonsView:function(){var t=this;return this.buttons.map((function(e){return{id:e,icon:"list"===e?"list-bullet":e,active:t.selected===e,onClick:function(){t.selected=e}}}))}},mounted:function(){var t=this;this.selected=this.value||this.buttons[0],this.$watch("selected",(function(e,n){e&&e!==n&&t.$emit("update",e)}))}}},87428:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(87480),o=n(14580);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"websocket-chat",data:function(){return{height:400,message:"",hasNewMessages:!1}},computed:l(l(l({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xWebsocketConnectedUsers:function(t){return t.websocket.connectedUsers},xWebsocketChatStatus:function(t){return t.websocket.chat},xWebsocketChatMessages:function(t){return t.websocket.messages}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{isVisible:function(){return this.xWebsocketChatStatus!==o.constants.WEBSOCKET_CHAT_CLOSED},isCollapsed:function(){return this.xWebsocketChatStatus===o.constants.WEBSOCKET_CHAT_COLLAPSED},isExpanded:function(){return this.xWebsocketChatStatus===o.constants.WEBSOCKET_CHAT_EXPANDED},scrollableHeight:function(){return this.height-46-74-10},connectedUsers:function(){var t=this,e=[];return this.xWebsocketConnectedUsers.forEach((function(n){var r=t.xGetTeamMemberData(n,"first_name");r&&e.push(r)})),e.join(", ")}}),methods:l(l({},(0,r.mapActions)({xSetWebsocketChatStatus:"websocket/setChatVisibility",xAddWebsocketChatMessage:"websocket/addChatMessage",xClearWebsocketChat:"websocket/clearChat"})),{},{onMessageSend:function(){if(this.message){var t={user:this.xAccountData.id,data:this.message};this.message="",Slickplan.websocket.room().whisper("chat.message",t),this.userMessage(t)}},onExpand:function(){this.hasNewMessages=!1,this.xSetWebsocketChatStatus(o.constants.WEBSOCKET_CHAT_EXPANDED),this.$nextTick(this.scrollToBottom)},onCollapse:function(){this.xSetWebsocketChatStatus(o.constants.WEBSOCKET_CHAT_COLLAPSED)},onClose:function(){var t=this;if(!this.xWebsocketChatMessages.length)return this.closeAndClearChat();this.$modal.showConfirm({title:"Chat Transcript",buttonLabel:"Export",buttonCancel:{className:["-plain","-small"],label:"No, close chat",onClick:this.closeAndClearChat},text:"Would you like to export this chat's transcript for your records?"},(function(){(0,i.saveAs)(new window.Blob([t.$refs.html.parentNode.innerHTML],{type:"application/xhtml+xml;charset=utf-8"}),"chat.html"),t.closeAndClearChat()}))},closeAndClearChat:function(){this.xClearWebsocketChat(),this.xSetWebsocketChatStatus(o.constants.WEBSOCKET_CHAT_CLOSED)},userMessage:function(t){this.xAddWebsocketChatMessage(t),this.scrollToBottom()},scrollToBottom:function(){this.$refs.scrollable&&this.$refs.scrollable.scrollToBottom()}}),watch:{isExpanded:function(t,e){var n=this;t&&!e&&this.$nextTick((function(){n.$el.querySelector("textarea").focus()}))}},mounted:function(){var t=this;Slickplan.websocket.room().listenForWhisper("chat.message",(function(e){t.isVisible?t.isCollapsed&&(t.hasNewMessages=!0):(t.onCollapse(),t.hasNewMessages=!0),t.userMessage(e)}))}}},34737:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"floating-comment-guest",components:{"guest-form":n(21424).default},props:{coords:{type:Array,required:!0}},data:function(){return{width:368,leftAligned:!1}},computed:{cssPosition:function(){var t=this.leftAligned?this.coords[0]-this.width:this.coords[0]+48+4,e=this.coords[1]-(this.compactView?13:2);return{transform:"translate(".concat(t,"px, ").concat(e,"px)")}}},mounted:function(){var t=this,e=this.$el.closest("._board");e&&(e.style.overflow="hidden"),this.$nextTick((function(){if(e){e.style.overflow=null;var n=e.getBoundingClientRect(),r=t.$el.getBoundingClientRect();t.width=r.width,t.leftAligned=r.x+r.width>n.x+n.width}}))}}},6456:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(71995),o=n(66404),a=n(27672),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"floating-comment-item",components:{"buttons-list":a.default},mixins:[o.mixinCommentItem],props:{comment:{type:Object,required:!0},readonly:{type:Boolean,default:!1}},data:function(){return{isUpdatingLikes:!1}},computed:u(u(u({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{authorName:function(){return this.comment.user_id?this.xGetTeamMemberData(this.comment.user_id,"name")||"Deleted User":this.comment.guest_data.name},buttons:function(){var t=this,e=[];if(!this.$root.isAllowedFeature(s.constants.FEATURE_COMMENTS)||this.readonly)return e;if(!this.isProjectShared){this.comment.user_id===this.xAccountData.id&&this.xGetServerTime()-this.comment.timestamp<28800&&e.push({id:"edit",icon:"edit",tooltip:"Edit",onClick:function(){return t.$store.dispatch("comments/setEdit",t.comment.id)}}),(this.$root.userCan(s.permissionsProject.MANAGE_COMMENTS)||this.comment.user_id===this.xAccountData.id)&&e.push({id:"delete",icon:"trash",tooltip:"Delete",onClick:function(){return t.onDelete(t.comment.id)}})}return e}}),methods:{onLikeClick:function(){var t=this;this.isUpdatingLikes||(this.isUpdatingLikes=!0,Slickplan.helpers.requestSingle((function(){var e=i.default.comments.like(t.xProjectTypeName,t.comment.id);return e.promise.then((function(e){null!=e&&e.comments&&t.$store.commit("comments/updateComments",e.comments)})).catch(_noop).finally((function(){t.isUpdatingLikes=!1})),e}),this.$options.name))}}}},66988:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"floating-pins",props:{section:{type:String,required:!0,validator:function(t){return["mockup","diagram"].includes(t)}},singles:{type:Array,default:function(){return[]}},multi:{type:Array,default:function(){return[]}},pin:{type:[Array,Object,null],default:null}},computed:a(a({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xGuestData:function(t){return t.user.guest},xCommentHoverId:function(t){return t.comments.commentHover},xFloatingHighlight:function(t){return t.comments.floatingHighlight}})),{},{tempPin:function(){var t,e;return Array.isArray(this.pin)?{x:this.pin[0],y:this.pin[1]}:null===(t=this.pin)||void 0===t||!t.visible||null!==(e=this.pin)&&void 0!==e&&e.refId?null:this.pin}})}},80576:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(7920),i=n(48416),o=n(71995),a=n(10916),s=n(4048),l=n(66404),c=n(22164),u=n(65056),d=n(14580);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"floating-comment",components:{"field-textarea":a.default,"floating-item":s.default,"emoji-picker":r.VEmojiPicker},mixins:[l.mixinCommentForm,l.mixinCommentMethods,u.mixinProjectStatus],commentsTextBackup:"",props:{commentId:{type:Number,default:null},refId:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},introduce:{type:Boolean,default:!1},figma:{type:[String,null],default:null},coords:{type:Array,required:!0}},data:function(){return{resolve:!1,compactView:!0,isSaving:!1,sendToFigma:!1,leftAligned:!1,width:368}},computed:m(m({},(0,i.mapState)({xComments:function(t){return t.comments.comments},xCommentEdit:function(t){return t.comments.isEdit}})),{},{canDelete:function(){var t,e;return(null===(t=this.xAccountData)||void 0===t?void 0:t.id)&&(this.$root.userCan(d.permissionsProject.MANAGE_COMMENTS)||(null===(e=this.comment)||void 0===e?void 0:e.user_id)===this.xAccountData.id)},canSendToFigma:function(){var t,e;return this.isNew&&this.figma&&(null===(t=this.xAccountData)||void 0===t?void 0:t.id)&&(null===(e=this.xAccountData)||void 0===e?void 0:e.hasFigma)},isNew:function(){return!this.commentId},comment:function(){var t=this;return this.xComments.find((function(e){return e.id===t.commentId}))},comments:function(){var t=this;return Slickplan.helpers.sortNumeric(this.xComments.filter((function(e){return e.id===t.commentId||e.parent_id===t.commentId})),"id","asc")},filteredComments:function(){return this.isNew||this.xCommentEdit?[]:this.comments},cssPosition:function(){var t=this.leftAligned?this.coords[0]-4-this.width:this.coords[0]+(this.compactView?42:52),e=this.coords[1]-(this.compactView?13:2);return{transform:"translate(".concat(t,"px, ").concat(e,"px)")}}}),methods:{onInput:function(){this.checkForMentionsMenu()||this.disableCompactView()},disableCompactView:function(t){this.compactView&&(!0===t||this.formattedText&&!/^@\S*$/.test(this.formattedText))&&(this.compactView=!1)},cancelEdit:function(){this.$store.dispatch("comments/setEdit",!1)},onDocumentClick:function(t){t.target.closest(".ui-floating-comments")||this.hideMenus()},onResolveComment:function(){var t=this;this.isSaving||(this.isSaving=!0,Slickplan.helpers.requestSingle((function(){var e=o.default.comments.resolve(t.xProjectTypeName,t.commentId);return e.promise.then((function(e){null!=e&&e.comments&&(t.$store.commit("comments/updateComments",e.comments),t.$emit("close"))})).catch(_noop).finally((function(){t.isSaving=!1})),e}),this.$options.name))},onDeleteComments:function(){this.onDelete(this.comments.map((function(t){return t.id})))}},watch:{formattedText:function(t,e){t&&this.disableCompactView(),t!==e&&this.$emit("update",t)},isMentionVisible:function(t,e){!t&&e&&this.disableCompactView(!0)},resolve:function(t,e){t&&!e?this.onResolveComment():this.resolve=!1},comments:function(t){this.isNew||t.length||this.$emit("close")},xCommentEdit:function(t,e){var n=this;if(t!==e){if(e||(this.$options.commentsTextBackup=this.commentText),t){var r=this.xComments.find((function(e){return e.id===t}));r&&(this.commentText=r.comment||"")}else this.commentText=this.$options.commentsTextBackup||"";this.$nextTick((function(){var t;null===(t=n.$el)||void 0===t||null===(t=t.querySelector("textarea"))||void 0===t||t.focus()}))}},commentId:{handler:function(t,e){t!==e&&this.$store.commit("comments/setFloatingHighlight",this.commentId)},immediate:!0}},beforeMount:function(){this.compactView=this.isNew},mounted:function(){var t=this,e=this.$el.closest("._board");this.$store.dispatch("comments/resetForm"),c.EventBus.$on("keypress-escape",this.onKeyEscape),document.addEventListener("mousedown",this.onDocumentClick),e&&(e.style.overflow="hidden"),this.$nextTick((function(){if(e){e.style.overflow=null;var n=e.getBoundingClientRect(),r=t.$el.getBoundingClientRect();t.width=r.width,t.leftAligned=r.x+r.width>n.x+n.width}}))},beforeDestroy:function(){this.$store.commit("comments/setFloatingHighlight",null),c.EventBus.$off("keypress-escape",this.onKeyEscape),document.removeEventListener("mousedown",this.onDocumentClick)}}},89536:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(10916),i=n(66404);const o={name:"comments-form",components:{"field-textarea":r.default},mixins:[i.mixinCommentForm],computed:{mentionsPosition:function(){return this.mentionsData.caretPosition?{top:"".concat(this.mentionsData.caretPosition.top,"px")}:null}},watch:{textareaHeight:function(t){this.$emit("height",{height:t})}}}},66868:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(71995),o=n(42456);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"comment-guest-form",components:{FieldTurnstile:n(38180).default},mixins:[o.formHelpers],props:{floating:{type:Boolean,default:!1}},data:function(){return{formData:{name:"",email:"",turnstile_token:null}}},computed:l(l({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType}})),{},{canSubmit:function(){return!this.formHelper.isSubmitting&&this.formData.name&&this.formData.email}}),methods:{onSubmit:function(){var t=this,e=this.xProjectType.project;this.formSubmit({action:function(){return i.default[e].guestIntroduce(t.formData)},success:function(e){t.$store.commit("user/setGuest",e),t.$emit("update")}})}}}},96184:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(27672),o=n(22164),a=n(14580),s=n(46936),l=n(30644),c=n(66404);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"panel-tab-feedback-comment",components:{"buttons-list":i.default},mixins:[s.mixinPanelOverlay,l.mixinMockupClick,c.mixinCommentItem],props:{comment:{type:Object,required:!0},hasReply:{type:Boolean,default:!1},meta:{type:Boolean,default:!1}},data:function(){return{isHovering:!1,isSubmitting:!1}},computed:f(f(f({},(0,r.mapState)({xCommentReply:function(t){return t.comments.isReply},xCommentEdit:function(t){return t.comments.isEdit}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData",xGetCellData:"sitemapCell/getData",xGetDiagramName:"diagram/getName"})),{},{type:function(){return this.comment.type},isThreadPlaceholder:function(){return this.meta&&(this.isFloatingType||this.comment.cell_id||this.comment.file_id||this.comment.ref_id)},isMockupsType:function(){return this.type===a.constants.COMMENTS_TYPE_FILE},isDiagramType:function(){return this.type===a.constants.COMMENTS_TYPE_DIAGRAM},isContentType:function(){return this.type===a.constants.COMMENTS_TYPE_CONTENT_BLOCK},isFloatingType:function(){return this.isMockupsType||this.isDiagramType},authorName:function(){var t;return this.comment.user_id?this.xGetTeamMemberData(this.comment.user_id,"name")||"Deleted User":null===(t=this.comment.guest_data)||void 0===t?void 0:t.name},linkLabel:function(){return this.isDiagramType?this.xGetDiagramName(this.comment.ref_id)||"Deleted diagram":this.comment.cell_id?this.xGetCellData(this.comment.cell_id,a.constants.CELL_DATA_KEY_LABEL)||"Deleted page":null},buttons:function(){var t=this,e=[];if(this.isThreadPlaceholder||!this.$root.isAllowedFeature(a.constants.FEATURE_COMMENTS))return e;if(this.comment.parent_id||this.comment.resolved_at||!this.canWriteComments||this.isFloatingType||e.push({id:"reply",icon:"reply",tooltip:"Reply",onClick:function(){return t.$store.dispatch("comments/setReply",t.comment.id)}}),!this.isProjectShared){!this.comment.resolved_at&&!this.comment.user_id===this.xAccountData.id&&this.xGetServerTime()-this.comment.timestamp<28800&&e.push({id:"edit",icon:"edit",tooltip:"Edit",onClick:function(){return t.$store.dispatch("comments/setEdit",t.comment.id)}}),(this.$root.userCan(a.permissionsProject.MANAGE_COMMENTS)||this.comment.user_id===this.xAccountData.id)&&e.push({id:"delete",icon:"trash",tooltip:"Delete",onClick:function(){return t.onDelete(t.comment.id)}})}return e},commentType:function(){return this.isDiagramType?"In Diagram Maker:":this.isMockupsType?"In Design Mockups:":this.isContentType?"In Content Planner:":this.type===a.constants.COMMENTS_TYPE_PAGE?"In Sitemap Builder:":""},isEdit:function(){return this.xCommentEdit===this.comment.id&&!this.isFloatingType},isReply:function(){return this.xCommentReply===this.comment.id&&!this.isFloatingType}}),methods:{onClickMore:function(){this.$store.commit("comments/reset",null),o.EventBus.$emit("comment-click-view",{type:this.type,comment:this.comment})},onFormReset:function(){this.isSubmitting=!1,this.$store.dispatch("comments/resetForm")},onFormSubmitting:function(t){this.isSubmitting=Boolean(t)}}}},7132:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(7936),o=n(22164);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"comments-list",components:{"comment-item":i.default},props:{comments:{type:Array,required:!0},meta:{type:Boolean,default:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xFloatingHighlight:function(t){return t.comments.floatingHighlight}})),methods:{onMouseEnter:function(t){this.$store.commit("comments/setCommentHover",t)},onMouseLeave:function(){this.$store.commit("comments/setCommentHover")},onMouseDown:function(t,e){t.target.closest(".buttons-list")||o.EventBus.$emit("comment-click",e)}},watch:{xFloatingHighlight:function(t,e){var n=this;t&&t!==e&&this.$nextTick((function(){if(n.$el){var t=n.$el.querySelector(".-active");t&&t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}}))}}}},7056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var r=n(48416),i=n(71995),o=n(51464),a=n(43136),s=n(44708),l=n(5712),c=n(14580),u=n(22164);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b={name:"diagram-batch-edit",mixins:[n(78064).mixinDiagramPageAssign],layerOrders:[{label:"Bring to front",value:"front",key:"}"},{label:"Bring forward",value:"forward",key:"]"},{label:"Send backward",value:"backward",key:"["},{label:"Send to back",value:"back",key:"{"}],computed:h(h(h({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType},xSelectedItems:function(t){return t.diagramItem.selectedItems},xSelectedItemsType:function(t){return t.diagramItem.selectedItemsType}})),(0,r.mapGetters)({xDiagramElements:"diagramItem/sortedElements",xGetElementData:"diagramItem/getElementData",xGetItemData:"diagramItemData/getItemData",xGetCellData:"sitemapCell/getData"})),{},{selectedCount:function(){return this.xSelectedItems.elements.length+this.xSelectedItems.connectors.length},selectedCellsIds:function(){var t=this;return f(new Set(this.xSelectedItems.elements.map((function(e){return t.xGetElementData(e,"cell_id")})).filter((function(t){return t}))))},isVisible:function(){return this.selectedCount>0},isTextEdit:function(){return"text"===this.xSelectedItemsType},isMagnetizeAllowed:function(){return!this.isTextEdit&&1===this.xSelectedItems.elements.length&&0===this.xSelectedItems.connectors.length&&(Slickplan.helpers.getValue(c.diagramElements,[this.xGetElementData(this.xSelectedItems.elements[0],"type"),"data"])||[]).includes(c.constants.DIAGRAM_ITEM_DATA_KEY_MAGNETIZE)},canAssignPage:function(){var t=this;return this.isVisible&&"elements"===this.xSelectedItemsType&&"sitemap"===this.xProjectType.project&&0===this.xSelectedItems.connectors.length&&!this.xSelectedItems.elements.some((function(e){return t.xGetElementData(e,"type")!==c.constants.DIAGRAM_ELEMENT_PAGE}))},actionBarComponent:function(){return"mixed"===this.xSelectedItemsType?null:this.isTextEdit?s.default:"connectors"===this.xSelectedItemsType?a.default:o.default},actionBarLinks:function(){var t=this,e=[];if(this.isTextEdit||(e.push({id:"select_all",label:this.$trans("select_all"),onClick:this.selectAll}),e.push({id:"deselect_all",label:this.$trans("deselect_all"),onClick:this.deselectAll})),e.push({id:"delete",label:this.$trans("delete"),icon:"trash",onClick:this.onDelete}),this.isMagnetizeAllowed){var n=this.xSelectedItems.elements.some((function(e){return t.xGetItemData(e,c.constants.DIAGRAM_ITEM_DATA_KEY_MAGNETIZE)}));e.push({id:"magnet",label:n?"Demagnetize":"Magnetize",icon:"magnet",iconClass:n?"nc-icon-flip-x":null,onClick:function(){return t.onMagnetize(!n)}})}return"elements"===this.xSelectedItemsType&&e.push({id:"layers",label:"Bring to...",icon:"swap",iconClass:"bring-to",onClick:this.openLayersOrderPopover}),e},actionBarSideLinks:function(){return[{id:"done",label:"Done",onClick:this.deselectAll}]}}),methods:{selectAll:function(){this.$store.commit("diagramItem/selectAll")},deselectAll:function(){this.$store.commit("diagramItem/deselectAll")},onMagnetize:function(t){var e=this,n={id:this.xSelectedItems.elements,item_id:this.xSelectedItems.elements,key:c.constants.DIAGRAM_ITEM_DATA_KEY_MAGNETIZE,value:t?"1":null};this.$store.commit("diagramItemData/setAndBroadcast",n),i.default.diagram.saveItemData([n],"sitemap"===this.xProjectType.project).promise.then(_noop).catch(Slickplan.catchAll),this.$nextTick((function(){return e.$store.commit("diagramItem/refreshMagnetizedGroups")}))},onDelete:function(){var t=this;if(this.selectedCount){this.$modal.showConfirm({htmlText:this.$trans("messages.confirm_deletion_type",{name:this.selectedCount,type:this.$plural({mixed:"item",elements:"element",connectors:"line",text:"element"}[this.xSelectedItemsType],this.selectedCount)})},(function(){var e=t.xSelectedItems,n=e.elements,r=e.connectors;n.length&&t.$store.commit("diagramItem/deleteElementAndBroadcast",n),r.length&&t.$store.commit("diagramItem/deleteConnectorAndBroadcast",r),u.EventBus.$emit("diagram-changed",{action:"delete",elements:n,connectors:r})}))}},openLayersOrderPopover:function(){var t=this;this.$popover.show({component:l.default,props:{items:this.$options.layerOrders},position:{of:document.querySelector(".bring-to")},events:{overlay:function(){return t.$popover.hide()},submit:function(e){return t.reorderLayers(e)}}})},reorderLayers:function(t){var e=this,n=this.xDiagramElements.slice(0),r=[],o=n.filter((function(t){return e.xSelectedItems.elements.includes(t)})),a=n.filter((function(t){return!e.xSelectedItems.elements.includes(t)}));if("front"===t)r=[].concat(a,o);else if("back"===t)r=[].concat(o,a);else{var s=this.xSelectedItems.elements.map((function(t){return n.indexOf(t)})).filter((function(t){return t>=0})),l=s.length?"forward"===t?Math.max.apply(Math,f(s))+2:Math.min.apply(Math,f(s))-1:0;r="forward"===t&&l>n.length-1?[].concat(a,o):"backward"===t&&l<=0?[].concat(o,a):[].concat(n.slice(0,l).filter((function(t){return!e.xSelectedItems.elements.includes(t)})),o,n.slice(l).filter((function(t){return!e.xSelectedItems.elements.includes(t)})))}r.length&&r.join("-")!==n.join("-")&&(this.$store.commit("diagramItem/setOrderAndBroadcast",r),Slickplan.helpers.requestQueue((function(){var t=i.default.diagram.updateElementsOrder(r,e.xProjectType.sitemap);return t.promise.catch((function(){e.$store.commit("diagramItem/setOrderAndBroadcast",n)})),t.promise}),c.constants.PROMISE_QUEUE_DIAGRAM_UPDATE)),this.$popover.hide()},reorderLayersShortcutHandler:function(t){var e=t.key,n=t.event,r=this.$options.layerOrders.find((function(t){return t.key===e}));r&&(n.preventDefault(),n.stopPropagation(),this.reorderLayers(r.value))}},watch:{selectedCount:function(t,e){t&&!e?this.$store.commit("actionBar/set",{isVisible:!0,doneButton:!1,count:this.isTextEdit?0:this.selectedCount,label:this.isTextEdit?"Text format":"Selected",links:this.actionBarLinks,sideLinks:this.actionBarSideLinks}):!t&&e?this.$store.commit("actionBar/reset"):t&&this.$store.commit("actionBar/update",{count:t})},actionBarLinks:function(t){this.isVisible&&this.$store.commit("actionBar/update",{links:t})},xSelectedItemsType:function(){this.isVisible&&this.$store.commit("actionBar/update",{count:this.isTextEdit?0:this.selectedCount,label:this.isTextEdit?"Text format":"Selected",links:this.actionBarLinks,sideLinks:this.actionBarSideLinks})}},mounted:function(){u.EventBus.$on("keypress-delete",this.onDelete),u.EventBus.$on("keypress-ctrl-[",this.reorderLayersShortcutHandler),u.EventBus.$on("keypress-ctrl-]",this.reorderLayersShortcutHandler),u.EventBus.$on("keypress-shift-{",this.reorderLayersShortcutHandler),u.EventBus.$on("keypress-shift-}",this.reorderLayersShortcutHandler)},beforeDestroy:function(){u.EventBus.$off("keypress-delete",this.onDelete),u.EventBus.$off("keypress-ctrl-[",this.reorderLayersShortcutHandler),u.EventBus.$off("keypress-ctrl-]",this.reorderLayersShortcutHandler),u.EventBus.$off("keypress-shift-{",this.reorderLayersShortcutHandler),u.EventBus.$off("keypress-shift-}",this.reorderLayersShortcutHandler)}}},23288:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(83360),o=n(78064),a=n(14580),s=n(22164);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"diagram-action-bar-connectors",mixins:[o.mixinDiagramItemsActionBar],markers:["markerStart","markerEnd"],data:function(){return{currentDataKey:a.constants.DIAGRAM_ITEM_DATA_KEY_STROKE,style:null,markerStart:null,markerEnd:null}},computed:f(f(f({},(0,r.mapState)({xDiagramConnectors:function(t){return t.diagramItem.connectors}})),(0,r.mapGetters)({xGetConnectorData:"diagramItem/getConnectorData"})),{},{lines:function(){return"dashed"===this.style?[Slickplan.helpers.objectMergeDeep({"stroke-dasharray":"3 2"},a.diagramStructure.lineAttr)]:"double"===this.style?[Slickplan.helpers.objectMergeDeep({},a.diagramStructure.lineAttr,{y1:8,y2:8}),Slickplan.helpers.objectMergeDeep({},a.diagramStructure.lineAttr,{y1:12,y2:12})]:[f({},a.diagramStructure.lineAttr)]},markerAttrs:function(){var t=this,e=a.diagramStructure.colorNormal.replace("#",""),n={};return this.$options.markers.forEach((function(r){n[r]=Slickplan.helpers.objectMergeDeep(p({},Slickplan.helpers.kebabCase(r),!!t[r]&&"url(#svg-marker-".concat(t[r],"-").concat(e,")")),a.diagramStructure.lineAttr)})),n}}),methods:{onConnectorChangeSave:function(t,e){var n=this,r="markerStart"===t?1:"markerEnd"===t?2:0;this.xSelectedItems.connectors.forEach((function(t){var i=n.xGetConnectorData(t,"type",a.diagramStructure.defaultLineType.slice(0));i[r]=e,n.$store.commit("diagramItem/processConnectorAndBroadcast",{id:t,type:i})})),s.EventBus.$emit("diagram-changed",{action:"connector_style_update",elements:[],connectors:[].concat(this.xSelectedItems.connectors)})},openConnectorPopover:function(t,e){var n=this;this.$popover.show({component:i.default,props:{type:e},options:{width:80,height:"style"===e?96:150,className:"no-padding"},position:{of:t.target.querySelector(".ref")||t.target},events:{overlay:function(){return n.closePopover()},submit:function(t){n.closePopover(),n.onConnectorChangeSave(e,t),n[e]=t}}})},loadInitialData:function(){var t=this,e=[],n=[];if(this.xSelectedItems.connectors.forEach((function(r){var i=t.xGetItemData(r,a.constants.DIAGRAM_ITEM_DATA_KEY_STROKE);i&&e.push(i);var o=t.xGetConnectorData(r,"type");o&&n.push(Array.isArray(o)?o.join("-"):o)})),e=c(new Set(e)),n=c(new Set(n)),this.colors[a.constants.DIAGRAM_ITEM_DATA_KEY_STROKE]=1===e.length?e[0]:a.diagramStructure.colorNormal,1===n.length){var r=n[0].split("-");this.style=r[0],this.markerStart=r[1],this.markerEnd=r[2]}}},watch:{"xSelectedItems.connectors":function(t){t.length&&this.loadInitialData()}},mounted:function(){this.loadInitialData()}}},35972:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(71995),o=n(83360),a=n(5712),s=n(78064),l=n(14580),c=n(22164);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"diagram-action-bar-elements",mixins:[s.mixinDiagramItemsActionBar],data:function(){return{buttons:[],line:"",swimlanesLabel:"Size",swimlanesLabelUnit:"lane",popoverOpened:!1}},computed:m(m({},(0,r.mapGetters)({xDiagramElements:"diagramItem/sortedElements",xGetElementData:"diagramItem/getElementData"})),{},{colorsData:function(){return h(h(h(h({},l.constants.DIAGRAM_ITEM_DATA_KEY_FILL,{label:"Fill",color:l.diagramStructure.colorFill}),l.constants.DIAGRAM_ITEM_DATA_KEY_STROKE,{label:"Border",color:l.diagramStructure.colorNormal}),l.constants.DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR,{label:"Text",color:l.diagramStructure.colorText}),l.constants.DIAGRAM_ITEM_DATA_KEY_BORDER_DASH_ARRAY,{label:"Line",style:"8 4"})},linesData:function(){return h(h({},l.constants.DIAGRAM_CONNECTOR_SOLID,[m({},l.diagramStructure.lineAttr)]),l.constants.DIAGRAM_CONNECTOR_DASHED,[m({"stroke-dasharray":"3 2"},l.diagramStructure.lineAttr)])},selectedSwimlanes:function(){var t=this;return this.xSelectedItems.elements.filter((function(e){var n=t.xGetElementData(e,"type");return n&&l.diagramElementsSwimlanes.includes(n)}))},isOnlySwimlaneSelected:function(){return this.xSelectedItems.elements.length===this.selectedSwimlanes.length&&!this.xSelectedItems.connectors.length}}),methods:{openSwimlanePopover:function(t){for(var e=this,n=[],r=1;r<=10;r+=1)n.push({value:r,label:this.$plural(this.swimlanesLabelUnit,r,!0)});this.$popover.show({component:a.default,props:{items:n},options:{width:105},position:{of:this.$refs.swimlanes||t.target.querySelector(".nc-icon")},events:{overlay:function(){return e.closePopover()},submit:function(t){e.selectedSwimlanes.forEach((function(n){var r=e.xGetElementData(n,"label","");r=JSON.parse(r),r=Array.isArray(r)?Array(t).fill("").map((function(t,e){return void 0!==r[e]?r[e]:t})):Array(t).fill("Lane name"),e.$store.commit("diagramItem/processElementAndBroadcast",{id:n,label:JSON.stringify(r)})})),c.EventBus.$emit("diagram-changed",{action:"label_update",elements:e.selectedSwimlanes,connectors:[]}),e.closePopover()}}})},openConnectorPopover:function(t){var e=this;this.$popover.show({component:o.default,props:{type:"diagram"},options:{width:80,height:69,className:"no-padding"},position:{of:t.target.querySelector(".ref")||t.target},events:{overlay:function(){return e.closePopover()},submit:function(t){e.closePopover(),e.line=e.linesData[t];var n={id:e.xSelectedItems.elements,item_id:e.xSelectedItems.elements,key:l.constants.DIAGRAM_ITEM_DATA_KEY_BORDER_DASH_ARRAY,value:t===l.constants.DIAGRAM_CONNECTOR_DASHED?"":"0"};e.$store.commit("diagramItemData/setAndBroadcast",n),i.default.diagram.saveItemData([n],"sitemap"===e.xProjectType.project).promise.then(_noop).catch(Slickplan.catchAll)}}})},resetDataColor:function(){var t=this,e={},n=[],r=Object.keys(this.colors);this.xSelectedItems.elements.forEach((function(i){n.push("0"===t.xGetItemData(i,l.constants.DIAGRAM_ITEM_DATA_KEY_BORDER_DASH_ARRAY)?l.constants.DIAGRAM_CONNECTOR_SOLID:l.constants.DIAGRAM_CONNECTOR_DASHED),r.forEach((function(n){e[n]||(e[n]=[]),e[n].push(t.xGetItemData(i,n)||"-")}))})),(r=[].concat(Object.keys(this.colorsData)).concat(l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY)).forEach((function(n){t.colors[n]=null,e[n]&&(e[n]=d(new Set(e[n])),e[n]&&1===e[n].length&&"-"!==e[n][0]&&(t.colors[n]=n===l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY?parseInt(e[n][0],10):e[n][0])),null===t.colors[n]&&n!==l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY&&(t.colors[n]=t.colorsData[n].color)})),n=d(new Set(n)),this.line=1===n.length?this.linesData[n[0]]:this.linesData[l.constants.DIAGRAM_CONNECTOR_DASHED]},updateButtons:function(){var t=this,e=this.xSelectedItems.elements.map((function(e){var n=t.xGetElementData(e,"type");return n?Slickplan.helpers.getValue(l.diagramElements,[n,"data"]):[]}));if(e.some((function(t){return!t||!t.length})))this.buttons=[];else{var n=Object.keys(this.colorsData);e.forEach((function(t){if(!n||!n.length)return!1;n=n.filter((function(e){return t.includes(e)}))})),this.buttons=n}}},watch:{"xSelectedItems.elements":function(t){t.length&&(this.updateButtons(),this.resetDataColor())}},mounted:function(){var t=this;this.updateButtons(),this.resetDataColor(),this.$watch("selectedSwimlanes",(function(e){if(t.isOnlySwimlaneSelected){var n="Size";t.swimlanesLabelUnit="lane";var r=d(new Set(e.map((function(e){var n=JSON.parse(t.xGetElementData(e,"label",""));return Array.isArray(n)?n.length:1})))),i=d(new Set(e.map((function(e){return t.xGetElementData(e,"type","")}))));1===r.length&&(1===i.length&&(t.swimlanesLabelUnit=i[0]===l.constants.DIAGRAM_ELEMENT_SWIMLANE_VERTICAL?"col":"row"),n=t.$plural(t.swimlanesLabelUnit,r[0],!0)),t.swimlanesLabel=n}}),{immediate:!0})}}},65105:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(5712),o=n(40216),a=n(14580),s=n(52892),l=n(22164);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"diagram-action-bar-text",editor:null,data:function(){return{currentPopover:null,text:a.diagramStructure.colorText,size:"11px",iconAlign:"align-left"}},computed:p(p({},(0,r.mapState)({xSelectedItems:function(t){return t.diagramItem.selectedItems},xSelectedItemsType:function(t){return t.diagramItem.selectedItemsType}})),(0,r.mapGetters)({xCurrentDiagramBBox:"diagram/getCurrentBBox",xGetElementData:"diagramItem/getElementData",xGetItemData:"diagramItemData/getItemData"})),methods:{execEditorCommand:function(t,e){var n,r=(null===(n=window)||void 0===n||null===(n=n.tinymce)||void 0===n?void 0:n.activeEditor)||this.$options.editor;if(r){if(t.indexOf(":")>0){var i=u(t.split(":"),2);t=i[0],e=i[1]}r.editorCommands.execCommand(t,!1,e)}},openPopover:function(t,e){var n=this,r=Slickplan.helpers.objectCloneDeep(a.tinymceCustomLists[t]);this.currentPopover=t,this.$popover.show({component:i.default,props:{items:r},options:{width:105},position:{of:this.$refs[t]||e.target.querySelector(".nc-icon")},events:{overlay:function(){return n.closePopover()},submit:function(e){n.execEditorCommand(e);var i=r.find((function(t){return t.value===e}));i&&i.label&&n[t]&&(n[t]=i.label),n.closePopover()}}})},onColorChange:function(t){var e="string"==typeof t?t:t?t.color:null;e&&Slickplan.helpers.isHex(e)&&(this.text=e,this.execEditorCommand("ForeColor",this.text))},onColorReset:function(t){this.onColorChange(a.diagramStructure.colorText),t&&this.closePopover(!0)},openColorpicker:function(){var t=this;this.$popover.show({component:o.default,props:{close:!1,levels:!1,deletable:!1,colors:[{id:"color",color:this.text,defaultColor:a.diagramStructure.colorText}]},options:{width:190},position:{of:this.$refs.text},events:{overlay:this.closePopover,change:this.onColorChange,reset:function(){return t.onColorReset(!1)}},buttons:[{id:"save",className:["-primary","-smaller","float-right"],label:"Done",onClick:function(){(0,s.saveRecentColors)(),t.closePopover()}},{id:"cancel",className:["-plain","-smaller","-first","float-right"],label:"Clear",onClick:function(){return t.onColorReset(!0)}}]})},closePopover:function(){this.$popover.hide(),this.currentPopover=null},setIcon:function(t,e){"text"===t&&Slickplan.helpers.isHex(e)&&this.text!==e?this.text=e:t.startsWith("icon")&&this[t]!==e?this[t]=e:"size"===t&&e.endsWith("px")&&this.size!==e&&(this.size=e)},onEditorNodeChange:function(t){var e=t.editor;this.$options.editor=e;var n=e.selection.getNode(),r=e.selection.isCollapsed()?[e.dom.getParent(n,e.dom.isBlock)]:e.selection.getSelectedBlocks();this.setIcon("iconAlign",r.some((function(t){return e.formatter.matchNode(t,"aligncenter")}))?"align-center":r.some((function(t){return e.formatter.matchNode(t,"alignright")}))?"align-right":"align-left"),1===r.length&&n?(this.setIcon("text",Slickplan.helpers.rgb2hex(e.dom.getStyle(n,"color",!0)||a.diagramStructure.colorText)),this.setIcon("size",e.dom.getStyle(n,"font-size",!0)||"11px")):this.setIcon("text",a.diagramStructure.colorText)}},mounted:function(){l.EventBus.$on("diagram-text-node-change",this.onEditorNodeChange)},beforeDestroy:function(){l.EventBus.$off("diagram-text-node-change",this.onEditorNodeChange)}}},840:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(9328),o=n(65056),a=n(14580),s=n(22164);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"diagram-connector",components:{"foreign-object":i.default},mixins:[o.mixinProjectStatus],mouseEventData:null,props:{id:{type:String,required:!0}},data:function(){return{pointsString:"",internalPoints:[],isSelected:!1,isHover:!1,isUpdating:!1}},computed:f(f(f({},(0,r.mapState)({xConnector:function(t){return t.diagramItem[this.id]||{}},xItemData:function(t){return t.diagramItemData[this.id]||{}},xSelectedItems:function(t){return t.diagramItem.selectedItems},xDiagramStandaloneConnectors:function(t){return t.diagramItem.standaloneConnectors},xDiagramGhostSelect:function(t){return t.diagram.ghostSelect},xDiagramScale:function(t){return t.diagram.scale},xDiagramMode:function(t){return t.diagram.mode}})),(0,r.mapGetters)({xGetConnectFromTo:"diagramItem/getConnectFromTo",xGetLinePointsFromTo:"diagramItem/getLinePointsFromTo",xCurrentDiagramData:"diagram/getCurrentData",xTempConnectorData:"diagramItem/draggingLine",xGetConnectorData:"diagramItem/getConnectorData"})),{},{canEdit:function(){return this.isDiagramStructureEditable&&"comment"!==this.xDiagramMode[0]},isMultiSelecting:function(){return this.xDiagramGhostSelect.visible},diagramScale:function(){return this.xDiagramScale||1},diagramStructure:function(){return a.diagramStructure},connectorType:function(){return this.xConnector.type||a.diagramStructure.defaultLineType.slice(0)},isPlaceholder:function(){return this.id.startsWith(a.diagramStructure.linePlaceholderId)},isTypeDouble:function(){return this.connectorType[0]===a.constants.DIAGRAM_CONNECTOR_DOUBLE},isFreeform:function(){return this.xDiagramStandaloneConnectors.includes(this.id)},pointsWithOffset:function(){var t=this,e=this.internalPoints.map((function(t){return"string"==typeof t?t:t.slice(0)}));if(!this.isFreeform){var n=[{index:0,dir:"from"}];e.length-1>0&&n.push({index:e.length-1,dir:"to"}),n.forEach((function(n){var r=t.xConnector["".concat(n.dir,"-direction")],i=t.connectorType["from"===n.dir?1:2],o=r?Slickplan.helpers.getValue(a.diagramConnectors.markers,[i,"offset"],0):0;o>0&&(e[n.index]["left"===r||"right"===r?0:1]+=o*("up"===r||"left"===r?-1:1))}))}return e},pointsArray:function(){return this.pointsWithOffset.join(" ").split(" ").map((function(t){return("string"==typeof t?t.split(","):t.slice(0)).map((function(t){return Number(t)}))}))},points:function(){return this.pointsWithOffset.map((function(t){return"string"==typeof t?t:t.join(",")})).join(" ")},pointsDouble:function(){if(!this.isTypeDouble)return[];for(var t=p(p(p({},a.constants.DIAGRAM_CONNECTOR_ARROW,6),a.constants.DIAGRAM_CONNECTOR_CIRCLE,6),a.constants.DIAGRAM_CONNECTOR_POINTER,2),e=this.pointsArray.map((function(t){return t[0]=Number(t[0]),t[1]=Number(t[1]),t.slice(0)})),n=this.pointsArray.map((function(t){return t[0]=Number(t[0]),t[1]=Number(t[1]),t.slice(0)})),r=[],i=0,o=e.length;i<o;i+=1){var s=t[this.connectorType[1]]||0,l=t[this.connectorType[2]]||0,c=r.length?r[r.length-1]:"";i+1>=o?"left"===c?(e[i][0]-=l,n[i][0]-=l):"right"===c?(e[i][0]+=l,n[i][0]+=l):"up"===c?(e[i][1]-=l,n[i][1]-=l):(e[i][1]+=l,n[i][1]+=l):Math.ceil(e[i+1][0])>Math.ceil(e[i][0])?(c||(e[i][0]+=s,n[i][0]+=s),r.push("left")):Math.ceil(e[i+1][0])<Math.ceil(e[i][0])?(c||(e[i][0]-=s,n[i][0]-=s),r.push("right")):Math.ceil(e[i+1][1])>Math.ceil(e[i][1])?(c||(e[i][1]+=s,n[i][1]+=s),r.push("up")):(c||(e[i][1]-=s,n[i][1]-=s),r.push("down"))}return[e.map((function(t){return t.join(",")})).join(" "),n.map((function(t){return t.join(",")})).join(" ")]},repositionHandlers:function(){return this.isHover&&!this.isUpdating&&this.isFreeform?[{type:"from",point:this.pointsArray[0]},{type:"to",point:this.pointsArray[this.pointsArray.length-1]}]:[]},avatarPoints:function(){var t=this.pointsArray[Math.floor(this.pointsArray.length/2)];return{x:t[0]-13,y:t[1]-13}},stroke:function(){return this.isHover||this.isPlaceholder||this.isUpdating?a.diagramStructure.colorActive:this.xItemData[a.constants.DIAGRAM_ITEM_DATA_KEY_STROKE]||a.diagramStructure.colorNormal},strokeWidth:function(){return!!this.isSelected&&a.diagramStructure.strokeWidthSelected},strokeWidthDouble:function(){return this.strokeWidth>0?this.strokeWidth%2==0?this.strokeWidth:this.strokeWidth+1:0},strokeDashArray:function(){return this.marker.type===a.constants.DIAGRAM_CONNECTOR_DASHED&&"4 4"},marker:function(){var t=c(this.connectorType,3),e=t[0],n=t[1],r=t[2],i=this.stroke.replace("#","");return{type:e,start:this.getMarkerHref(n,i),end:this.getMarkerHref(r,i)}}}),methods:{getMarkerHref:function(t,e){return t&&t!==a.constants.DIAGRAM_CONNECTOR_NONE?"url(#svg-marker-".concat(t,"-").concat(e,")"):null},setInternalPoints:function(t){var e=String(t);if(e!==this.pointsString){this.pointsString=e;var n=(e=e.split(" ")).shift().split(",").map((function(t){return Number(t)})),r=e.pop().split(",").map((function(t){return Number(t)}));(e=e.length?[e.join(" ")]:[]).unshift(n),r&&e.push(r),this.internalPoints=e}},onMouseEnter:function(){this.canEdit&&(this.xTempConnectorData||this.isMultiSelecting||(this.isHover=!0))},onMouseDown:function(t){this.canEdit&&(t.target&&t.target.dataset&&t.target.dataset.marker?this.onMouseDownPoints(t,t.target.dataset.marker):this.onMouseDownMove(t))},onClick:function(t){var e=t.shiftKey||t.ctrlKey;this.isSelected?e&&this.$store.commit("diagramItem/removeFromSelected",this.id):this.$store.commit("diagramItem/addToSelected",e?this.id:[this.id])},onMouseDownMove:function(t){if(!this.isFreeform)return this.onClick(t);this.isUpdating=!0,document.addEventListener("mousemove",this.onMouseMoveMove),document.addEventListener("mouseup",this.onMouseUpMove);var e=this.$el.closest("svg");this.$options.mouseEventData={event:t,svg:e,mouse:Slickplan.helpers.getMousePositionSvg(t,e,this.diagramScale),points:Slickplan.helpers.objectCloneDeep(this.pointsArray),moved:!1}},onMouseMoveMove:function(t){document.body.style.cursor="move";var e=this.$options.mouseEventData,n=e.svg,r=e.mouse,i=e.points;e.moved=!0;var o=Slickplan.helpers.getMousePositionSvg(t,n,this.diagramScale),a=o.x-r.x,s=o.y-r.y;this.$store.commit("diagramItem/processConnectorAndBroadcast",{id:this.id,points:Slickplan.helpers.objectCloneDeep(i).map((function(t){return[t[0]+a,t[1]+s].join(",")})).join(" ")})},onMouseUpMove:function(){this.isUpdating=!1,document.removeEventListener("mousemove",this.onMouseMoveMove),document.removeEventListener("mouseup",this.onMouseUpMove);var t=this.$options.mouseEventData;t.moved?this.onMouseUpUpdate():this.onClick(t.event),this.$options.mouseEventData=null},onMouseDownPoints:function(t,e){t.stopPropagation(),this.isUpdating=!0,document.addEventListener("mousemove",this.onMouseMovePoints),document.addEventListener("mouseup",this.onMouseUpPoints),document.body.style.cursor="crosshair";var n=this.$el.closest("svg"),r={from:this.xConnector["from-direction"],to:this.xConnector["to-direction"]};this.$options.mouseEventData={svg:n,mouse:Slickplan.helpers.getMousePositionSvg(t,n,this.diagramScale),type:e,direction:r,currentDirection:"from"===e?r.from:r.to,points:Slickplan.helpers.objectCloneDeep(this.pointsArray),moved:!1}},onMouseMovePoints:function(t){var e,n=this.$options.mouseEventData,r=n.svg,i=n.mouse,o=n.type,s=n.points,l=n.direction,c=n.currentDirection,u=Slickplan.helpers.getMousePositionSvg(t,r,this.diagramScale),d=u.x-a.diagramStructure.workareaMargins[3]/this.diagramScale,f=u.y-a.diagramStructure.workareaMargins[0]/this.diagramScale,p=c;u.x>i.x+2?p="left":u.x<i.x-2?p="right":u.y>i.y+2?p="up":u.y<i.y-2&&(p="down"),e="from"===o?[{x:d,y:f,direction:p},{x:s[s.length-1][0],y:s[s.length-1][1],direction:l.to}]:[{x:s[0][0],y:s[0][1],direction:l.from},{x:d,y:f,direction:p}],e=this.xGetConnectFromTo(e[0],e[1],s),this.$store.commit("diagramItem/processConnectorAndBroadcast",{id:this.id,"from-direction":e.from.direction,"to-direction":e.to.direction,points:this.xGetLinePointsFromTo(e.from,e.to)}),n.moved=!0,n.mouse=u,n.currentDirection=p},onMouseUpPoints:function(){document.removeEventListener("mousemove",this.onMouseMovePoints),document.removeEventListener("mouseup",this.onMouseUpPoints),this.onMouseUpUpdate()},onMouseUpUpdate:function(){document.body.style.cursor=null,this.$options.mouseEventData=null,this.isUpdating=!1;var t=this.xGetConnectorData(this.id);t&&t["from-direction"]&&t["to-direction"]&&t.points&&s.EventBus.$emit("diagram-changed",{action:"line_update",elements:[],connectors:[this.id]})}},watch:{"xConnector.points":function(t){this.setInternalPoints(t)},"xSelectedItems.connectors":function(t){var e=t.indexOf(this.id)>=0;this.isSelected!==e&&(this.isSelected=e)}},created:function(){this.setInternalPoints(this.xConnector.points)}}},51499:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(14580),o=n(22164);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"diagram-element-connectors",mouseEventData:{},tempConnectorId:null,data:function(){return{currentListIndex:-1}},computed:l(l(l({},(0,r.mapState)({xDiagramScale:function(t){return t.diagram.scale}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData",xGetConnectFromTo:"diagramItem/getConnectFromTo",xGetLinePointsFromTo:"diagramItem/getLinePointsFromTo",xGetConnectorData:"diagramItem/getConnectorData"})),{},{diagramStructure:function(){return i.diagramStructure},width:function(){return this.$parent.width},height:function(){return this.$parent.height},connectionList:function(){var t=this,e=this.width/2,n=this.height/2,r={left:0,right:0,up:0,down:0};if(this.$parent.xElement.connectors){this.$parent.xElement.connectors.forEach((function(e){var n=t.xGetConnectorData(e);if(n){var o=0;["from","to"].forEach((function(e,a){n["".concat(e,"-element")]===t.$parent.id&&n.type[a+1]!==i.constants.DIAGRAM_CONNECTOR_NONE&&(o=(o=Slickplan.helpers.getValue(i.diagramElements,[t.$parent.xElement.type,"connector","offset",n["".concat(e,"-direction")]],0))?Math.max(0,10-("left"===n["".concat(e,"-direction")]||"right"===n["".concat(e,"-direction")]?t.width:t.height)*Math.abs(o)):10,r[n["".concat(e,"-direction")]]=o)}))}}))}return[["M",-6-r.left,n-5,"v 10 l -7 -5 Z"].join(" "),["M",this.width+1+5+r.right,n-5,"v 10 l 7 -5 Z"].join(" "),["M",e-5,-6-r.up,"h 10 l -5 -7 Z"].join(" "),["M",e-5,this.height+1+5+r.down,"h 10 l -5 7 Z"].join(" ")]},connectionHover:function(){return this.currentListIndex>=0?this.connectionList[this.currentListIndex]:null},connectionHandlers:function(){var t=this,e=30;return i.diagramStructure.connectionHandlers.map((function(n,r){return{width:e,height:e,x:"up"===n||"down"===n?t.width/2-15:"right"===n?t.width-4:-26,y:"left"===n||"right"===n?t.height/2-15:"down"===n?t.height-4:-26,index:r,direction:n}}))}}),methods:{onMouseDown:function(t,e){var n=this.$el.closest("svg"),r=Slickplan.helpers.getMousePositionSvg(t,n,this.xDiagramScale);this.$options.mouseEventData={svg:n,x:r.x,y:r.y,fromData:{id:this.$parent.id,direction:e,type:this.$parent.xElement.type}},this.$options.tempConnectorId=Slickplan.helpers.uniqueId(i.diagramStructure.linePlaceholderId,null,8),document.body.style.cursor="crosshair",document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),o.EventBus.$on("keypress-escape",this.onKeypressEscape)},onMouseMove:function(t){var e=this.$options.mouseEventData,n=Slickplan.helpers.getMousePositionSvg(t,e.svg,this.xDiagramScale),r=e.lastMouseMove,o=document.elementFromPoint(t.clientX,t.clientY),a=null,s=null;if(o&&"rect"===o.tagName&&o.classList.contains("helper")&&o.dataset.id&&o.dataset.id!==e.fromData.id&&!i.diagramElementsContainers.includes(o.dataset.type)&&o.dataset.type!==i.constants.DIAGRAM_ELEMENT_TEXT){var l;s=r&&r.id===o.dataset.id&&r.rect?r.rect:o.getBoundingClientRect();var c=(t.clientX-s.left)/s.width,u=(t.clientY-s.top)/s.height;if(l=u+c>1?c>.5&&u<=c?"right":"down":u<.5&&u<=c?"up":"left",a={id:o.dataset.id,direction:l,type:o.dataset.type},r&&r.id===o.dataset.id&&r.dir===a.direction)return}else a={x:n.x-i.diagramStructure.workareaMargins[3]/this.xDiagramScale,y:n.y-i.diagramStructure.workareaMargins[0]/this.xDiagramScale};var d=this.xGetConnectFromTo(e.fromData,a);e.fromTo=d,e.lastMouseMove={id:o.dataset.id,dir:a.direction||null,rect:s},this.$store.commit("diagramItem/processConnectorAndBroadcast",{id:this.$options.tempConnectorId,type:i.diagramStructure.defaultLineType.slice(0),"from-element":this.$parent.id,"to-element":o.dataset.id||null,"from-direction":e.fromData.direction,"to-direction":a.direction||null,points:this.xGetLinePointsFromTo(d.from,d.to,!0)})},onMouseUp:function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),o.EventBus.$off("keypress-escape",this.onKeypressEscape);var t=this.xGetConnectorData(this.$options.tempConnectorId);if(t&&t["from-element"]&&t["to-element"]&&t["from-direction"]&&t["to-direction"]&&t.points&&t.type){var e=Slickplan.helpers.uniqueId("svgpolyline"),n=this.$options.mouseEventData.fromTo;this.$store.commit("diagramItem/processConnectorAndBroadcast",Slickplan.helpers.objectMergeDeep(t,{id:e,points:this.xGetLinePointsFromTo(n.from,n.to),status:"new"})),o.EventBus.$emit("diagram-changed",{action:"line_add",elements:[],connectors:[e]})}this.$options.mouseEventData={},document.body.style.cursor=null,this.$store.commit("diagramItem/deleteConnectorAndBroadcast",this.$options.tempConnectorId)},onKeypressEscape:function(){this.xGetConnectorData()&&(this.$store.commit("diagramItem/deleteConnectorAndBroadcast",this.$options.tempConnectorId),this.onMouseUp())}}}},61224:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(14580),o=n(22164);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"diagram-element-resize",mouseEventData:{},data:function(){return{currentResizingHandler:!1,currentListIndex:-1,hasChanged:!1}},computed:u(u(u({},(0,r.mapState)({xDiagramScale:function(t){return t.diagram.scale}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData"})),{},{diagramStructure:function(){return i.diagramStructure},width:function(){return this.$parent.width},height:function(){return this.$parent.height},matrix:function(){return this.$parent.matrix},d:function(){return this.resizeList.join(" ")},aspectRatio:function(){return this.$parent.xItemData[i.constants.DIAGRAM_ITEM_DATA_KEY_RATIO]||Slickplan.helpers.getValue(this.$parent.elementData,"aspectRatio",0)},resizeList:function(){var t=this.width-3,e=this.height-3;return["M -5 -5 v 8 h 8 v -8 Z",["M",t,"-5 v 8 h 8 v -8 Z"].join(" "),["M",t,e,"v 8 h 8 v -8 Z"].join(" "),["M -5",e,"v 8 h 8 v -8 Z"].join(" ")]},resizeHover:function(){return this.currentResizingHandler?this.resizeList[this.currentResizingHandler.index]:this.currentListIndex>=0?this.resizeList[this.currentListIndex]:null},resizeHandlers:function(){var t=this;return i.diagramStructure.resizeHandlers.map((function(e,n){return{id:e,index:n,x:("ne"===e||"se"===e?t.width:0)-8,y:("se"===e||"sw"===e?t.height:0)-8,cursor:"nw"===e||"se"===e?"nwse-resize":"nesw-resize",isNorth:"n"===e.charAt(0),isSouth:"s"===e.charAt(0),isEast:"e"===e.charAt(1),isWest:"w"===e.charAt(1)}}))}}),methods:{onResizeMouseDown:function(t,e){var n=this.$el.closest("svg"),r=Slickplan.helpers.getMousePositionSvg(t,n,this.xDiagramScale);this.hasChanged=!1,this.$options.mouseEventData={x:r.x,y:r.y,svg:n,width:this.width,height:this.height,matrix:this.matrix},document.body.style.cursor=e.cursor,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),o.EventBus.$on("keypress-escape",this.onKeypressEscape),this.currentResizingHandler=e,this.$parent.setResizing(!0)},onMouseMove:function(t){var e=this.$options.mouseEventData,n=Slickplan.helpers.getMousePositionSvg(t,e.svg,this.xDiagramScale),r=n.x-e.x,o=this.$parent.elementData.sizes,a=s(o.min,2),l=a[0],c=a[1],u=s(o.max,2),d=u[0],f=u[1],p=e.width,m=e.height,h=s(e.matrix,2),v=h[0],b=h[1];this.currentResizingHandler.isEast&&(p=Math.min(d,Math.max(l,e.width+r))),this.currentResizingHandler.isWest&&(p=Math.min(d,Math.max(l,e.width-r))),i.diagramStructure.snapToGrid&&(p=Math.round(p/i.diagramStructure.snapToGrid)*i.diagramStructure.snapToGrid);var y=this.aspectRatio||(t.shiftKey?o.normal[1]/o.normal[0]:null);if(y)m=p*y;else{var g=n.y-e.y;this.currentResizingHandler.isSouth&&(m=Math.min(f,Math.max(c,e.height+g))),this.currentResizingHandler.isNorth&&(m=Math.min(f,Math.max(c,e.height-g)))}i.diagramStructure.snapToGrid&&(m=Math.round(m/i.diagramStructure.snapToGrid)*i.diagramStructure.snapToGrid),this.currentResizingHandler.isNorth&&(b+=e.height-m),this.currentResizingHandler.isWest&&(v+=e.width-p),this.hasChanged=!0,this.$store.commit("diagramItem/processElementAndBroadcast",{id:this.$parent.id,width:p,height:m,matrix:[v,b]}),"function"==typeof this.$parent.updateConnectorsPositions&&this.$parent.updateConnectorsPositions()},onMouseUp:function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),o.EventBus.$off("keypress-escape",this.onKeypressEscape),this.hasChanged&&o.EventBus.$emit("diagram-changed",{action:"resize",elements:[this.$parent.id],connectors:this.$parent.xElement.connectors}),this.$parent.setResizing(!1),this.currentResizingHandler=!1,this.$options.mouseEventData={},document.body.style.cursor=null},onKeypressEscape:function(){if(this.currentResizingHandler){var t=this.$options.mouseEventData;this.$store.commit("diagramItem/processElementAndBroadcast",{id:this.$parent.id,width:t.width,height:t.height,matrix:t.matrix}),this.onMouseUp()}}}}},90424:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(63596),i=n(48416),o=n(5828),a=n(35360),s=n(33952),l=n(9328),c=n(14580),u=n(22164),d=n(78064);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"diagram-element",components:{"element-connectors":o.default,"element-resize":a.default,"tinymce-editor":r.default,shape:s.default,"foreign-object":l.default},mixins:[d.mixinDiagramElementBase],props:{id:{type:String,required:!0}},labelEditable:"",data:function(){return{labelEditable:"",loadedImage:null}},computed:m(m(m({},(0,i.mapState)({xRelatedCell:function(t){return!(!t.project.currentProjectType.sitemap||!t.diagramItem[this.id]||t.diagramItem[this.id].type!==c.constants.DIAGRAM_ELEMENT_PAGE)&&(t.sitemapCell[t.diagramItem[this.id].cell_id]||!0)}})),(0,i.mapGetters)({xGetCellData:"sitemapCell/getData"})),{},{diagramStructure:function(){return c.diagramStructure},isConnectorHandlerVisible:function(){return this.canEdit&&this.canConnect&&!this.isDragging&&!this.xTempConnectorData&&!this.isMultiSelecting&&this.isHover&&!this.isResizing&&!this.xElement.editingBy},isConnectorDropVisible:function(){return this.canEdit&&this.canConnect&&this.xTempConnectorData&&this.isHover&&!this.xElement.editingBy},isTextElementEditorVisible:function(){return this.canEdit&&this.isTextElement&&this.isLabelTextEditable&&!this.xElement.editingBy},isInSitemapPageElement:function(){return Boolean(this.xRelatedCell)},canConnect:function(){return this.canEdit&&!this.isTextElement&&!this.isGroupElement},elementAreaGroupTag:function(){return this.xElement.type===c.constants.DIAGRAM_ELEMENT_GROUP_CIRCLE?"circle":this.xElement.type===c.constants.DIAGRAM_ELEMENT_GROUP_DIAMOND?"path":null},elementAreaGroup:function(){var t={class:["helper"],"data-type":this.xElement.type,"data-id":this.id,fill:"none",stroke:"transparent","stroke-width":20,x:-2,y:-2};return"circle"===this.elementAreaGroupTag&&(t=m(m({},t),{},{cx:this.width/2,cy:this.width/2,r:this.width/2})),"path"===this.elementAreaGroupTag&&(t=m(m({},t),{},{d:["M 0",this.height/2,"L",this.width/2,this.height,"L",this.width,this.height/2,"L",this.width/2,"0 Z"].join(" ")})),t},elementArea:function(){var t={class:["helper"],"data-type":this.xElement.type,"data-id":this.id,width:this.width,height:this.height};return(this.xSelectedItems.elements.length||this.xSelectedItems.connectors.length)&&(t.class.push("element-clickable"),t.style="cursor: pointer"),this.isGroupElement?(t.fill="none",t.stroke="transparent",t["stroke-width"]=this.isMultiSelecting?1:20,t.x=-2):(t.width+=2*c.diagramStructure.elementMargin,t.height+=2*c.diagramStructure.elementMargin,t.x=-c.diagramStructure.elementMargin,t.fill="transparent",t.stroke="none",t["stroke-width"]="0"),t.y=t.x,t},labelForeignClass:function(){return this.isGroupElement||[c.constants.DIAGRAM_ELEMENT_IMAGE,c.constants.DIAGRAM_ELEMENT_TEXT,c.constants.DIAGRAM_ELEMENT_FREEFORM_CONNECTOR].includes(this.xElement.type)?"boxed":null},labelClass:function(){return["element-label",this.elementData.labelClass,{selectable:this.isTextElementEditorVisible}]},labelStyle:function(){return{color:this.xItemData[c.constants.DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR],minWidth:this.isGroupElement?"100%":null}},fill:function(){return this.xItemData[c.constants.DIAGRAM_ITEM_DATA_KEY_FILL]||!1},fillOpacity:function(){var t=this.xItemData[c.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY];return!Slickplan.helpers.isBlank(t)&&Math.min(1,Math.max(.001,t/100))},connectionDropHandlers:function(){var t=this;return c.diagramStructure.connectionHandlers.map((function(e){return{id:e,x:("up"===e||"down"===e?t.width/2:"right"===e?t.width:0)-4,y:("left"===e||"right"===e?t.height/2:"down"===e?t.height:0)-4,active:e===t.xTempConnectorData["to-direction"]}}))},editorInit:function(){return m(m({},c.tinymceProps),{},{id:"".concat(this.id,"-editor"),inline:!0,autofocus:!0,remove_linebreaks:!0,remove_trailing_brs:!1,skin:!1,skin_url:"",content_css:!1,toolbar:"",plugins:"",paste_as_text:!0,paste_data_images:!1,allow_conditional_comments:!1,font_size_formats:"",styles:Object.fromEntries(c.tinymceCustomLists.size.map((function(t){return[t.value,{inline:"span",styles:{"font-size":t.label}}]}))),valid_elements:"b/strong,i/em,p[style],span[style],br",valid_styles:{"*":"font-size,color,font-weight,text-align"},init_instance_callback:function(){var t=window.tinymce.activeEditor;t&&(t.focus(),t.on("NodeChange",(function(e){u.EventBus.$emit("diagram-text-node-change",{event:e,editor:t})}))),setTimeout((function(){t&&t.selection&&(t.selection.select(t.getBody(),!0),t.selection.collapse(!1),t.focus())}),10)}})},imageUrl:function(){var t=this.xItemData[c.constants.DIAGRAM_ITEM_DATA_KEY_ATTACHMENT];return t?"/file/get/".concat(t,"/full"):null}}),methods:{onLabelChange:function(t){this.loadLabelIfChanged(this.isTextType(t)?t:t.target.innerText,!0)},loadLabelIfChanged:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=this.isTextType(t)?"".concat(t).trim():"",this.labelEditable!==t&&(this.labelEditable=t,this.loadLabelInnerHtml(t),e&&this.saveLabelChanges())},loadLabelInnerHtml:function(t){!this.isTextElement&&this.$refs.labelEdit&&(this.$refs.labelEdit.innerText=t)},saveLabelChanges:function(){this.$store.commit("diagramItem/processElementAndBroadcast",{id:this.id,label:this.labelEditable}),u.EventBus.$emit("diagram-changed",{action:"label_update",elements:[this.id],connectors:[]})},isTextType:function(t){return"string"==typeof t||"number"==typeof t}},watch:{xRelatedCell:function(t){t&&"object"===f(t)&&this.loadLabelIfChanged(t[c.constants.CELL_DATA_KEY_LABEL]||"")},isSelected:function(t,e){!t&&e&&window.getSelection&&window.getSelection().removeAllRanges()},isTextElementEditorVisible:function(t,e){t&&!e?this.$options.labelEditable=this.labelEditable:!t&&e&&this.$options.labelEditable!==this.labelEditable&&this.saveLabelChanges()},"xElement.label":function(t){this.xRelatedCell||this.loadLabelIfChanged(t||"")}},mounted:function(){var t=this;this.updateValueOnChange("isActive",this.xActiveElement),this.updateValueOnChange("isSelected",this.xSelectedItems.elements),this.xElement.type===c.constants.DIAGRAM_ELEMENT_IMAGE&&(this.loadedImage=!0,Slickplan.helpers.checkImageUrl(this.imageUrl).then((function(e){t.loadedImage=e.src})).catch((function(){t.loadedImage=!1}))),this.labelEditable="".concat(this.xRelatedCell?"object"===f(this.xRelatedCell)&&this.xRelatedCell[c.constants.CELL_DATA_KEY_LABEL]||"":this.xElement.label||""),this.loadLabelInnerHtml(this.labelEditable);var e=this.$refs.labelEdit;e&&(e.addEventListener("keydown",(function(t){"Enter"!==t.key&&13!==t.which||(t.preventDefault(),t.target.blur())})),e.addEventListener("focus",(function(){t.onLabelChange(t.labelEditable)})),e.addEventListener("blur",(function(e){t.onLabelChange(e)})),e.addEventListener("paste",this.onLabelPaste))}}},73764:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"field-templates-diagram",model:{prop:"modelValue",event:"input"},props:{modelValue:{type:String,required:!0},addBlank:{type:Boolean,default:!0},removable:{type:Boolean,default:!1}},computed:a(a({},(0,r.mapState)({xPredefinedTemplates:function(t){return t.project.predefinedTemplates.diagram}})),{},{internalValue:{get:function(){return this.modelValue},set:function(t){this.$emit("input",t)}},templates:function(){return(this.addBlank?[{key:"blank",value:"Blank template"}]:[]).concat(this.xPredefinedTemplates)}}),methods:{openTemplateDemo:function(t){Slickplan.helpers.navigateTo(t,"demos",!0)},onResetTemplateClick:function(){this.internalValue=""}},created:function(){this.xPredefinedTemplates.length||this.$store.dispatch("project/loadPredefinedTemplates")},beforeDestroy:function(){Slickplan.helpers.requestCancel("project/loadPredefinedTemplates")}}},62012:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(33952),i=n(14580);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const s={name:"diagram-shape-svg",components:{shape:r.default},props:{shape:{type:String,required:!0},size:{type:Number,default:25}},computed:{attrs:function(){var t=this.size,e=this.size,n=this.size-1;if(this.shape!==i.constants.DIAGRAM_ELEMENT_FREEFORM_CONNECTOR){var r=o(i.diagramElements[this.shape].sizes.icon.slice(0),2);t=r[0],e=r[1];var a=n/Math.max(t,e);t*=a,e*=a}return{type:this.shape,width:t,height:e,size:this.size,marginTop:e<n?(n-e)/2:0,marginLeft:t<n?(n-t)/2:0}}}}},73680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r,i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"diagram-element-shape",props:{type:{type:String,required:!0},width:{type:Number,required:!0},height:null,fill:{default:!1},stroke:{default:!1},strokeWidth:{default:!1},strokeDasharray:{default:!1}},computed:(r={defaultAttrs:function(){return{"pointer-events":"none",stroke:this.stroke,"stroke-width":this.strokeWidth,fill:this.fill}},isGroupElement:function(){return i.diagramElementsGroups.includes(this.type)},tag:function(){return i.diagramElements[this.type]&&i.diagramElements[this.type].tag||"path"},halfWidth:function(){return this.width/2},halfHeight:function(){return this.height/2},d:function(){return this["d".concat(this.type)].join(" ")},attrs:function(){var t={};if(this.isGroupElement&&(t={"stroke-dasharray":"0"!==this.strokeDasharray&&(Math.min(this.width,this.height)<50?"2 1":"8 4"),fill:"none"}),"rect"===this.tag)if(t=s(s({},t),{},{width:this.width,height:this.height}),this.type===i.constants.DIAGRAM_ELEMENT_ROUNDED_RECTANGLE||this.type===i.constants.DIAGRAM_ELEMENT_GROUP_ROUND_RECT){var e=Math.min(this.height/21*10,this.width/36*10,this.type===i.constants.DIAGRAM_ELEMENT_GROUP_ROUND_RECT?20:999);t=s(s({},t),{},{rx:e,ry:e})}else this.type===i.constants.DIAGRAM_ELEMENT_TEXT&&(t=s(s({},t),{},{stroke:"#555","stroke-opacity":"0.4",fill:"#fff",opacity:"0.2"}));else t="circle"===this.tag?s(s({},t),{},{cx:this.halfWidth,cy:this.halfWidth,r:this.halfWidth}):"ellipse"===this.tag?s(s({},t),{},{cx:this.halfWidth,cy:this.halfHeight,rx:this.halfWidth,ry:this.halfHeight}):s(s({},t),{},{d:this.d});return s(s({},this.defaultAttrs),t)}},l(l(l(l(l(l(l(l(l(l(r,"d".concat(i.constants.DIAGRAM_ELEMENT_COLLATE),(function(){return["M 0 0 h",this.width,"L 0",this.height,"h",this.width,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_DATA),(function(){return this["d".concat(i.constants.DIAGRAM_ELEMENT_PARALLELOGRAM)]})),"d".concat(i.constants.DIAGRAM_ELEMENT_DATABASE),(function(){var t=Math.min(this.width/5,this.height/5),e=t/1.34;return["M 0",e,"v",this.height-2*e,"c 0",t,this.width,t,this.width,"0","v",-(this.height-2*e),"c 0",-t,-this.width,-t,-this.width,"0","c 0",t,this.width,t,this.width,"0"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_DELAY),(function(){var t=Math.min(this.width,this.height)/1.5,e=.75*t;return["M 0 0 v",this.height,"h",this.width-e,"c",t,"0",t,-this.height,"0",-this.height,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_GROUP_DIAMOND),(function(){return this["d".concat(i.constants.DIAGRAM_ELEMENT_DIAMOND)]})),"d".concat(i.constants.DIAGRAM_ELEMENT_DECISION),(function(){return this["d".concat(i.constants.DIAGRAM_ELEMENT_DIAMOND)]})),"d".concat(i.constants.DIAGRAM_ELEMENT_DIAMOND),(function(){return["M 0",this.halfHeight,"L",this.halfWidth,this.height,"L",this.width,this.halfHeight,"L",this.halfWidth,"0 Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_DISPLAY),(function(){var t=.75*(Math.min(this.width,this.height)/1.5);return["M",t,"0","h",this.width-t,"v",this.height,"h",-(this.width-t),"L 0",this.halfHeight,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_EXTRACT),(function(){return this["d".concat(i.constants.DIAGRAM_ELEMENT_TRIANGLE)]})),"d".concat(i.constants.DIAGRAM_ELEMENT_FILE),(function(){var t=Math.min(Math.max(.1*Math.min(this.width,this.height),2),6),e=.4*this.width,n=this.width-e,r=.2*this.height,i=.4*this.height,o=.84*this.height;return["M 0",t,"q 0",-t,t,-t,"h",this.width-2*t,"0","q",t,"0",t,t,"v",o-t,"q",-e/3,-r,-e,"0","q",-n,i,-n,-r,"Z"]})),l(l(l(l(l(l(l(l(l(l(r,"d".concat(i.constants.DIAGRAM_ELEMENT_SEMICIRCLE),(function(){return["M 0",this.height,"a",this.height,this.height,"0 0 1",this.width,"0 Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_HEXAGON),(function(){var t=Math.round(.26*this.height),e=this.height-t,n=e-t;return["M",this.halfWidth,"0 L",this.width,t,"v",n,"L",this.halfWidth,this.height,"L 0",e,"v",-n,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_INTERNAL_STORAGE),(function(){var t=Math.min(Math.max(.2*Math.min(this.width,this.height),2),10);return["M",t,"0 h",this.width-2*t,"q",t,"0",t,t,"v",this.height-2*t,"q 0",t,-t,t,"h",-(this.width-2*t),"q",-t,"0",-t,-t,"v",-(this.height-2*t),"q 0",-t,t,-t,"M",.2*this.width,"0","v",this.height,"M 0",.2*this.height,"h",this.width]})),"d".concat(i.constants.DIAGRAM_ELEMENT_MANUAL_INPUT),(function(){var t=.1*Math.min(this.width,this.height);return["M",t,t,"L",this.width,"0 v",this.height,"h",-this.width,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_MANUAL_OPERATION),(function(){return["M 0 0 h",this.width,"L",.8*this.width,this.height,"h",-.6*this.width,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_MERGE),(function(){return["M 0 0 h",this.width,"L",this.halfWidth,this.height,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_MULTIPLE_DOCUMENTS),(function(){var t=Math.min(Math.max(.1*Math.min(this.width,this.height),2),6),e=.75*this.height,n=.4*this.width,r=this.width-n,i=.2*e,o=.4*e,a=.84*e,s=1.17*e;return["M 0",t,"q 0",-t,t,-t,"h",this.width-2*t,"0","q",t,"0",t,t,"v",s-t,"q",-n/3,-i,-n,"0","q",-r,o,-r,-i,"v",-(s-t-i),"M",this.width,t,"v",a-t,"q",-n/3,-i,-n,"0","q",-r,o,-r,-i]})),"d".concat(i.constants.DIAGRAM_ELEMENT_NOTE),(function(){var t=Math.min(Math.max(.33*Math.min(this.width,this.height),2),20),e=this.width-t;return["M",e,"0 H 0 0 v",this.height,"h",this.width,"v",-(this.height-t),"L",e,"0","v",t,"h",t]})),"d".concat(i.constants.DIAGRAM_ELEMENT_OFF_PAGE_CONNECTOR),(function(){var t=this.height-Math.round(.27*this.height);return["M 0 0","v",t,"L",this.halfWidth,this.height,"L",this.width,t,"v",-t,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_OR),(function(){return["M",0,this.halfWidth,"a",this.halfWidth,this.halfWidth,"0 1 0",this.width,"0","a",this.halfWidth,this.halfWidth,"0 1 0",-this.width,"0","M",this.halfWidth,"0 v",this.width,"M 0",this.halfWidth,"h",this.width]})),l(l(l(l(l(l(l(l(l(l(r,"d".concat(i.constants.DIAGRAM_ELEMENT_PAPER_TYPE),(function(){var t=this.width/4,e=.1*this.height;return["M 0 0","Q",t,3*e,2*t,e,"T",this.width,e,"v",this.height-e,"Q",3*t,this.height-3*e,2*t,this.height-e,"T","0",this.height-e,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_PARALLELOGRAM),(function(){var t=Math.round(Math.min(.24*this.width,.24*this.height)),e=this.width-t;return["M 0",this.height,"h",e,"L",this.width,"0 h",-e,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_PREDEFINED_PROCESS),(function(){var t=.18*this.width;return["M 0 0 v",this.height,"h",this.width,"v",-this.height,"h",-this.width,"M",t,"0 v",this.height,"M",this.width-t,"0 v",this.height]})),"d".concat(i.constants.DIAGRAM_ELEMENT_PREPARATION),(function(){var t=.2*this.width,e=this.width-2*t;return["M",t,"0 h",e,"L",this.width,this.halfHeight,"L",this.width-t,this.height,"h",-e,"L 0",this.halfHeight,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_SORT),(function(){return["M 0",this.halfHeight,"L",this.halfWidth,this.height,"L",this.width,this.halfHeight,"L",this.halfWidth,"0","L 0",this.halfHeight,"h",this.width]})),"d".concat(i.constants.DIAGRAM_ELEMENT_STORED_DATA),(function(){var t=Math.min(this.width,this.height)/1.5,e=.75*t,n=this.width-.56*t;return["M",this.width-n,"0 h",n,"c",-e,"0",-e,this.height,"0",this.height,"h",-n,"c",-e,"0",-e,-this.height,"0",-this.height]})),"d".concat(i.constants.DIAGRAM_ELEMENT_SUMMING),(function(){var t=45*Math.PI/180,e=135*Math.PI/180;return["M",0,this.halfWidth,"a",this.halfWidth,this.halfWidth,"0 1 0",this.width,"0","a",this.halfWidth,this.halfWidth,"0 1 0",-this.width,"0","M",this.halfWidth+Math.cos(t)*this.halfWidth,this.halfWidth-Math.sin(t)*this.halfWidth,"L",this.halfWidth-Math.cos(t)*this.halfWidth,this.halfWidth+Math.sin(t)*this.halfWidth,"M",this.halfWidth+Math.cos(e)*this.halfWidth,this.halfWidth-Math.sin(e)*this.halfWidth,"L",this.halfWidth-Math.cos(e)*this.halfWidth,this.halfWidth+Math.sin(e)*this.halfWidth]})),"d".concat(i.constants.DIAGRAM_ELEMENT_MAGNETIC_TAPE),(function(){return["M",0,this.halfWidth,"a",this.halfWidth,this.halfWidth,"0 1 0",this.width,"0","a",this.halfWidth,this.halfWidth,"0 1 0",-this.width,"0","M",this.halfWidth,this.width,"h",this.halfWidth]})),"d".concat(i.constants.DIAGRAM_ELEMENT_TRAPEZE),(function(){return["M 0",this.height,"h",this.width,"L",.8*this.width,"0 h",-.6*this.width,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_TRIANGLE),(function(){return["M 0",this.height,"h",this.width,"L",this.halfWidth,"0 Z"]})),l(l(l(l(r,"d".concat(i.constants.DIAGRAM_ELEMENT_USER),(function(){var t=i.diagramElements[i.constants.DIAGRAM_ELEMENT_USER],e=this.width/t.sizes.min[0],n=8*e,r=7*e,o=14.95*e,a=8*e,s=14*e,l=s-a,c=o-r,u=8.8*e,d=2.15*e,f=2.2*e;return[["M 0",r,"h",n].join(" "),["M",s,r,"h",n].join(" "),["M",a,o,"v",n].join(" "),["M",s,o,"v",n].join(" "),["M",a,o,"h",l,"v",-c,"h",-l,"v",c].join(" "),["M",u,d,"a",f,f,"0 1 0",2*f,"0 a",f,f,"0 1 0",-2*f,"0"].join(" ")]})),"d".concat(i.constants.DIAGRAM_ELEMENT_FREEFORM_CONNECTOR),(function(){var t=Math.floor(this.width/3),e=Math.floor(this.height/3);return["M 0",this.halfHeight,"h",2*t,"L",2*t,e,"L",this.width,this.halfHeight,"L",2*t,this.height-e,"L",2*t,this.halfHeight,"Z"]})),"d".concat(i.constants.DIAGRAM_ELEMENT_SWIMLANE_VERTICAL),(function(){var t=.18*this.height;return["M 0 0 v",this.height,"h",this.width,"v",-this.height,"h",-this.width,"M 0",t,"h",this.width]})),"d".concat(i.constants.DIAGRAM_ELEMENT_SWIMLANE_HORIZONTAL),(function(){var t=.18*this.width;return["M 0 0 v",this.height,"h",this.width,"v",-this.height,"h",-this.width,"M",t,"0 v",this.height]})))}},12536:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"diagram-sidebar",mixins:[n(78064).mixinDiagramElementListing],data:function(){return{uploadFileKey:!1,sectionsVisible:{general:!0,flowchart:!0,geometric:!0,containers:!0}}},computed:a(a({},(0,r.mapState)({xProjectHeaderHeight:function(t){return t.project.headerHeight},xPanelVisible:function(t){return t.panel.visible},xPanelPreviewComponent:function(t){return t.panel.previewComponent.component},xDiagramMode:function(t){return t.diagram.mode}})),{},{sidebarStyleAttr:function(){var t=null;return"comment"===this.xDiagramMode[0]?t="translateX(calc(-100% - 40px))":this.xPanelVisible&&this.xPanelPreviewComponent&&(t="translateX(-220px)"),{transform:t,height:this.xProjectHeaderHeight?"calc(100% - ".concat(this.xProjectHeaderHeight,"px)"):"100%"}}}),methods:{onSubmenuToggle:function(t){this.sectionsVisible[t.id]||Slickplan.helpers.setSlideTransitionHeight(42*Math.ceil(t.shapes.length/4)),this.sectionsVisible[t.id]=!this.sectionsVisible[t.id]}}}},54404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(35360),i=n(14580),o=n(78064),a=n(9328),s=n(22164);const l={name:"diagram-swimlane",components:{"element-resize":r.default,"foreign-object":a.default},mixins:[o.mixinDiagramElementBase],props:{id:{type:String,required:!0}},data:function(){return{labelEditable:[]}},computed:{isHorizontal:function(){return this.xElement.type===i.constants.DIAGRAM_ELEMENT_SWIMLANE_HORIZONTAL},lanes:function(){return this.labelEditable.length},d:function(){var t=["M 0 0 v",this.height,"h",this.width,"v",-this.height,"h",-this.width];if(this.isHorizontal){for(var e=Math.floor(this.height/this.lanes),n=1;n<this.lanes;n+=1)t=t.concat(["M 0",e*n,"h",this.width]);t=t.concat(["M",this.elementData.sizes.header,"0 v",this.height])}else{for(var r=Math.floor(this.width/this.lanes),i=1;i<this.lanes;i+=1)t=t.concat(["M",r*i,"0 v",this.height]);t=t.concat(["M 0",this.elementData.sizes.header,"h",this.width])}return t},attrs:function(){return{"pointer-events":"none",stroke:this.stroke,"stroke-width":this.strokeWidth,"stroke-dasharray":!!this.strokeDasharray&&"8 4",fill:"none",d:this.d.join(" ")}},elementArea:function(){var t=this.d.slice(0);t=this.isHorizontal?t.concat(["M",Math.floor(this.elementData.sizes.header/2),"0 v",this.height]):t.concat(["M 0",Math.floor(this.elementData.sizes.header/2),"h",this.width]);var e={class:["helper"],"data-type":this.xElement.type,"data-id":this.id,fill:"none",stroke:"transparent","stroke-width":15,x:-2,y:-2,d:t.join(" ")};return(this.xSelectedItems.elements.length||this.xSelectedItems.connectors.length)&&(e.class.push("element-clickable"),e.style="cursor: pointer"),e},labelClass:function(){return["element-label",this.xElement.type.replace("_","-"),{selectable:this.isTextElementEditorVisible}]},labelStyle:function(){var t="".concat(100/this.lanes,"%");return{color:this.xItemData[i.constants.DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR],width:this.isHorizontal?"auto":t,height:this.isHorizontal?t:"auto"}}},methods:{onLabelPressEnter:function(){this.$store.commit("diagramItem/removeFromSelected",this.id)},loadLabelInnerHtml:function(){var t=this;this.labelEditable.forEach((function(e,n){var r=t.$refs.labelEdit.querySelector("span:nth-child(".concat(n+1,")"));r&&(r.innerText=e)}))},loadLabelIfChanged:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)||(t=[""]),t=t.map((function(t){return"string"==typeof t?t.trim():t})),this.labelEditable.join(this.$options.name)!==t.join(this.$options.name)&&(this.labelEditable=t.slice(0),e&&this.saveLabelChanges()),this.$nextTick(this.loadLabelInnerHtml)},saveLabelChanges:function(){this.$store.commit("diagramItem/processElementAndBroadcast",{id:this.id,label:JSON.stringify(this.labelEditable)}),s.EventBus.$emit("diagram-changed",{action:"label_update",elements:[this.id],connectors:[]})}},watch:{isLabelTextEditable:function(t,e){!t&&e&&this.$refs.labelEdit&&this.loadLabelIfChanged(Array.prototype.map.call(this.$refs.labelEdit.querySelectorAll("span.prevent-parent"),(function(t){return(t.innerText||"").trim()})),!0)}},mounted:function(){this.$watch("xElement.label",this.loadLabelIfChanged,{immediate:!0}),this.updateValueOnChange("isActive",this.xActiveElement),this.updateValueOnChange("isSelected",this.xSelectedItems.elements)}}},73672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"dropdown",inheritAttrs:!1,props:{items:{type:[Object,Array],required:!0},selectBy:{type:[String,Object],default:null},label:{type:String,default:""},selected:{type:[String,Number,Array],default:""},multiple:{type:[Boolean,Object],default:!1},html:{type:Boolean,default:!1},autoOpen:{type:Boolean,default:!0},selectedClass:{type:[String,Number,Array],default:"text-blue"},ulStyle:{type:[String,Number,Array,Object],default:null},alignRight:{type:Boolean,default:!1},detached:{type:Boolean,default:!1}},scrollable:null,ul:null,modal:null,timerId:null,data:function(){return{isOpen:!1,isRightAligned:!1,internalSelected:[],detachedStyle:null}},computed:a(a({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),{},{isDetached:function(){return this.detached&&!this.multiple&&this.normalizedItems.length<=15},maxScrollHeight:function(){return Math.ceil(.7*this.xWindowSize.height)},normalizedSelectBy:function(){var t=this.selectBy&&"object"===i(this.selectBy)?this.selectBy:{value:this.selectBy};return{key:t.key,value:t.value}},normalizedItems:function(){var t=this,e=[],n=["key","value"];if(Array.isArray(this.items))for(var r=function(r){var i={data:t.items[r]};n.forEach((function(e){i[e]=Slickplan.helpers.getValue(t.items[r],t.normalizedSelectBy[e]||e),"key"===e&&(i[e]=String(i[e]))})),e.push(i)},i=0,o=this.items.length;i<o;++i)r(i);else Object.keys(this.items).forEach((function(r){var i=t.items[r],o={data:i};n.forEach((function(e){o[e]=t.normalizedSelectBy[e]?i[t.normalizedSelectBy[e]]:"key"===e?r:i,"key"===e&&(o[e]=String(o[e]))})),e.push(o)}));return e},selectedValue:function(){var t=this.selected;if(Array.isArray(t)){var e=t.length,n="object"===i(this.multiple)?this.multiple:{};if(this.normalizedItems.length>1&&e===this.normalizedItems.length&&!1!==n.all)return n.all||"All";if(0===e&&!1!==n.none)return n.none||"None";if(1!==e||!1===n.one)return"(".concat(e,")");if(n.one)return n.one;t=this.selected[0]}var r=this.normalizedItems.find((function(e){return e.key===t}));return r?r.value:""}}),methods:{isSelected:function(t){return this.multiple?this.internalSelected.includes(t):this.selected===t},mouseEnterOpen:function(){this.autoOpen&&this.open()},mouseClickOpen:function(){this.autoOpen||this.open()},open:function(){if(!this.isOpen){clearTimeout(this.$options.timerId);var t=this.$el.querySelector("ul");if(t){t.style.display="block";var e=t.getBoundingClientRect();t.style.display="",this.isRightAligned=e&&e.left>0&&e.right>this.xWindowSize.width}this.internalSelected=void 0!==this.selected&&null!==this.selected?[].concat(this.selected):[],this.isOpen||this.$emit("open"),this.isOpen=!0}},close:function(t){var e=this;this.isOpen&&(clearTimeout(this.$options.timerId),this.$options.timerId=setTimeout((function(){e.$emit("close"),e.isOpen=!1,e.isRightAligned=!1}),"number"==typeof t?t:50))},select:function(t){var e=String(t.key);this.multiple?this.internalSelected.includes(e)?this.internalSelected=this.internalSelected.filter((function(t){return t!==e})):this.internalSelected.push(e):(this.$emit("select",e),this.close(1))},saveSelection:function(t){this.$emit("select",t||[]),this.close(1)},updateDetachedPosition:function(){var t=this.$options,e=t.ul,n=t.modal;if(e&&n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect();this.detachedStyle={width:"".concat(r.width,"px"),transform:"translate(".concat(r.x-i.x,"px, ").concat(r.y-i.y,"px)")}}}},watch:{isOpen:function(t,e){this.detachedStyle=null,this.isDetached&&(t&&!e?(this.$options.scrollable&&this.$options.scrollable.addEventListener("scroll",this.updateDetachedPosition),this.$nextTick(this.updateDetachedPosition)):!t&&e&&this.$options.scrollable&&this.$options.scrollable.removeEventListener("scroll",this.updateDetachedPosition))}},mounted:function(){this.isDetached&&(this.$options.scrollable=this.$el.closest(".modal-box, .ps-container"),this.$options.scrollable&&!this.$options.scrollable.classList.contains("ps-container")&&(this.$options.scrollable=null),this.$options.ul=this.$el.querySelector("ul._drop"),this.$options.modal=this.$el.closest(".modal-box"))}}},22276:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(62264),i=n.n(r),o=n(77336),a=n.n(o),s=n(14580);i().extend(a());const l={name:"dynamic-timestamp",timerId:null,props:{timestamp:{type:[String,Number],required:!0},timeCountdown:{type:Boolean,default:!1},interval:{type:[String,Number],default:10},allowDays:{type:Boolean,default:!1},allowMonths:{type:Boolean,default:!1},allowYears:{type:Boolean,default:!1},pastPostfix:{type:[String,null],default:null},futurePrefix:{type:[String,null],default:null}},data:function(){return{date:""}},methods:{start:function(){clearInterval(this.$options.timerId),this.update(),this.$options.timerId=setInterval(this.update,this.timeCountdown?1e3:1e3*this.interval)},update:function(){var t=i()().unix(),e="",n=this.timestamp<=t;if(this.timeCountdown)if(n)e="0:00";else{var r=Math.abs(t-this.timestamp),o="0";r>60&&(r-=60*(o=Math.floor(r/60))),e="".concat(o,":").concat("0".concat(r).slice(-2))}else{if(n&&t-this.timestamp<10&&!this.pastPostfix&&!this.futurePrefix)e="just now";else{var a=i().unix(this.timestamp),l=a.fromNow(),c=[];if(this.allowYears||c.push("year"),this.allowMonths||c.push("month"),this.allowDays||c.push("day"),c.length)e=new RegExp(c.join("|")).test(l)?a.format(s.constants.DATE_FORMAT_LONG):l;else e=l;n&&this.pastPostfix?e=e.replace("ago",this.pastPostfix):!n&&this.futurePrefix&&(e="".concat(this.futurePrefix," ").concat(e))}e=e.replace(/a (day|week|month|year)/,"1 $1")}this.date!==e&&(this.date=e,this.$emit("update",this.date))}},watch:{timestamp:function(t,e){t!==e&&this.start()}},mounted:function(){this.start()},beforeDestroy:function(){clearInterval(this.$options.timerId)}}},88520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(70992),o=n(23076),a=n(42e3),s=n(18088);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"filters-bar",components:{"field-slider":a.default,"buttons-view":s.default,"filters-reset":o.default},mixins:[i.mixinSitemapSectionsList],props:{type:{type:String,required:!0},buttons:{type:Array,default:null},users:{type:Array,default:null},sections:{type:Array,default:null},statuses:{type:Array,default:null}},computed:u(u(u({},(0,r.mapState)({xFilters:function(t){var e;return null==t||null===(e=t[this.type])||void 0===e?void 0:e.filters},xTeam:function(t){return t.team.team},xMockupsStatuses:function(t){return t.mockup.statuses}})),(0,r.mapGetters)({xDiagramWorkflow:"diagram/getWorkflowStatuses"})),{},{columns:{get:function(){return this.xFilters.columns},set:function(t){this.filterChange("columns",t)}},availableFilters:function(){var t,e=this,n={};return this.users&&this.users.length>1&&(n.user={label:"Uploaded by",filters:[{key:"all",value:"All"}].concat(this.xTeam.filter((function(t){return e.users.includes(t.id)})).map((function(t){return{key:t.id,value:t.name}})))}),this.sections&&this.sections.length>1&&(n.section={label:"View",filters:this.sectionsListWithAllDropdown.filter((function(t){var n=t.key;return"all"===n||e.sections.includes(n)}))}),this.statuses&&this.statuses.length&&("mockup"===this.type?(t={all:"All"},this.statuses.forEach((function(n){var r;t[n]=(null===(r=e.xMockupsStatuses[n])||void 0===r?void 0:r.label)||n}))):t=u({all:"All"},Slickplan.helpers.arrayToKeyValue(this.xDiagramWorkflow.filter((function(t){return e.statuses.includes(t.alias)})),"alias","name")),n.status={label:"Status",filters:t}),n.sort={label:"Sort by",filters:"mockup"===this.type?{"timestamp-desc":"Recent","timestamp-asc":"Oldest","name-asc":"Name A-Z","name-desc":"Name Z-A","order-asc":"Manual"}:{"updated_at_timestamp-desc":"Recent","updated_at_timestamp-asc":"Oldest","title-asc":"Name A-Z","title-desc":"Name Z-A"}},n}}),methods:{filterChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$store.commit("".concat(this.type,"/setFilters"),{key:t,value:e})},onViewChange:function(t){this.filterChange("view",t)},setSearchFieldValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];document.getElementById("field-filter-search").value=t,e&&this.filterChange("search",t)}}}},93460:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"filters-reset",props:{type:{type:String,required:!0},count:{type:Number,default:-1}},computed:a(a(a({},(0,r.mapState)({xContentFilters:function(t){return t.content.filters},xDiagramFilters:function(t){return t.diagram.filters},xContentLanguage:function(t){return t.content.currentLanguage}})),(0,r.mapGetters)({xActiveMockupFilters:"mockup/getFilters"})),{},{countFilters:function(){return this.count>=0?this.count:"content"===this.type?(this.xContentFilters.assignee.length?1:0)+(this.xContentFilters.status.length?1:0)+("all"!==this.xContentFilters.type?1:0):"diagram"===this.type?"all"!==this.xDiagramFilters.status?1:0:"mockup"===this.type?Object.keys(this.xActiveMockupFilters).filter((function(t){return"search"!==t})).length:0}}),methods:{resetFilters:function(){var t=this;"content"===this.type&&this.$store.commit("content/resetFilters",this.xContentLanguage),"diagram"===this.type&&this.$store.commit("diagram/resetFilters"),"mockup"===this.type&&Object.keys(this.xActiveMockupFilters).forEach((function(e){"search"!==e&&t.$store.commit("mockup/setFilters",{key:e,value:null})})),this.$emit("reset")}}}},77364:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"button-submit",inheritAttrs:!1,timerId:null,props:{isSubmitting:{type:Boolean,default:!1},isSubmitted:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},className:{type:[String,Array],default:"-primary"},id:{type:String,default:null},type:{type:String,default:"submit"}},data:function(){return{submitted:!1}},computed:{classNames:function(){return[].concat(this.className,this.isSubmitting?" is-loading":"",this.submitted?" is-saved":"")}},watch:{isSubmitted:function(t){var e=this;clearTimeout(this.$options.timerId),this.submitted=t,t&&(this.$options.timerId=setTimeout((function(){e.submitted=!1}),1500))}}}},34660:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"field-checkable",mixins:[n(12640).mixinCheckableField],props:{textOverflow:{type:Boolean,default:!1}}}},3828:(t,e,n)=>{"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.r(e),n.d(e,{default:()=>o});const o={name:"field-colorpicker",model:{prop:"modelValue",event:"input"},currentlyMoving:null,sizes:{grid:127,hue:127,opacity:153},props:{modelValue:{type:[String,null]},field:{type:Boolean,default:!1},opacity:{type:Boolean,default:!1},resettable:{type:[Boolean,String],default:!1}},data:function(){return{valueHex:"",valueOpacity:100,backgroundColor:"",originalValue:""}},computed:{value:function(){return this.valueHex+(this.opacity?"*".concat(this.valueOpacity):"")},canReset:function(){return this.resettable&&this.originalValue&&this.value!==this.originalValue},opacityBackground:function(){var t=(this.valueHex?Slickplan.helpers.hex2rgb(this.valueHex):[0,0,0]).join(",");return{background:"linear-gradient(to right, rgba(".concat(t,", 0), rgba(").concat(t,", 1) 100%)")}},valueHexModel:{get:function(){return this.valueHex},set:function(t){var e=t.split("*");e[0]="#".concat(e[0].replace(/[^a-f0-9]+/gi,"")),this.valueHex!==e[0]&&Slickplan.helpers.isHex(e[0])&&(this.valueHex=e[0].toLowerCase(),this.updateFromHex(this.valueHex),this.opacity&&e.length>1&&(this.valueOpacityModel=e[1]))}},valueOpacityModel:{get:function(){return"".concat(this.valueOpacity,"%")},set:function(t){t=parseInt("".concat(t).replace(/[^0-9]+/g,""),10),this.valueOpacity!==t&&t>0&&t<=100&&(this.valueOpacity=t,this.updateFromOpacity(this.valueOpacity))}}},methods:{onMouseDown:function(t,e){this.$options.currentlyMoving={target:t.target,sizes:t.target.getBoundingClientRect(),type:e},this.move(t),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseMove:function(t){this.move(t)},onMouseUp:function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.$options.currentlyMoving=null},onReset:function(){this.originalValue&&this.updateFromInput.apply(this,r(this.originalValue.split("*")))},move:function(t){if(this.$options.currentlyMoving){var e=this.$options.currentlyMoving,n=e.sizes,r=e.type,i=0,o=0;"grid"!==r&&"opacity"!==r||(i=Math.min(Math.max(Math.round(t.pageX-n.left),0),n.width)),"grid"!==r&&"hue"!==r||(o=Math.min(Math.max(Math.round(t.pageY-n.top),0),n.height)),this.$refs[r]&&(this.$refs[r].style.transform="translate(".concat(i,"px, ").concat(o,"px)")),this.updateFromControl()}else this.onMouseUp()},getCoordsPercentage:function(t){var e=t.getBoundingClientRect(),n=t.parentNode.getBoundingClientRect(),r=n.left,i=n.left+n.width-4,o=Math.min(i,Math.max(r,e.left)),a=n.top,s=n.top+n.height-4;return{x:(o-r)/(i-r),y:1-(Math.min(s,Math.max(a,e.top))-a)/(s-a)}},updateFromControl:function(){var t=this.getCoordsPercentage(this.$refs.grid),e=360*this.getCoordsPercentage(this.$refs.hue).y;if(this.valueHex=Slickplan.helpers.hsb2hex([e,100*t.x,100*t.y]),this.opacity&&this.$refs.opacity){var n=this.getCoordsPercentage(this.$refs.opacity);this.valueOpacity=Math.max(1,Math.round(100*n.x))}this.backgroundColor=Slickplan.helpers.hsb2hex([e,100,100])},updateFromInput:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;this.updateFromHex(t),this.updateFromOpacity(e)},updateFromHex:function(t){t!==this.valueHex&&(this.valueHex=t);var e=Slickplan.helpers.hex2hsb(this.valueHex);this.$refs.grid&&(this.$refs.grid.style.transform="translate(".concat(this.$options.sizes.grid*(e[1]/100),"px, ").concat(this.$options.sizes.grid*(1-e[2]/100),"px)")),this.$refs.hue&&(this.$refs.hue.style.transform="translate(0px, ".concat(this.$options.sizes.hue*(1-e[0]/360),"px)")),this.backgroundColor=Slickplan.helpers.hsb2hex([e[0],100,100])},updateFromOpacity:function(t){this.opacity&&((t=parseInt(t,10))>0&&t<=100&&this.valueOpacity!==t&&(this.valueOpacity=t),this.$refs.opacity&&(this.$refs.opacity.style.transform="translate(".concat(this.$options.sizes.opacity*(this.valueOpacity/100),"px, 0px)")))},update:function(t){var e=t.split("*");e.length>1?this.valueHex!==e[0]&&Slickplan.helpers.isHex(e[0])&&this.updateFromInput(e[0],e[1]):this.valueHex!==e[0]&&Slickplan.helpers.isHex(e[0])&&this.updateFromInput(e[0],this.valueOpacity)}},watch:{modelValue:function(t){this.update(t)}},mounted:function(){var t=this;this.modelValue&&this.$nextTick((function(){t.update(t.modelValue)})),this.resettable&&"string"==typeof this.resettable&&(this.originalValue=this.resettable.toLowerCase(),this.opacity&&this.originalValue.indexOf("*")<0&&(this.originalValue+="*".concat(this.valueOpacity))),this.$watch("value",(function(e,n){e!==n&&e!==t.modelValue&&t.$emit("input",e)}))}}},20040:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.r(e),n.d(e,{default:()=>i});const i={name:"field-input",mixins:[n(42456).formHelpers],inheritAttrs:!1,props:{label:{type:[String,Number],default:null},labelAppend:{type:[String,Number],default:null},labelClass:{type:String,default:null},buttonAppend:{type:[String,Number],default:null},value:{type:[String,Number],default:null},type:{type:String,default:"text",validator:function(t){return["email","number","url","text","textarea","password"].includes(t)}},fieldError:{type:[String,Number],default:null},spellcheck:{type:Boolean,default:!0},autocomplete:{type:[Boolean,String],default:!0},autofocus:{type:Boolean,default:!1},autoselect:{type:Boolean,default:!1},numeric:{type:Boolean,default:!1},wrapperClass:{type:String,default:null},fieldClass:{type:String,default:null},description:{type:String,default:null}},data:function(){return{id:null,fieldType:"text",isFocus:!1}},computed:{attrs:function(){var t={id:this.id,type:this.fieldType,value:this.value,class:this.fieldClass};return this.$attrs&&"object"===r(this.$attrs)&&Object.assign(t,this.$attrs),!1===this.spellcheck&&(t.spellcheck="false",t.autocorrect="off",t.autocapitalize="off"),(!1===this.autocomplete||"string"==typeof this.autocomplete&&this.autocomplete)&&(t.autocomplete=this.autocomplete||"off","off"===t.autocomplete&&(t["data-lpignore"]="true")),"textarea"===this.type&&(t.style?"object"===r(t.style)?t.style.resize="none":(t.style=t.style.split(";"),t.style.push("resize: none"),t.style=t.style.join(";")):t.style={resize:"none"}),"input"!==this.tag||t.maxlength||(t.maxlength="password"===this.type?48:255),t},tag:function(){return"textarea"===this.type?this.type:"input"},hasDefaultSlot:function(){return!!this.$slots.default},events:function(){var t=this;return{input:function(e){return t.emitValue("input",e)},blur:function(e){t.isFocus=!1,t.emitValue("blur",e)},change:function(e){return t.emitValue("change",e)},focus:function(e){t.autoselect&&null!=e&&e.target&&e.target.select(),t.isFocus=!0,t.emitValue("focus",e)}}},tagInnerHtml:function(){return"textarea"===this.tag?this.attrs.value:null}},methods:{emitValue:function(t,e){if("url"===this.type&&e.target.value&&"blur"===t){var n="".concat(e.target.value).trim();"http"!==n.toLowerCase().slice(0,4)&&((n=n.split("://")).length>1&&(n=n.slice(1).join("://")),e.target.value="https://".concat(n),this.$emit("input",e.target.value))}this.$emit(t,e.target.value)},changePasswordType:function(){"password"===this.type&&(this.fieldType="password"===this.fieldType?"text":"password",Slickplan.helpers.moveCursorToEnd(this.$el.querySelector(this.tag)))},onNumericAdd:function(t){var e=this.$el.querySelector(this.tag);if(e){var n=e.getAttribute("step")||1,r=e.getAttribute("min")||0,i=e.getAttribute("max")||99999999;this.$emit("input",Math.max(Math.min(Number(e.value)+n*t,i),r))}},onNumericIncrease:function(){return this.onNumericAdd(1)},onNumericDecrease:function(){return this.onNumericAdd(-1)}},watch:{value:function(t){var e=this.$el.querySelector(this.tag);e&&(e.value=t)}},mounted:function(){this.id=Slickplan.helpers.randomString(16),this.fieldType=this.type,this.autofocus&&Slickplan.helpers.moveCursorToEnd(this.$el.querySelector(this.tag))}}},5256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(12724),i=n.n(r),o=n(42456);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}const c={name:"field-select",components:{multiselect:i()},mixins:[o.formHelpers],inheritAttrs:!1,props:{label:{type:String,default:null},value:{type:[String,Number,Array],default:null},fieldClass:{type:String,default:null},fieldError:{type:String,default:null},multiple:{type:Boolean,default:!1},taggable:{type:[Boolean,Number],default:!1},options:{type:Array,default:function(){return[]}},optionValue:{type:String,default:"value"},optionLabel:{type:String,default:"label"}},data:function(){return{id:null,selected:null,optionsCount:0}},computed:{isMultiple:function(){return this.multiple||this.isTaggable},isTaggable:function(){return"boolean"==typeof this.taggable&&this.taggable||"number"==typeof this.taggable&&this.taggable>0},isSearchable:function(){return!0},hasOptGroup:function(){return Boolean(Slickplan.helpers.getValue([].concat(this.options).shift(),"options"))},maxSelected:function(){return this.isTaggable&&"number"==typeof this.taggable?this.taggable:null},flatOptions:function(){if(this.hasOptGroup){var t=[];return this.options.forEach((function(e){e&&e.options&&(t=t.concat(e.options))})),t}return[].concat(this.options)}},methods:{onDropdownOpen:function(){var t=this.$el.querySelectorAll(".multiselect__option.multiselect__option--group");t&&t.forEach((function(t){t.parentNode.classList.add("multiselect__element--group")}))},onSelect:function(t){this.$emit("input",t[this.optionValue])},loadSelected:function(t){var e=this;t=t||this.value;var n=Slickplan.helpers.castArray(t),r=Slickplan.helpers.castArray(this.flatOptions).filter((function(t){var r="object"===l(t)?t[e.optionValue]:t;return r&&n.includes(r)}));this.selected=this.isMultiple?r:r.shift()}},watch:{value:function(t){var e=this,n=Slickplan.helpers.castArray(this.selected).map((function(t){return"object"===l(t)?t[e.optionValue]:t}));this.isMultiple||(n=n.shift()),(Array.isArray(t)&&a(t).sort().join(",")!==a(n).sort().join(",")||!Array.isArray(t)&&(void 0===n||String(t)!==String(n)))&&this.loadSelected(t)},flatOptions:function(t){this.optionsCount=t.length}},mounted:function(){var t=this;this.id=Slickplan.helpers.randomString(16),this.optionsCount=this.flatOptions.length,this.loadSelected(),this.$nextTick((function(){t.loadSelected()}))}}},68083:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"field-radio-bar",inheritAttrs:!1,model:{prop:"model",event:"change"},props:{model:{type:[String,Number],default:null},name:{type:[String,Number],default:null},inline:{type:Boolean,default:!1},alt:{type:Boolean,default:!1},inputs:{type:Boolean,default:!0},radios:{type:Array,required:!0,validator:function(t){return t.every((function(t){return void 0!==t.label&&void 0!==t.value}))}}},data:function(){return{fieldName:null}},computed:{normalizedRadios:function(){return this.radios.map((function(t){return t.id||(t.id=Slickplan.helpers.randomString(16)),t}))},wrapperClass:function(){return[this.alt?"field-bar-new":"field-bar",this.inline?"-inline":"-count".concat(this.normalizedRadios.length)]}},methods:{onClick:function(t){t.disabled||this.$emit("change",t.value)}},mounted:function(){this.fieldName=this.name||Slickplan.helpers.randomString(16)}}},60024:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"field-slider",model:{prop:"modelValue",event:"input"},props:{modelValue:{default:void 0},steps:{type:Array,required:!0},width:{type:Number,default:100}},data:function(){return{isDragging:!1,handlerX:0,value:null}},computed:{boundaries:function(){var t=this,e=100/(this.steps.length-1),n=parseInt(this.width/this.steps.length,10);return this.steps.map((function(r,i){return{x:i+1===t.steps.length?100:(i*e).toFixed(2),from:i*n,to:(i+1)*n,value:r}}))},handlerStyle:function(){return{left:"".concat(this.handlerX,"%")}}},methods:{onMouseDown:function(t){this.isDragging=t.target.classList.contains("_handler"),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseMove:function(t){if(this.isDragging){var e=t.clientX-this.$el.getBoundingClientRect().x;this.scrollToClosest(Math.min(Math.max(e,0),this.width))}},onMouseUp:function(t){document.body.style.cursor=null,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.isDragging||(t.offsetX/this.width*100<this.handlerX?this.scrollToPrev():this.scrollToNext()),this.isDragging=!1,this.$options.mouseEventData=null},scrollToPrev:function(){var t=this,e=this.boundaries.findIndex((function(e){return e.value===t.modelValue}));e>0&&this.setCurrent(this.boundaries[e-1])},scrollToNext:function(){var t=this,e=this.boundaries.findIndex((function(e){return e.value===t.modelValue}));e+1<this.boundaries.length&&this.setCurrent(this.boundaries[e+1])},scrollToClosest:function(t){var e=this.boundaries.find((function(e){return e.from<=t&&e.to>=t}));e&&this.setCurrent(e)},setCurrent:function(t){var e=t.x,n=t.value;this.handlerX!==e&&(this.handlerX=e,this.$emit("input",n))}},mounted:function(){var t=this,e=this.boundaries.find((function(e){return e.value===t.modelValue}));this.handlerX=e?e.x:0}}},15648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"field-switch",mixins:[n(12640).mixinCheckableField],props:{label:{type:String,default:null},description:{type:String,default:null},large:{type:Boolean,default:!1}}}},46704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"field-textarea",model:{prop:"modelValue",event:"input"},lastEmitted:0,props:{modelValue:{type:[String,Number],default:""},autosize:{type:[Boolean,String],default:!1},autofocus:{type:Boolean,default:!1},minHeight:{type:Number,default:0},maxHeight:{type:Number,default:0}},data:function(){return{cssMinHeight:0,cssMaxHeight:0,lineHeight:1,paddingTop:0,paddingBottom:0,value:""}},computed:a(a({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details}})),{},{computedMinHeight:function(){return this.minHeight||this.cssMinHeight||0},computedMaxHeight:function(){return this.maxHeight||this.cssMaxHeight||0}}),methods:{onInput:function(){this.autosize&&this.autosizeUpdate(),this.$emit("input",this.value)},autosizeUpdate:function(){this.$el.style.height="auto";var t=this.$el.scrollHeight+(this.$el.offsetHeight-this.$el.clientHeight);t=Math.floor(t/this.lineHeight)*this.lineHeight,t+=this.paddingTop+this.paddingBottom,this.computedMinHeight>0&&(t=Math.max(this.computedMinHeight,t)),this.computedMaxHeight>0&&(t=Math.min(this.computedMaxHeight,t)),this.$el.style.height="".concat(t,"px"),this.$options.lastEmitted!==t&&(this.$options.lastEmitted=t,this.$emit("autosize",{height:t}))},loadComputedData:function(){var t=window.getComputedStyle(this.$el),e=t.minHeight,n=t.maxHeight,r=t.lineHeight,i=t.paddingTop,o=t.paddingBottom;this.cssMinHeight=e?Math.ceil(Number(e.replace("px",""))):0,this.cssMaxHeight=n?Math.ceil(Number(n.replace("px",""))):0,this.lineHeight=r?Math.ceil(Number(r.replace("px",""))):1,this.paddingTop=i?Math.ceil(Number(i.replace("px",""))):0,this.paddingBottom=o?Math.ceil(Number(o.replace("px",""))):0}},watch:{modelValue:function(t){t!==this.value&&(this.value=t,this.autosize&&this.$nextTick(this.autosizeUpdate))},minHeight:function(t,e){this.autosize&&t!==e&&this.$nextTick(this.autosizeUpdate)},maxHeight:function(t,e){this.autosize&&t!==e&&this.$nextTick(this.autosizeUpdate)}},mounted:function(){var t=this;this.value=this.modelValue,this.autosize&&(this.loadComputedData(),Object.assign(this.$el.style,{boxSizing:"border-box",transition:"none",resize:"none"}),this.$el.closest(".cell")&&this.$watch("xSitemapData",(function(e,n){var r,i,o,a;(null==e||null===(r=e.meta)||void 0===r||null===(r=r.cells_ui)||void 0===r?void 0:r.box_size)===(null==n||null===(i=n.meta)||void 0===i||null===(i=i.cells_ui)||void 0===i?void 0:i.box_size)&&(null==e||null===(o=e.meta)||void 0===o||null===(o=o.cells_ui)||void 0===o?void 0:o.font_size)===(null==n||null===(a=n.meta)||void 0===a||null===(a=a.cells_ui)||void 0===a?void 0:a.font_size)||t.$nextTick((function(){t.loadComputedData(),t.autosizeUpdate()}))}),{deep:!0})),this.$nextTick((function(){t.autosize&&t.autosizeUpdate(),t.autofocus&&t.$el.focus()}))}}},40932:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"field-turnstile",widgetId:null,timerId:null,props:{fieldError:{type:String,default:null}},methods:{onRender:function(){var t=this;clearTimeout(this.$options.timerId);var e=this.$el.querySelector("div");this.$options.widgetId=window.turnstile.render(e,{sitekey:Slickplan.constants.TURNSTILE_SITEKEY,theme:"light",size:"compact",callback:function(e){t.setToken(e),t.onRemove(),t.$options.timerId=setTimeout(t.onReset,295e3)},expiredCallback:this.onReset,errorCallback:this.onReset})},onReset:function(){this.setToken(),this.onRemove("reset")},onRemove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"remove";clearTimeout(this.$options.timerId);var e=this.$options.widgetId;e&&window.turnstile&&(window.turnstile[t](e),this.$options.widgetId=null)},setToken:function(t){this.$emit("input",t||null)}},beforeMount:function(){if(!document.head.querySelector("script#js-turnstile")&&!window.turnstile&&Slickplan.constants.TURNSTILE_SITEKEY){var t=document.createElement("script");t.id="js-turnstile",t.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onloadTurnstileCallback",t.async=!0,t.defer=!0,document.head.appendChild(t)}},mounted:function(){var t=this;window.turnstile?this.onRender():window.onloadTurnstileCallback=function(){delete window.onloadTurnstileCallback,t.onRender()}},beforeDestroy:function(){clearTimeout(this.$options.timerId)}}},96888:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(20564),i=n(5712);const o={name:"field-variables",element:null,savedRange:null,model:{prop:"modelValue",event:"input"},props:{modelValue:{type:[String,Number],default:""},variables:{type:Object,required:!0},label:{type:[String,Number],default:null}},data:function(){return{value:""}},computed:{hasDefaultSlot:function(){return!!this.$slots.default},valueArray:function(){var t=this,e=-1,n=[];return this.value.split(" ").map((function(t){return"".concat(t).trim()})).filter((function(t){return t.length})).forEach((function(r){t.variables[r]?(n.push({text:t.variables[r],value:r}),e=n.length):(e<0&&(e+=1),n[e]&&""!==n[e].text?n[e].text+=" ".concat(r):n[e]={text:r})})),n},valueHtml:function(){if(!this.valueArray.length)return"";var t=this.valueArray.map((function(t,e){return t&&t.value?'<span class="multiselect__tag" data-index="'.concat(e,'" contenteditable="false" readonly>').concat(Slickplan.helpers.escapeHtml(t.text),'<i class="multiselect__tag-icon del"></i>')+"</span>":Slickplan.helpers.escapeHtml(t.text)})).join("&nbsp;");return this.getValueFromVar(this.valueArray[0])&&(t="&nbsp;".concat(t)),this.getValueFromVar(this.valueArray[this.valueArray.length-1])&&(t+="&nbsp;"),t}},methods:{getValue:function(){var t=this,e=[];return this.$options.element.childNodes.forEach((function(n){if(n&&n.dataset&&n.dataset.index){var r=t.getValueFromVar(t.valueArray[n.dataset.index]);r&&e.push(r)}else{var i="".concat(n.tagName?n.innerText:n.textContent).trim();i.length&&e.push(i)}})),e.join(" ")},getValueFromVar:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t&&void 0!==t.value?t.value:e},onDropdown:function(){var t=this;this.onFocus(),this.$popover.show({component:i.default,props:{items:Object.keys(this.variables).map((function(e){return{label:t.variables[e],value:e}}))},position:{of:this.$el.querySelector("._handler")},events:{overlay:function(){return t.$popover.hide()},submit:function(e){t.$popover.hide(),t.onChange(t.value+(t.value?" ":"")+e)}}})},onChange:function(t){this.value="string"==typeof t?t:this.getValue(),this.$emit("input",this.value)},onKeyDown:function(t){t.target.blur()},onPaste:function(t){var e;t.preventDefault(),t.clipboardData&&t.clipboardData.getData?e=t.clipboardData.getData("text/plain"):window.clipboardData&&window.clipboardData.getData&&(e=window.clipboardData.getData("Text")),("string"==typeof e&&""!==e.trim()||"number"==typeof e)&&(0,r.default)(this.$options.element,"".concat(e).trim())},onFocus:function(){this.$emit("focus",this.value)},onBlur:function(){this.onChange()},onClick:function(t){var e=this;if(t.target&&t.target.classList.contains("del")){var n=t.target.parentNode.dataset.index,r=this.valueArray.map((function(t){return e.getValueFromVar(t)}));r[n]="",this.onChange(r.join(" ").replace(/[\s]{2,}/g," "))}},onInput:function(){},saveCursor:function(){},restoreCursor:function(){}},watch:{modelValue:function(t){t!==this.value&&(this.value=t)}},mounted:function(){this.value=this.modelValue,this.$options.element=this.$el.querySelector("._field")}}},94608:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});n(63160),n(5507);var r=n(63596),i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"field-wysiwyg",components:{"tinymce-editor":r.default},inheritAttrs:!1,timerId:null,props:{label:{type:String,default:null},fieldError:{type:String,default:null},value:{type:[String,Number],default:""},toolbar:{type:String,default:"simple"},height:{type:Number,default:0},maxHeight:{type:Number,default:0},placeholder:{type:[String,Number],default:""}},data:function(){return{id:null,content:"",initialValueUpdate:!1,isFocus:!1,isSecondToolbar:!1}},computed:{valueAsString:function(){return"string"==typeof this.value?this.value:Slickplan.helpers.isBlank(this.value)?"":"".concat(this.value)},hasDefaultSlot:function(){return!!this.$slots.default},editorInit:function(){var t,e=this,n=null!==(t=this.placeholder)&&void 0!==t?t:"",r=["slickplanlink","lists"];n&&r.push("placeholder");var o=s(s({},i.tinymceProps),{},{id:this.id,plugins:r.join(" "),remove_linebreaks:!1,relative_urls:!1,convert_urls:!1,link_target_list:!1,link_title:!1,skin:!1,skin_url:"",content_css:!1,content_style:Slickplan.constants.TINYMCE_CSS,height:this.height||134,placeholder:n,font_family_formats:"Default=proxima-nova,Proxima Nova,ProvimaNova,Helvetica,Arial,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;"});switch(this.toolbar){case"advanced":o.statusbar=!0,o.toolbar1="styles bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent outdent | link unlink | slickplantoggletoolbar",o.toolbar2="fontfamily fontsize forecolor backcolor | subscript superscript | blockquote hr | table | image | visualblocks removeformat | pastetext code fullscreen",o.plugins+=" code advlist visualblocks table image fullscreen",o.font_size_formats="9px 10px 11px 12px 13px 14px 16px 18px 24px 36px",o.setup=function(t){t.ui.registry.addButton("slickplantoggletoolbar",{tooltip:"Show/Hide Advanced Toolbar",icon:"image-options",onAction:function(){e.isSecondToolbar=!e.isSecondToolbar},onSetup:function(){e.isSecondToolbar=!1}})},o.init_instance_callback=function(t){t.on("FullscreenStateChanged",(function(t){t.target.container.closest(".ui-content").classList.toggle("-fullscreen",t.state)}))};break;case"simple":o.toolbar="bold italic underline bullist numlist indent outdent link unlink";break;case"simplest":o.toolbar="bold italic underline bullist numlist link unlink";break;default:o.toolbar=this.toolbar}return this.maxHeight>0&&(o.height=0,o.min_height=this.height||124,o.max_height=this.maxHeight,o.autoresize_overflow_padding=16,o.autoresize_bottom_margin=16,o.plugins+=" autoresize"),o},editorWrapperClasses:function(){return{"editor-wrapper":!0,"-autosize":this.maxHeight>0,focused:this.isFocus,"-toolbar-collapsed":!this.isSecondToolbar}}},methods:{onFocus:function(){this.isFocus=!0,this.$emit("focus")},onBlur:function(){this.isFocus=!1,this.$emit("blur")},onChangeDebounced:function(){clearTimeout(this.$options.timerId),this.$options.timerId=setTimeout(this.onChange,10)},onChange:function(){this.updateContent(window.tinymce.get(this.id))&&(this.$emit("input",this.content),this.$emit("change",this.content))},updateContent:function(t){if(t){var e=t.getContent().replace(/font-family[ :]+proxima-nova[ ,]+[a-z-,' ]+;/gi,"");if(this.content!==e)return this.content=e,!0}return!1}},watch:{content:function(t){this.initialValueUpdate||this.$emit("input",t),this.initialValueUpdate=!1},value:function(t,e){t!==e&&this.content!==t&&(this.initialValueUpdate=!0,this.content="".concat(t))}},created:function(){this.content=this.valueAsString},beforeMount:function(){this.id=Slickplan.helpers.randomString(16)},beforeDestroy:function(){clearTimeout(this.$options.timerId)}}},52292:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={name:"has-tooltip",classVisible:"-visible",props:{tag:{type:String,default:"div"},tooltip:{type:String,default:null},html:{type:Boolean,default:!1},position:{type:String,default:"above"},delay:{type:Number,default:500},leaveDelay:{type:Number,default:100},offset:{type:Number,default:10},relativeTo:{type:String,default:null}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),methods:{onMouseEnter:function(){var t=this;Slickplan.globalVars.tooltip&&clearTimeout(Slickplan.globalVars.tooltip);var e=this.$el;if(this.relativeTo&&(e=this.$el.querySelector(this.relativeTo)),e){var n=this.getTooltipData(e.getBoundingClientRect()),r=this.getTooltipElement(!0),i=this.getTooltipText();if(!i)return void this.setTooltipHidden();this.isTooltipHtml()?r.innerHTML=i:r.innerText=i,r.classList.contains(this.$options.classVisible)||this.delay<=0?this.setTooltipVisible(r,n):(Object.assign(r.style,{maxWidth:n.maxWidth,transform:"translate(".concat(n.x,", ").concat(n.y,")")}),Slickplan.globalVars.tooltip=setTimeout((function(){t.setTooltipVisible(r,n)}),this.delay))}},onMouseLeave:function(){this.setTooltipHidden(this.leaveDelay)},onMouseClick:function(){this.$emit("click"),this.setTooltipHidden()},repositionOutboundTooltip:function(t,e){var n=t.getBoundingClientRect(),r=n.x,i=n.y,o=n.width,a=n.height,s=e.x,l=e.y;r<3?s="".concat(3,"px"):r+o>this.xWindowSize.width-3&&(s="".concat(Math.ceil(this.xWindowSize.width-o-3),"px")),i<3?l="".concat(3,"px"):i+a>this.xWindowSize.height-3&&(l="".concat(Math.ceil(this.xWindowSize.height-a-3),"px")),t.style.transform="translate(".concat(s,", ").concat(l,")")},setTooltipVisible:function(t,e){Object.assign(t.style,{maxWidth:e.maxWidth,transform:"translate(".concat(e.x,", ").concat(e.y,")")}),this.setTooltipClasses(t,e,!0),this.repositionOutboundTooltip(t,e)},setTooltipHidden:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Slickplan.globalVars.tooltip&&clearTimeout(Slickplan.globalVars.tooltip);var n=this.getTooltipElement();n&&n.classList.contains(this.$options.classVisible)&&(e>0?Slickplan.globalVars.tooltip=setTimeout((function(){return t.setTooltipElHidden(n)}),e):this.setTooltipElHidden(n))},setTooltipElHidden:function(t){t.classList.remove(this.$options.classVisible)},setTooltipClasses:function(t,e,n){var r=["-".concat(e.position)];n&&r.push(this.$options.classVisible),t.className=r.join(" ")},getTooltipElement:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=document.getElementById("tooltip");return!e&&t&&((e=document.createElement("div")).id="tooltip",document.body.appendChild(e)),e},getTooltipData:function(t){var e=t.top,n=t.left,r=t.width,i=t.height,o=0,a=0,s="";this.offset>0?s=" - ".concat(this.offset,"px"):this.offset<0&&(s=" + ".concat(Math.abs(this.offset),"px"));var l=this.position;switch(l){case"up":case"top":case"above":o=Math.round(n+r/2),a=Math.round(e),o="calc(".concat(o,"px - 50%)"),a="calc(".concat(a,"px - 100%").concat(s,")"),l="above";break;case"down":case"bottom":case"below":o=Math.round(n+r/2),a=Math.round(e+i),o="calc(".concat(o,"px - 50%)"),a="".concat(a+this.offset,"px"),l="below";break;case"left":o=Math.round(n),a=Math.round(e+i/2),o="calc(".concat(o,"px - 100%").concat(s,")"),a="calc(".concat(a,"px - 50%)");break;case"right":o=Math.round(n+r),a=Math.round(e+i/2),o="".concat(o+this.offset,"px"),a="calc(".concat(a,"px - 50%)")}return{x:o,y:a,position:l,maxWidth:"".concat(400,"px")}},getTooltipText:function(){return this.$slots.tooltip?this.$refs.tooltip.innerHTML:this.tooltip},isTooltipHtml:function(){return this.html||this.$slots.tooltip&&this.$refs.tooltip.innerHTML}},beforeDestroy:function(){this.setTooltipHidden()}}},18191:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(14580);const i={name:"icon-loading",props:{status:{type:[String,Boolean],default:null},savingClassName:{type:[String,Object,Array],default:"text-gray-darker"},successClassName:{type:[String,Object,Array],default:"text-green-lighter"},errorClassName:{type:[String,Object,Array],default:"text-red-lighter"}},computed:{statusId:function(){return!0===this.status?r.constants.SAVING_STATUS_LOADING:this.status},isLoading:function(){return this.statusId===r.constants.SAVING_STATUS_LOADING},isSuccess:function(){return this.statusId===r.constants.SAVING_STATUS_SUCCESS},isError:function(){return this.statusId===r.constants.SAVING_STATUS_ERROR},hasSlot:function(){return!!this.$slots.default}}}},95580:(t,e,n)=>{"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.r(e),n.d(e,{default:()=>o});const o={name:"table-listing-head",props:{tag:{type:String,default:"li"},columns:{type:Array,required:!0},sort:{type:Array,default:function(){return[]}},resettable:{type:Array,default:function(){return[]}}},data:function(){return{lastClicked:null}},computed:{headers:function(){var t=this;return this.columns.slice(0).map((function(e){return{id:e.id,label:e.label,className:[e.grid?"g-col-".concat(e.grid):null,e.className],style:e.style,sort:t.hasSorting&&!1!==e.sort}}))},hasSorting:function(){return this.sort&&2===this.sort.length},canReset:function(){return this.resettable&&2===this.resettable.length}},methods:{onClick:function(t){if(t.sort){var e=r(this.sort,2),n=e[0],i=e[1];if(n===t.id)if(this.canReset&&this.lastClicked===t.id){var o=r(this.resettable,2);n=o[0],i=o[1],this.lastClicked=null}else i="asc"===i?"desc":"asc",this.canReset&&(this.lastClicked=t.id);else n=t.id,this.lastClicked=null;this.$emit("sort",[n,i])}}}}},85147:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(27672),o=n(12988),a=n(65056);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"table-listing",components:{"buttons-list":i.default,"listing-head":o.default},mixins:[a.mixinProjectStatus],props:{grid:{type:Array,required:!0},head:{type:Array,default:function(){return[]}},rows:{type:Array,default:function(){return[]}},sort:{type:Array,default:function(){return[]}},resettable:{type:Array,default:function(){return[]}},autoHideButtons:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0}},computed:d(d({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected}})),{},{isProjectView:function(){return this.currentProjectDetails&&this.currentProjectDetails.alias},columnsCount:function(){return Math.max.apply(Math,l(this.rows.map((function(t){return t.columns.length}))))},gridAttr:function(){for(var t=[],e=0;e<this.columnsCount;++e){var n="g-col-auto",r="";this.grid[e]&&("string"==typeof this.grid[e]&&(this.grid[e].indexOf("%")>=0||this.grid[e].indexOf("px")>=0||this.grid[e].indexOf("calc(")>=0)?r={width:this.grid[e]}:n="g-col-".concat(this.grid[e]||"auto")),t.push({className:n,style:r})}return t},headers:function(){var t=this;return this.head.map((function(e,n){return{id:e.id,label:e.label,className:t.gridAttr[n].className,style:t.gridAttr[n].style}}))},items:function(){var t=this;return this.rows.map((function(e){return{id:e.id||e.alias,meta:e.meta||{},columns:e.columns.map((function(n,r){return{id:n.id||[e.id||e.alias,r].join("-"),label:n.label,buttons:"function"==typeof n.buttons?n.buttons(e.id||e.alias):n.buttons,component:n.component||null,props:n.component&&n.props||{},shadow:void 0===n.shadow||n.shadow,className:[t.gridAttr[r].className,{"text-right":!!n.buttons},n.className||""],style:t.gridAttr[r].style,onClick:n.onClick||null}}))}}))},canCollapseButtonsList:function(){return this.autoHideButtons||this.columnsCount>4}}),methods:{onClick:function(t,e){"function"!=typeof e||this.xBarSelectedIds.length?this.isProjectView&&!this.isProjectEditable||this.$store.commit("actionBar/selectToggle",t):e(t)}}}},54908:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(86180),o=n(30160),a=n(95164);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"page-listing-wrapper",components:{"component-loading":i.default,"link-help":o.default,"table-listing":a.default},inject:["onLoad","itemsRows"],props:{items:{type:Array,default:function(){return[]}},buttons:{type:Array,default:function(){return[]}},buttonsLeft:{type:Array,default:function(){return[]}},description:{type:Object,default:function(){return{}}},descriptionList:{type:[Object,Boolean],default:!0},grid:{type:Array,default:function(){return[]}},head:{type:Array,default:function(){return[]}},defaultSort:{type:Array,default:function(){return["title","asc"]}},actionBarButtons:{type:Array,default:function(){return[]}},actionBarLinks:{type:Array,default:function(){return[]}},selectAll:{type:[Function,String],default:null},selectable:{type:Boolean,default:!0},ignoreLoading:{type:Boolean,default:!1},emptyContainerStyle:{type:String,default:""}},data:function(){return{sort:[null,"asc"]}},computed:c(c(c({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected},xBarIsVisible:function(t){return t.actionBar.isVisible}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{currentDescription:function(){return!this.items.length||this.items.length&&!0===this.descriptionList?this.description:this.items.length&&"object"===s(this.descriptionList)?this.descriptionList:{}},descriptionText:function(){return this.currentDescription&&this.currentDescription.text?[].concat(this.currentDescription.text):[]},sortedItems:function(){return Slickplan.helpers.sortSmart(this.items,this.sort[0],this.sort[1],this.defaultSort[0]||"title")},sortedItemsRows:function(){return this.itemsRows(this.sortedItems)}}),watch:{actionBarButtons:function(t){this.xBarIsVisible&&this.items.length&&this.$store.commit("actionBar/update",{buttons:t})},actionBarLinks:function(t){this.xBarIsVisible&&this.items.length&&this.$store.commit("actionBar/update",{links:t})},xBarSelectedIds:function(t,e){var n=this;this.items.length&&(t.length&&!e.length?this.$store.commit("actionBar/set",{isVisible:!0,buttons:this.actionBarButtons,links:this.actionBarLinks,selectAll:function(){return"function"==typeof n.selectAll?n.selectAll(n.items):n.items.map((function(t){return t&&"object"===s(t)?"string"==typeof n.selectAll?t[n.selectAll]:t.alias||t.id:t}))}}):!t.length&&e.length&&this.$store.commit("actionBar/reset"))}},mounted:function(){var t=this;this.sort=this.defaultSort,this.$store.dispatch("core/setLoading",!0),Slickplan.helpers.requestSingle((function(){var e=t.onLoad();if(e)return e.promise.finally((function(){t.$store.dispatch("core/setLoading",!1)})),e;t.$store.dispatch("core/setLoading",!1)}),this.$options.name)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name),this.$store.commit("actionBar/reset")}}},64572:(t,e,n)=>{"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.r(e),n.d(e,{default:()=>o});const o={name:"pagination",props:{page:{type:Number,required:!0,validator:function(t){return t>0}},itemsPerPage:{type:Number,required:!0,validator:function(t){return t>0}},totalItems:{type:Number,required:!0,validator:function(t){return t>=0}},maxVisiblePages:{type:Number,default:5,validator:function(t){return t>0}}},computed:{mathPage:function(){return this.page-1},start:function(){return this.mathPage*this.itemsPerPage},end:function(){var t=this.start+this.itemsPerPage;return this.totalItems<t?this.totalItems:t},totalPages:function(){return 0===this.itemsPerPage?0:Math.ceil(this.totalItems/this.itemsPerPage)},pages:function(){var t=this.filteredPages,e=t?[t[0]-1==1?1:"..."].concat(r(t),[t[t.length-1]+1===this.totalPages-2?this.totalPages-2:"..."]):r(Array(this.totalPages-2).keys()).map((function(t){return t+1}));return[this.mathPage-1,0].concat(r(e),[this.totalPages-1,this.mathPage+1])},filteredPages:function(){var t=this,e=this.maxVisiblePages/2,n=r(Array(this.totalPages).keys()).slice(2,-2);if(n.length>this.maxVisiblePages){var i=this.mathPage-n[0],o=this.mathPage-n[n.length-1];return i<e?n.slice(0,this.maxVisiblePages):o>=-e?n.slice(-this.maxVisiblePages):n.filter((function(n){var r=t.mathPage-n;return r<0?Math.abs(r)<=e:r<e}))}return null},buttons:function(){var t=this;return this.pages.map((function(e,n){return{page:e,className:t.className(e,n),icon:t.icon(e,n),number:"number"==typeof e?e+1:null}}))}},methods:{onPageClick:function(t,e){this.disabled(t.page,e)||"..."!==t.page&&this.$emit("change",t.page+1)},pageChange:function(t){t>=this.totalPages&&0!==t&&0!==this.totalPages||this.rangeChange()},rangeChange:function(){this.mathPage>=this.totalPages&&0!==this.totalPages&&this.$emit("change",this.totalPages)},icon:function(t,e){return 0===e?"left":e===this.pages.length-1?"right":"..."===t?"menu-dots":void 0},disabled:function(t,e){return 0===e&&0===this.mathPage||e===this.pages.length-1&&this.mathPage===this.totalPages-1||"..."===t},className:function(t,e){var n=[];return 0===e||e===this.pages.length-1?(n.push(0===e?"prev":"next"),this.disabled(t,e)&&n.push("inactive")):"..."===t?n.push("more"):(1===e&&n.push("first"),e===this.pages.length-2&&n.push("last"),t===this.mathPage&&n.push("active")),n}},watch:{page:{handler:function(){this.pageChange()},immediate:!0},itemsPerPage:function(){this.rangeChange()},totalItems:function(){this.rangeChange()}}}},1004:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(46936);const i={name:"panel-blocks-wrapper",mixins:[r.mixinPanelComponents,r.mixinPanelScrollbar],props:{title:{type:String,default:null},close:{type:Boolean,default:!0}},methods:{onClose:function(){this.$listeners.close?this.$emit("close"):this.panelCloseComponents()}}}},48328:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(71995),o=n(48448),a=n(81936),s=n(46936),l=n(70992),c=n(65056),u=n(22164);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"panel-content-revisions",components:{"tab-loading":o.default,"notification-item":a.default},mixins:[s.mixinPanelScrollbar,s.mixinPanelOverlay,l.mixinContentStatus,c.mixinProjectStatus,l.mixinContentPage],scrollableNavbarHeight:0,data:function(){return{revisionsLoaded:null,selected:0,isRestoring:!1}},computed:p(p({},(0,r.mapState)({xTeam:function(t){return t.team.team},xAccountData:function(t){return t.user.user},xContentPageId:function(t){return t.content.builderPageId},xContentPageData:function(t){return t.content.builderPageData},xContentLanguage:function(t){return t.content.currentLanguage}})),{},{loadingError:function(){return{type:"error",text:this.$trans("messages.error_loading",{what:"color themes"})}}}),methods:{getUser:function(t){return this.xTeam.find((function(e){return e.id===t}))},loadRevisions:function(){var t=this;this.$store.dispatch("core/setLoading",!0),this.$store.commit("content/resetCurrentBuilderPageData",{editBlocked:"revision"}),this.revisionsLoaded=null,this.selected=0,i.default.sitemapCell.getContentRevisionsList(this.xContentPageId,this.xContentLanguage).promise.then((function(e){var n=[],r=0,i=0;e.forEach((function(t){(r!==t.user||t.date_timestamp+900<i)&&(r=t.user,i=t.date_timestamp,n.push(t))})),n&&n.length&&n[0]?(t.revisionsLoaded=n,t.selected=n[0].id,t.loadContents(n[0].id,n.length>1&&n[1]?n[1].id:null)):(u.EventBus.$emit("panel-close"),t.$notify({type:"warning",text:"No revisions to load"}),t.$store.dispatch("core/setLoading",!1))})).catch((function(){t.revisionsLoaded=!1}))},loadContents:function(t,e){var n=this;this.$store.dispatch("core/setLoading",!0),Slickplan.helpers.requestSingle((function(){var r=i.default.sitemapCell.getContentRevisionsCompare(n.xContentPageId,n.xContentLanguage,t,e);return r.promise.then((function(t){var e=t.current,r=t.old,i=e.map((function(t){return t.id})),o=[],a=[];if(r){var s=null;r.forEach((function(t,e){i.includes(t.id)||(r[e].revisionDeleted=!0,o.push({item:t,after:s})),s=t.id}));var l=r.map((function(t){return t.id})),c=Slickplan.helpers.arrayIntersection(i,l),u=Slickplan.helpers.arrayIntersection(l,i);c.forEach((function(t,e){u.findIndex((function(e){return e===t}))!==e&&a.push(t)}))}o.length&&o.forEach((function(t){if(t.after){var n=e.findIndex((function(e){return e.id===t.after}));n>=0?e=Slickplan.helpers.arrayInsert(e,n+1,t.item):e.push(t.item)}else e=[].concat(t.item,e)})),a.length&&a.forEach((function(t){var n=e.findIndex((function(e){return e.id===t}));n>=0&&(e[n].revisionReordered=!0)})),n.$store.commit("content/setBuilderBlocks",{blocks:e,revision:r})})).catch(_noop).finally((function(){n.$store.dispatch("core/setLoading",!1),n.$nextTick((function(){document.getElementById("project-scrollable").scrollTop=0}))})),r}),this.$options.name)},onRevisionRestore:function(t){var e=this,n=t.id;this.isRestoring=n,Slickplan.helpers.requestSingle((function(){var t=i.default.sitemapCell.restoreContentRevision(e.xContentPageId,e.xContentLanguage,n);return t.promise.then((function(){Slickplan.websocket.pushContent(e.xContentPageId,e.xContentLanguage,{key:"revision",data:n}),u.EventBus.$emit("panel-close")})).catch(_noop).finally((function(){e.isRestoring=!1,e.$store.dispatch("core/setLoading",!1),e.$nextTick((function(){document.getElementById("project-scrollable").scrollTop=0}))})),t}),this.$options.name)},onRevisionClick:function(t){if(this.selected!==t.id&&!this.isRestoring&&(this.selected=t.id,Array.isArray(this.revisionsLoaded))){var e=this.revisionsLoaded.findIndex((function(e){return e.id===t.id}));e>=0&&this.loadContents(t.id,e+1<this.revisionsLoaded.length?this.revisionsLoaded[e+1].id:null)}}},mounted:function(){document.body.classList.add("has-revisions"),this.loadRevisions()},beforeDestroy:function(){this.$store.dispatch("core/setLoading",!0),document.body.classList.remove("has-revisions"),Slickplan.helpers.requestCancel(this.$options.name)}}},91952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(71995),o=n(68404),a=n(97152),s=n(22164),l=n(46936),c=n(42456),u=n(65056),d=n(70992);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"panel-export-form",components:{"link-help":n(30160).default},mixins:[l.mixinPanelScrollbar,c.formHelpers,c.stickyButtonsHelpers,u.mixinProjectStatus,d.mixinContentLanguages],props:{type:{type:String,required:!0,validator:function(t){return["csv","docx","html","image","pdf","text","website","slickplan"].includes(t)}}},data:function(){return{formData:{}}},computed:m(m(m({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xExportProjectType:function(t){return t.project.exportProjectType}})),(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses",xExportFormData:"project/getExportFormData"})),{},{canChangePaperFormat:function(){return"image"===this.type||"pdf"===this.type},canCustomizeHeader:function(){return this.canChangePaperFormat},isSitemapExport:function(){return"sitemap"===this.xExportProjectType},hasProjectLogo:function(){var t;return null===(t=this.currentProjectDetails)||void 0===t?void 0:t.logo},hasAdditionalOptions:function(){var t=this;return"slickplan"!==this.type&&["include_diagrams","include_archetypes","include_links","include_notes","include_comments","include_seo_metadata","include_content_labels","include_content_status","monochromatic","include_css","page_numbering","embed_font","exclude_collapsed_pages"].some((function(e){return void 0!==t.formData[e]}))},paperSizes:function(){return[{key:"GLETTER",value:"Government Letter (8 × 10.5 in)"},{key:"LETTER",value:"Letter (8.5 × 11 in)"},{key:"LEGAL",value:"Legal (8.5 × 14 in)"},{key:"TABLOID",value:"Tabloid/Ledger (11 × 17 in)"},{key:"A4",value:"A4 (210 × 297 mm)"},{key:"A3",value:"A3 (297 × 420 mm)"},{key:"AUTO",value:"Auto-size"}]},csvColumns:function(){return{page_type:"Page type",link:"Page link",notes:"Page note",seo:"SEO metadata",content_status:"Content status"}}}),methods:m(m({},(0,r.mapActions)({xSetPanelPreviewComponent:"panel/setPreviewComponent"})),{},{updatePreview:function(){this.xSetPanelPreviewComponent({component:o.default,props:{formData:this.formData}})},onCancel:function(){s.EventBus.$emit("panel-close")},onSubmit:function(){var t=this;if(!this.isSitemapExport||"website"!==this.type){this.formHelper.isSubmitting=!0;var e="image"===this.type?this.formData.image_type:this.type,n=this.isSitemapExport?i.default.sitemap.export(e,this.formData):i.default.diagram.export(e,this.formData);return n.promise.then(Slickplan.helpers.downloadFromResponse).finally((function(){t.formHelper.isSubmitting=!1})),n}var r="Download link will be sent to your email: ".concat(this.xAccountData.email,". This can take a few minutes.");this.$modal.show(a.default,{text:r,buttonLabel:"Send download link",form:{action:function(){var e=i.default.sitemap.export(t.type,t.formData);return e.promise.then((function(){t.$notify({text:r})})).catch(Slickplan.catchAll),e}}},{name:"confirm",title:"Export Complete Website"})}}),mounted:function(){var t=this;this.$store.commit("project/setCurrentExportForm",this.type),this.formData=Slickplan.helpers.objectCloneDeep(this.xExportFormData),this.updatePreview(),this.$watch("formData.paper",(function(e,n){n&&"AUTO"===e&&e!==n&&(t.formData.landscape=!1)})),this.$watch("formData",(function(e){t.$store.commit("project/setExportFormData",e),t.updatePreview()}),{deep:!0})}}},12180:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"panel-export-previews",previewSize:900,props:{formData:Object},computed:a(a(a({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details},xExportCurrentForm:function(t){return t.project.exportCurrentForm},xWindowSize:function(t){return t.core.windowSize},xPanelCurrentTab:function(t){return t.panel.currentTab},xPanelPreviewComponent:function(t){return t.panel.previewComponent},xExportProjectType:function(t){return t.project.exportProjectType}})),(0,r.mapGetters)({xPanelWidth:"panel/getWidth",xCurrentDiagramData:"diagram/getCurrentData"})),{},{isPreviewVisible:function(){return Boolean(this.xPanelPreviewComponent.component)},forceLandscape:function(){return["html","csv","website"].includes(this.xExportCurrentForm)},canLandscape:function(){return void 0!==this.formData.landscape},isLandscape:function(){return this.forceLandscape||this.canLandscape&&!0===this.formData.landscape},isDiagram:function(){return"diagram"===this.xExportProjectType},projectType:function(){return this.isDiagram?"diagram":"sitemap"},projectData:function(){return this.isDiagram?this.xCurrentDiagramData:this.xSitemapData},scale:function(){return Math.max(.5,Math.min(1,this.xWindowSize.height/this.$options.previewSize,this.xWindowSize.width-this.xPanelWidth/this.$options.previewSize))},wrapperStyles:function(){return{backgroundImage:"url(".concat(this.image,")"),transform:"translate(-50%, calc(-50% - 10px)) scale(".concat(this.scale,")")}},image:function(){var t=this.xExportCurrentForm;return"image"===t&&"eps"===this.formData.image_type&&(t="eps"),"slickplan"===t&&(t="xml"),this.canLandscape&&(t+=this.isLandscape?"-landscape":"-portrait"),"/images/export/".concat(t,".svg")},info:function(){var t=73,e=186;return["html","csv","website"].includes(this.xExportCurrentForm)?(t=177,e=75):["text","slickplan","docx"].includes(this.xExportCurrentForm)?t=70:this.isLandscape&&(t=190,e=55),{text:"Preview",styles:{top:t,left:e}}},foot:function(){var t=this.isLandscape?750:490,e=855,n=186;return["html","csv","website"].includes(this.xExportCurrentForm)?(e=716,n=75):["text","slickplan","docx"].includes(this.xExportCurrentForm)?t=489:this.isLandscape&&(e=735,n=55),{text:"Example ".concat(this.projectType," preview (your ").concat(this.projectType," is viewable after export)"),styles:{top:e,left:n,width:t}}},title:function(){var t=[];return this.formData.header_project_name&&t.push(this.projectData.title),this.formData.header_date&&t.push("December 24th 2018".concat(this.projectData.version?" | Version ".concat(this.projectData.version):"")),{text:t,styles:{width:this.isLandscape?600:360,top:this.isLandscape?241:121,left:this.isLandscape?80:210}}},logo:function(){return this.formData.header_logo&&this.projectData.logo?this.projectData.logo:null}}),methods:{formatStyles:function(t){return t&&t.styles?(Object.keys(t.styles).forEach((function(e){"number"==typeof t.styles[e]&&(t.styles[e]+="px")})),t.styles):null}}}},92384:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>w});var r=n(48416),i=n(71995),o=n(48448),a=n(95164),s=n(46656),l=n(40572),c=n(18088),u=n(32368),d=n(46936),f=n(65056),p=n(63199),m=n(42456),h=n(14580),v=n(22164);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||_(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){var r;return r=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==b(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const w={name:"panel-file-library",components:{"tab-loading":o.default,"table-listing":a.default,grid:l.default,"buttons-view":c.default},mixins:[m.fileHelpers,f.mixinProjectStatus,u.filterSearchMixin,d.mixinPanelScrollbar,d.mixinPanelStandalone,p.mixinFileLibraryMethods],pageWrapper:null,scrollableMargin:0,scrollableNavbarHeight:0,props:{selectable:{type:String,default:null},multiple:{type:Boolean,default:!0},exclude:{type:Array,default:function(){return[]}},cancelButton:{type:[Boolean,Function],default:!1},onSubmit:{type:Function,default:null}},data:function(){return{viewType:"grid",sort:"date_timestamp-desc",filters:{file_type:"all",show:"all",user:"all"},limitFilesToDisplay:10,limitIncreaseBy:10,diagramsList:[],sitemapsList:[]}},computed:k(k({},(0,r.mapState)({xBarIsVisible:function(t){return t.actionBar.isVisible},xBarSelectedIds:function(t){return t.actionBar.selected},xFilesLoaded:function(t){return t.file.loaded},xFiles:function(t){return t.file.files},xPlanLimits:function(t){return t.core.planLimits},xTeam:function(t){return t.team.team}})),{},{usedStorage:function(){return this.humanFileSize(this.xPlanLimits.storage_used||0)},allowedStorage:function(){return this.humanFileSize(this.xPlanLimits.storage_bytes)},canUpload:function(){return this.isProjectEditable&&(this.xPlanLimits.storage_used||this.xPlanLimits.storage_bytes>0)&&this.$root.isAllowedFeature(h.constants.FEATURE_FILES)},gridColumns:function(){return Math.round(this.xWindowSize.width/235)},gridStyle:function(){return{width:"".concat(100/this.gridColumns,"%")}},buttons:function(){return this.canUpload?[{label:"Upload files",onClick:this.onUpload}]:[]},sortedItems:function(){var t=this.sort.split("-");return Slickplan.helpers.sortSmart(this.xFiles||[],"filename"===t[0]||"name"===t[0]?"normalizedFilename":t[0],t[1],"normalizedFilename")},filteredSortedItems:function(){var t=this,e=this.filters,n=e.show,r=e.user,i=e.file_type,o=e.search;return this.sortedItems.filter((function(e){return("all"===i||e.type===i||"mockups"===i&&("image"===e.type||"application/pdf"===e.mime))&&(!o||o.every((function(t){return~e.normalizedFilename.indexOf(t)})))&&("all"===n||n&&t.includesProject(e,n))&&("all"===r||r==="u-".concat(e.user_id))})).map((function(e){return Slickplan.helpers.objectMergeDeep(e,{buttons:t.rowButtons(e)})}))},paginatedFilteredSortedItems:function(){return this.limitFilesToDisplay<=0||this.limitFilesToDisplay>=this.filteredSortedItems.length?this.filteredSortedItems:this.filteredSortedItems.slice(0,this.limitFilesToDisplay)},filteredSortedItemsRows:function(){var t=this;return this.paginatedFilteredSortedItems.map((function(e){return{id:e.alias,meta:{url_thumb:e.url_thumb,filesize:e.filesize},columns:[{label:e.filename},{buttons:t.rowButtons(e)}]}}))},filteredSortedItemsRowsColumns:function(){if(this.filteredSortedItemsRows.length>1){var t=Math.min(this.filteredSortedItemsRows.length,Math.ceil(this.xWindowSize.width/700)),e=[],n=0;return this.filteredSortedItemsRows.forEach((function(r){e[n]||(e[n]=[]),e[n].push(r),(n+=1)>=t&&(n=0)})),e}return[this.filteredSortedItemsRows]},filteredSortedItemsRowsColumnsWidth:function(){return{width:"".concat(100/this.filteredSortedItemsRowsColumns.length,"%")}},fileTypes:function(){return[{key:"all",value:"All"},{key:"image",value:"Images"},{key:"video",value:"Videos"},{key:"file",value:"Documents"}]},allFilesIds:function(){return this.xFiles.map((function(t){return t.alias}))},actionBarProps:function(){var t=this;if(this.selectable){var e=!!this.xBarSelectedIds.length,n=[];return this.cancelButton&&n.push({id:2,label:"Cancel",className:"-plain",onClick:function(){"function"==typeof t.cancelButton?t.cancelButton():v.EventBus.$emit("panel-close")}}),n.push({id:1,label:"Add ".concat(this.multiple?"files":"file"),className:e?null:"-primary -small -disabled",onClick:function(){if(e)return t.onMockupsSelect()}}),{isVisible:!0,sideLinks:n,doneButton:!1,count:e,label:e||" ",selectAll:this.multiple&&e?function(){return t.allFilesIds}:null}}return{isVisible:!0,links:[{id:1,icon:"trash",label:"Delete",onClick:function(){t.onDeleteFiles(t.xBarSelectedIds,t.clearLoadFiles)}}],buttons:[{id:1,icon:"download",label:"Download",onClick:function(){t.onDownload(t.xBarSelectedIds)}}],selectAll:function(){return t.allFilesIds}}},actionBarButtons:function(){return[]},filterSitemaps:function(){var t=this,e=[],n=[];this.xFiles.forEach((function(t){t.sitemaps&&Array.isArray(t.sitemaps)&&(e=e.concat(t.sitemaps)),t.diagrams&&Array.isArray(t.diagrams)&&(n=n.concat(t.diagrams))})),e=g(new Set(e)),n=g(new Set(n));var r=this.currentProjectDetails.main_id||this.currentProjectDetails.id;return[{key:"all",value:"All"},{key:"".concat(this.xProjectTypeName.substring(0,1),"-").concat(r),value:"This project"}].concat(this.sitemapsList.filter((function(n){return(t.isStandaloneDiagram||n.id!==r)&&e.includes(n.id)})).map((function(t){return{key:"s-".concat(t.id),value:t.title}})),this.diagramsList.filter((function(e){return(!t.isStandaloneDiagram||e.id!==r)&&n.includes(e.id)})).map((function(t){return{key:"d-".concat(t.id),value:t.title}})))},filterUploadedBy:function(){var t=g(new Set(this.xFiles.map((function(t){return t.user_id}))));if(t.length){var e=this.xTeam.filter((function(e){return t.includes(e.id)})).map((function(t){return{key:t.uid,value:t.name}}));if(e.length>1)return[{key:"all",value:"All"}].concat(g(e))}return[]}}),methods:{loadFiles:function(){var t=this;this.$store.commit("file/reset"),Slickplan.helpers.requestSingle((function(){var e=i.default.file.getFileLibrary(!0);return e.promise.then((function(e){if(null!=e&&e.files){null!=e&&e.diagrams&&(t.diagramsList=null==e?void 0:e.diagrams),null!=e&&e.sitemaps&&(t.sitemapsList=null==e?void 0:e.sitemaps);var n=Array.isArray(null==e?void 0:e.files)?null==e?void 0:e.files:[];Array.isArray(t.exclude)&&t.exclude.length&&(n=n.filter((function(e){return!t.exclude.includes(e.alias)}))),n=n.map((function(t){return t.icon=Slickplan.helpers.getIconByFile(t.filename,t.mime),t})),t.$store.commit("file/load",n),n.length&&t.selectable&&t.$store.commit("actionBar/set",t.actionBarProps),t.$nextTick(t.handleScroll)}})).catch((function(e){e&&t.$store.commit("file/load",[])})),e}),this.$options.name)},clearLoadFiles:function(){this.$store.commit("actionBar/reset"),this.onResetFilters(),this.loadFiles()},onResetFilters:function(){this.onSearchReset(),this.filters.file_type=this.selectable||"all",this.filters.show="all",this.filters.user="all"},onSetFilter:function(t,e){this.filters[t]&&(this.filters[t]=e)},onMockupsSelect:function(){var t=this;if(this.onSubmit)return this.onSubmit(this.xBarSelectedIds,this.xBarSelectedIds.map((function(e){return t.xFiles.find((function(t){return t.alias===e}))})));this.$store.dispatch("panel/setCurrentTab",{id:"assign",props:{ids:this.xBarSelectedIds.slice(0)}}),this.$store.dispatch("panel/setTitle",!1)},onUpload:function(){var t=this;this.$modal.show(s.default,{cancelLabel:"Close",submitLabel:"Save",onSubmit:function(){t.clearLoadFiles()}},{title:"Upload files",width:770,height:537})},handleScroll:function(){if(!this.$options.pageWrapper){var t=this.$el.querySelector(".ps-container");t&&(this.$options.pageWrapper=t,t.addEventListener("scroll",this.handleScroll))}if(this.limitFilesToDisplay>0&&this.filteredSortedItems.length>this.limitFilesToDisplay){var e=this.$options.pageWrapper,n=e.querySelector(".visibility-check");if(n){var r=n.getBoundingClientRect();r.top>=0&&r.left>=0&&r.bottom<=(e.innerHeight||e.clientHeight)&&r.right<=(e.innerWidth||e.clientWidth)&&(this.limitFilesToDisplay+this.limitIncreaseBy>=this.filteredSortedItems.length?this.limitFilesToDisplay=0:this.limitFilesToDisplay+=this.limitIncreaseBy)}}},limitCounterReset:function(){this.limitFilesToDisplay=8*this.gridColumns,this.limitIncreaseBy=2*this.gridColumns},includesProject:function(t,e){var n=y(e.split("-"),2),r=n[0],i=n[1];return i=parseInt(i,10),r="d"===r?"diagrams":"sitemaps",t&&t[r]&&Array.isArray(t[r])&&t[r].includes(i)}},watch:{filteredSortedItems:function(t,e){t.length!==e.length&&this.limitCounterReset()},viewType:function(t,e){t!==e&&(this.limitCounterReset(),this.handleScroll())},xBarSelectedIds:function(t,e){t.length&&!e.length?this.$store.commit("actionBar/set",this.actionBarProps):!t.length&&e.length&&(this.selectable?this.$store.commit("actionBar/set",this.actionBarProps):this.$store.commit("actionBar/reset"))}},mounted:function(){var t=this;this.selectable&&(this.filters.user="all",this.filters.show="all",this.filters.file_type=this.selectable),this.multiple||this.$watch("xBarSelectedIds",(function(e){e.length>1&&t.$store.commit("actionBar/selectOnly",e.reverse()[0])})),this.loadFiles()},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name),this.$store.commit("actionBar/reset"),this.$options.pageWrapper&&this.$options.pageWrapper.removeEventListener("scroll",this.handleScroll)}}},49296:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(64480),a=n(21424),s=n(14580),l=n(65056),c=n(66404);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"global-comments",components:{"panel-loading":n(48448).default,"comments-empty":o.default,"guest-form":a.default},mixins:[l.mixinProjectStatus,c.mixinCommentsBase],wsRoom:null,resizeTimerId:null,processedComments:{},data:function(){return{sortBy:"timestamp-desc",displayType:"all",searchQuery:"",scrollableHeight:0,textareaHeight:40}},computed:f(f(f({},(0,r.mapState)({xCommentsFromGlobals:function(t){return t.comments.fromGlobalComments},xCommentsLoading:function(t){return t.comments.isLoading},xCommentsType:function(t){return t.comments.type},xCommentsGlobal:function(t){return t.comments.commentsGlobal},xCommentsUnread:function(t){return t.comments.counter.globalUnread},xPanelVisible:function(t){return t.panel.visible},xIsMockupVisible:function(t){return t.mockup.isPreviewVisible},xProjectType:function(t){return t.project.currentProjectType},xWindowSize:function(t){return t.core.windowSize},xContentLanguage:function(t){return t.content.currentLanguage}})),(0,r.mapGetters)({xIsGuest:"user/isGuest",xIsGuestIntroduced:"user/isGuestIntroduced"})),{},{isGuestAndIntroductionNeeded:function(){return this.xIsGuest&&!this.xIsGuestIntroduced&&"write"===this.currentProjectMeta.comments},searchKeywords:function(){var t=String(this.searchQuery).trim().toLowerCase().split(" ");return t.length&&(t=t.filter((function(t){return!Slickplan.helpers.isBlank(t)&&t.length>1}))),t.length?t:null},sortedFilteredComments:function(){var t=this;if(this.xCommentsGlobal.length){var e=[],n=this.sortBy.split("-"),r=Slickplan.helpers.objectCloneDeep(this.xCommentsGlobal);if(r.forEach((function(i){if(!i.cell_id&&"diagram"!==i.type||"all"!==t.displayType&&i.type!==t.displayType){if(!(i.type||i.parent_id||"all"!==t.displayType&&"general"!==t.displayType)){var o=Slickplan.helpers.sortNumeric(r.filter((function(t){return t.parent_id===i.id})),n[0],n[1]);t.searchKeywords?o.length&&(e=e.concat(o)):i.replies=o,e.push(i)}}else e.push(i)})),this.searchKeywords&&e.length&&(e=e.filter((function(e){return t.searchKeywords.every((function(t){return~String(e.comment).toLowerCase().indexOf(t)}))}))),e.length)return Slickplan.helpers.sortNumeric(e,n[0],n[1])}return[]},sortByFilter:function(){return{"timestamp-desc":"Latest","timestamp-asc":"Oldest","user_id-asc":"User"}},commentsTypes:function(){var t=[{key:"all",value:"All"}];return this.xCommentsGlobal.find((function(t){return!t.type}))&&t.push({key:"general",value:"General"}),this.xCommentsGlobal.find((function(t){return"page"===t.type}))&&t.push({key:"page",value:"Page"}),this.xCommentsGlobal.find((function(t){return"diagram"===t.type}))&&t.push({key:"diagram",value:"Diagram"}),this.xCommentsGlobal.find((function(t){return"content"===t.type}))&&t.push({key:"content",value:"Content"}),this.xCommentsGlobal.find((function(t){return"file"===t.type}))&&t.push({key:"file",value:"Mockup"}),t},formHeight:function(){return this.canWriteComments?this.textareaHeight+4+8:0}}),methods:{onCommentAdded:function(){var t=this.sortBy.split("-");"timestamp"===t[0]&&this.$refs.scrollable&&("asc"===t[1]?this.$refs.scrollable.scrollToBottom():this.$refs.scrollable.scrollToTop())},loadComments:function(){var t=this,e=this.xProjectType.project;this.$store.commit("comments/setCounter",0),this.$store.dispatch("comments/setLoading",!0),Slickplan.helpers.requestSingle((function(){return"diagram"===e?i.default.comments.getList(e):i.default.comments.getThreaded(e)}),this.$options.name).promise.then((function(e){t.$store.dispatch("comments/setGlobal",e),t.recalculateScrollbarHeight()})).catch(_noop).finally((function(){t.$store.dispatch("comments/setLoading",!1)}))},cancelLoadComments:function(){Slickplan.helpers.requestCancel(this.$options.name)},recalculateScrollbarHeight:function(t){var e=this;clearTimeout(this.$options.resizeTimerId),this.$options.resizeTimerId=setTimeout((function(){e.scrollableHeight=Math.floor(e.xWindowSize.height-e.formHeight-43-36-8)}),"number"==typeof t?t:100)},clearSearch:function(){this.searchQuery=""}},watch:{textareaHeight:function(){this.recalculateScrollbarHeight(1)}},mounted:function(){this.$store.commit("comments/reset",s.constants.COMMENTS_TYPE_GLOBAL),this.$store.commit("comments/fromGlobalComments",!1),window.addEventListener("resize",this.recalculateScrollbarHeight),this.recalculateScrollbarHeight(1),this.loadComments()},beforeDestroy:function(){window.removeEventListener("resize",this.recalculateScrollbarHeight),this.cancelLoadComments()}}},9996:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(48416),i=n(71995),o=n(71360),a=n(10916),s=n(14580),l=n(46936),c=n(42456),u=n(70992),d=n(22164),f=["file_name","file_size","file_content","file_type"];function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y={name:"panel-import-form",components:{"block-upload":o.default,"field-textarea":a.default},mixins:[l.mixinPanelScrollbar,c.formHelpers,c.stickyButtonsHelpers,u.mixinSitemapSectionsList],props:{type:{type:String,required:!0,validator:function(t){return["xml","crawler","text","template","ai"].includes(t)}}},data:function(){return{postTypes:null,permissionsAccount:s.permissionsAccount}},computed:v(v(v({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details},xImportCurrentForm:function(t){return t.project.importCurrentForm},xImportSubType:function(t){return t.project.importSubType},xProjectType:function(t){return t.project.currentProjectType},xAccountData:function(t){return t.user.user},xPlanLimits:function(t){return t.core.planLimits},xPredefinedTemplates:function(t){return t.project.predefinedTemplates[t.project.currentProjectType.project]||[]},xSitemapSiteSettings:function(t){return t.sitemap.siteSettings}})),(0,r.mapGetters)({xImportFormData:"project/getImportFormData",xDropdownCellsList:"sitemapCell/getCellsForDropdown",xGetCellsByAttribute:"sitemapCell/getCellsByAttribute"})),{},{formData:function(){return this.xImportFormData},hasSubmit:function(){return"ai"===this.importCurrentForm||!this.canUpload||this.hasUploadedFile},canSubmit:function(){var t;return"ai"===this.importCurrentForm?((null===(t=this.formData)||void 0===t||null===(t=t.prompt)||void 0===t?void 0:t.length)||0)>=15:"template"===this.importCurrentForm?this.formData.template_id:"crawler"===this.importCurrentForm?this.formData.url:!this.canUpload||this.hasUploadedFile},canUpload:function(){return"xml"===this.xImportCurrentForm||"text"===this.xImportCurrentForm},hasUploadedFile:function(){return this.canUpload&&this.formData.file_id},canImportIntoSection:function(){return void 0!==this.formData.to_section&&void 0!==this.formData.to_section_id&&"string"==typeof this.formData.to_section_type&&this.dropdownCellsList.length},toSectionTypes:function(){return[{label:"Create new section",value:"new"},{label:"Use existing section",value:"existing"}]},dropdownCellsList:function(){return this.xDropdownCellsList([s.constants.CELL_LEVEL_UTIL,s.constants.CELL_LEVEL_MAIN,s.constants.CELL_LEVEL_FOOT],this.xGetCellsByAttribute(s.constants.CELL_DATA_KEY_SUBSECTION))},crawlerLimit:function(){return Slickplan.constants.CRAWLER_LIMIT||1e4},importCurrentForm:function(){return"xml"===this.xImportCurrentForm?this.xImportSubType:this.xImportCurrentForm},aiLanguages:function(){var t=s.supportedAiLanguages.map((function(t){var e=Slickplan.constants.CONTENT_LANGUAGES[t];return e?{value:t,label:e.name===e.name_local?e.name:"".concat(e.name," / ").concat(e.name_local)}:null})).filter((function(t){return t}));return t.sort((function(t,e){return t.label.localeCompare(e.label)})),t},aiCounters:function(){return[{label:"1-10",value:"1-10"},{label:"10-20",value:"10-20"},{label:"20+",value:"20-30"},{label:"Decide for me",value:"any"}]}}),methods:{setImportFormData:function(t){this.$store.commit("project/setImportFormData",t)},onCancel:function(){d.EventBus.$emit("panel-close")},onUploadSuccess:function(t){null!=t&&t.detected_type&&this.$store.commit("project/setCurrentImportForm",t.detected_type),this.postTypes="wordpress"===this.importCurrentForm?t.post_types||["page","post"]:null},onSubmit:function(){var t=this;if(!this.canSubmit)return!1;var e=this.formData,n=(e.file_name,e.file_size,e.file_content,e.file_type,m(e,f));this.formSubmit({action:function(){return"diagram"===t.xProjectType.project?i.default.diagram.import(t.importCurrentForm,n):"ai"===t.importCurrentForm?i.default.sitemap.aiGenerate(n):i.default.sitemap.import(t.importCurrentForm,n)},success:function(e){if("sitemap"===t.xProjectType.project){if(null!=e&&e.crawler)return t.$store.commit("sitemap/setData",{crawler:[t.xSitemapData.id]}),t.$root.routeSwitchTool("sitemap-import");var n={name:"sitemap",params:{sitemap:Slickplan.globalVars.sitemapAlias}};return Slickplan.helpers.navigateTo(t.$router.resolve(n).href,!0)}window.location.reload()},before:this.panelOverlayEnable,after:this.panelOverlayDisable})},openTemplateDemo:function(t){Slickplan.helpers.navigateTo(t,"demos",!0)}},watch:{type:{handler:function(t){if(this.$store.commit("project/setCurrentImportForm",t),"template"!==t||this.xPredefinedTemplates.length||this.$store.dispatch("project/loadPredefinedTemplates"),"ai"===t&&!this.formData.language){var e=this.xSitemapSiteSettings.default_language;this.formData.language=e&&s.supportedAiLanguages.includes(e)?e:"en_US"}},immediate:!0}},mounted:function(){this.xAccountData.trial&&void 0!==this.formData.limit&&(this.formData.limit=!0,this.formData.pages_limit>this.crawlerLimit&&(this.formData.pages_limit=this.crawlerLimit)),void 0!==this.formData.url&&this.$route.query.crawlerUrl&&this.$route.query.crawlerUrl.startsWith("http")&&(this.formData.url=this.$route.query.crawlerUrl)},beforeDestroy:function(){Slickplan.helpers.requestCancel("project/loadPredefinedTemplates")}}},57776:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var r=n(84360),i=n.n(r),o=n(48416),a=n(71995),s=n(84064),l=n(42456),c=n(63780),u=n(46936),d=n(30160),f=n(14580);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b={name:"panel-import-upload",components:{LinkHelp:d.default,"upload-internal":s.default},mixins:[l.fileHelpers,c.mixinFileUploadHelpers,u.mixinPanelOverlay],data:function(){return{isUploading:!1,dropzoneId:null}},computed:h(h(h({},(0,o.mapState)({xImportCurrentForm:function(t){return t.project.importCurrentForm},xImportSubType:function(t){return t.project.importSubType},xProjectType:function(t){return t.project.currentProjectType}})),(0,o.mapGetters)({xImportFormData:"project/getImportFormData"})),{},{isStandaloneDiagram:function(){return"diagram"===this.xProjectType.project},importCurrentForm:function(){return"xml"===this.xImportCurrentForm?this.xImportSubType:this.xImportCurrentForm},importUrl:function(){return"import/".concat(this.fileExtension).concat(this.isStandaloneDiagram?"/diagram":"")},fileExtension:function(){return"text"===this.importCurrentForm?"txt":"xml"},title:function(){return"text"===this.importCurrentForm?"Upload text file":"Upload XML file"},uploadTypes:function(){return[{label:"Upload an existing file",value:"upload"},{label:"Copy and paste contents",value:"paste"}]},isUploadForm:function(){return this.isUploadingVisible||this.isDropzoneVisible},isDropzoneVisible:function(){return!(this.isUploading||this.xImportFormData.file_id||"text"===this.importCurrentForm&&"upload"!==this.xImportFormData.file_type)},isUploadingVisible:function(){return this.isUploading||this.xImportFormData.file_id}}),methods:h(h({},(0,o.mapActions)({xSetPanelNotification:"panel/setNotification"})),{},{setImportFormData:function(t){this.$store.commit("project/setImportFormData",t)},onFileDelete:function(){this.setImportFormData({file_id:0,file_name:"",file_size:0})},onUploadResponse:function(t){this.$emit("success",t)},onUploadSuccess:function(t,e){this.setImportFormData({file_id:Slickplan.helpers.getValue(t,"id",0),file_name:Slickplan.helpers.getValue(t,"name",Slickplan.helpers.getValue(e,"name","")),file_size:Slickplan.helpers.getValue(t,"size",Slickplan.helpers.getValue(e,"size",0))})},onUploadError:function(t){var e=Slickplan.helpers.getValue(t,"errors.file.0",Slickplan.helpers.getValue(t,"error.msg"));e&&this.xSetPanelNotification({type:"error",text:e})},onSavePastedContent:function(){var t=this,e="sitemap.txt";if(this.xImportFormData.file_content){this.setImportFormData({file_name:e,file_size:this.xImportFormData.file_content.length}),this.isUploading=!0;var n=new FormData;n.append("file",new Blob([this.xImportFormData.file_content],{type:"plain/text"}),e),a.default.file.upload(this.importUrl,n).promise.then((function(n){n.name=e,t.setImportFormData({file_type:"paste"}),t.onUploadSuccess(n)})).catch(this.onUploadError).finally((function(){t.isUploading=!1}))}},onDropzoneVisible:function(){this.uploadFileOption("dropzoneId",this.dropzoneId),this.uploadFileOption("dropzone",this.dropzoneId)},onSampleFileDownload:function(){i()(f.sampleDashTxt,"sample.txt","text/plain")},initDropzone:function(){var t=this;this.uploadFileInit({url:this.importUrl,extensions:[this.fileExtension],maxFilesSelect:1,maxFilesInProgress:1,maxSizePerFile:8388608,invalidExtensionMsg:"File must have .".concat(this.fileExtension," extension."),onStart:function(){t.isUploading=!0;var e=t.$upload.files(t.uploadFileKey).all;e&&e.length&&t.setImportFormData({file_name:e[0].name,file_size:e[0].size})},onSuccess:function(e,n){return t.isUploading=!1,"text"===t.importCurrentForm&&t.setImportFormData({file_type:"upload"}),t.onUploadSuccess(n,e)},onError:function(e){return t.isUploading=!1,t.onUploadError(e)}})}}),watch:{"xImportFormData.to_section_type":function(){this.setImportFormData({to_section_id:""})},isDropzoneVisible:function(t){var e=this;this.dropzoneId=t?Slickplan.helpers.randomString(16):null,this.$nextTick((function(){e.onDropzoneVisible()}))}},beforeMount:function(){"text"===this.importCurrentForm&&this.setImportFormData({file_type:"upload"})},mounted:function(){var t=this;this.dropzoneId=Slickplan.helpers.randomString(16),this.$nextTick((function(){t.initDropzone(),t.onDropzoneVisible()}))},beforeDestroy:function(){this.uploadFileDestroy()}}},54708:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(81936),o=n(14580),a=n(46936),s=n(22164),l=n(97152);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"panel",components:{"notification-item":i.default},mixins:[a.mixinPanelComponents,a.mixinPanelOverlay],provide:function(){return{onTabClick:this.onTabClickProcess}},data:function(){return{isPanelShowingUp:!1,isTabsSwitching:!1,tabsTransitionDir:"right"}},computed:d(d(d({},(0,r.mapState)({xPanelId:function(t){return t.panel.id},xPanelComponent:function(t){return t.panel.component},xPanelButtons:function(t){return t.panel.buttons},xPanelTabs:function(t){return t.panel.tabs},xPanelTitle:function(t){return t.panel.title},xPanelVisible:function(t){return t.panel.visible},xPanelOverlay:function(t){return t.panel.overlay},xPanelNotification:function(t){return t.panel.notification},xPanelPreviewComponent:function(t){return t.panel.previewComponent},xPanelCurrentTab:function(t){return t.panel.currentTab},xPanelStandalone:function(t){return t.panel.standalone},xPanelCloseConfirm:function(t){return t.panel.closeConfirm},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xWindowSize:function(t){return t.core.windowSize},xCurrentCellLabel:function(t){return Slickplan.helpers.getValue(t.sitemapCell[t.sitemapCell.currentCellId],o.constants.CELL_DATA_KEY_LABEL,"")}})),(0,r.mapGetters)({xPanelWidth:"panel/getWidth",xIsPanelResizeable:"panel/isResizeable"})),{},{hasOverlay:function(){return"string"==typeof this.xPanelPreviewComponent.component&&"overlay"===this.xPanelPreviewComponent.component},hasPreviewComponent:function(){return"object"===c(this.xPanelPreviewComponent.component)&&Slickplan.helpers.getValue(this.xPanelPreviewComponent,"component.name")},panelWidthStyle:function(){return this.xPanelWidth<=0?{width:0,opacity:0,visibility:"hidden",overflow:"hidden",pointerEvents:"none"}:{width:"".concat(this.xPanelWidth,"px")}},panelPreviewWidthStyle:function(){return{width:"calc(100% - ".concat(this.xPanelWidth,"px)")}},tabsMenu:function(){return this.xPanelTabs.filter((function(t){return!Slickplan.helpers.isBlank(t.name)}))},currentTab:function(){var t=this;return this.xPanelTabs.find((function(e){return e.id===t.xPanelCurrentTab}))},currentTabComponent:function(){return Slickplan.helpers.getValue(this.currentTab,"component",null)},currentTabProps:function(){return Slickplan.helpers.getValue(this.currentTab,"props",{})},currentComponent:function(){return this.isCustomComponent?this.xPanelComponent.component:this.currentTabComponent},currentComponentProps:function(){var t=this.isCustomComponent?this.xPanelComponent.props:this.currentTabProps;return t&&"object"===c(t)?t:{}},currentComponentId:function(){return this.isCustomComponent?this.xPanelComponent.component.name:this.xPanelCurrentTab},isCustomComponent:function(){return Boolean(this.xPanelComponent.component)},componentTransition:function(){return this.isPanelShowingUp?"":"transition-panel-wrapper-".concat(this.tabsTransitionDir)},notification:function(){return!!(this.xPanelNotification.text||this.xPanelNotification.note||this.xPanelNotification.html)&&d(d({},this.xPanelNotification),{},{id:"panel"})}}),methods:d(d({},(0,r.mapActions)({xSetPanelWidth:"panel/setWidth",xSetPanelTitle:"panel/setTitle",xSetPanelCurrentTab:"panel/setCurrentTab",xRemovePanelNotification:"panel/removeNotification"})),{},{getTabIndex:function(t){return this.xPanelTabs.findIndex((function(e){return e.id===t}))},onBeforeEnter:function(){var t=this;if(this.$store.commit("panel/setVisibleStatus","entering"),s.EventBus.$emit("panel-before-enter"),this.isPanelShowingUp=!0,!this.currentTab||this.currentTab.requiredFeature&&!this.$root.isAllowedFeature(this.currentTab.requiredFeature)){var e=this.xPanelTabs.find((function(e){return!e.requiredFeature||t.$root.isAllowedFeature(e.requiredFeature)}));this.onTabClickProcess(e?e.id:null)}this.$store.commit("actionBar/reset")},onAfterEnter:function(){this.isPanelShowingUp=!1,this.isTabsSwitching=!1,this.xPanelStandalone||s.EventBus.$on("keypress-escape",this.onPanelClose),this.$store.commit("panel/setVisibleStatus","visible"),s.EventBus.$emit("panel-after-enter")},onBeforeLeave:function(){this.$store.commit("panel/setVisibleStatus","leaving"),s.EventBus.$emit("panel-before-leave"),this.xPanelStandalone||s.EventBus.$off("keypress-escape",this.onPanelClose),this.$store.commit("actionBar/reset")},onAfterLeave:function(){this.onTabClickProcess(),this.$store.commit("panel/setVisibleStatus","hidden"),s.EventBus.$emit("panel-after-leave")},onComponentAfterEnter:function(){this.isTabsSwitching=!1},onTabClick:function(t){var e=this;t&&!t.disabled&&(t.requiredFeature?this.$root.ifAllowedFeatureThen(t.requiredFeature,(function(){return e.onTabClickProcess(t.id)})):this.onTabClickProcess(t.id))},onTabClickProcess:function(t){"string"==typeof t&&t||"number"==typeof t?(this.isTabsSwitching=!0,this.panelCloseComponents()):t=null,this.xSetPanelCurrentTab(t)},onButtonClick:function(t){return"string"==typeof t.onClick||"number"==typeof t.onClick?this.onTabClickProcess(t.onClick):t.onClick()},onPanelClose:function(){var t=this;if(!this.xPanelCloseConfirm)return this.$store.commit("panel/closePanel");this.$modal.show(l.default,{text:this.xPanelCloseConfirm,buttonLabel:"Yes, close",form:{action:function(){t.$store.commit("panel/closeConfirm",{text:null}),t.$store.commit("panel/closePanel")}}},{name:"confirm",title:"Confirm"})},onNotificationClose:function(){this.xRemovePanelNotification()},resizeStart:function(){this.panelOverlayEnable(o.constants.PANEL_OVERLAY_RESIZE),document.addEventListener("mousemove",this.resizeMove),document.addEventListener("mouseup",this.resizeStop)},resizeStop:function(){document.removeEventListener("mousemove",this.resizeMove),document.removeEventListener("mouseup",this.resizeStop),this.panelOverlayDisable()},resizeMove:function(t){this.xSetPanelWidth(this.xWindowSize.width-t.pageX)}}),watch:{xCurrentCellLabel:function(t){this.xPanelTitle&&"cell"===this.xPanelId&&t&&this.xSetPanelTitle(t)},xPanelCurrentTab:function(t,e){this.tabsTransitionDir=this.getTabIndex(t)<this.getTabIndex(e)?"left":"right"},"xPanelComponent.component":function(t){this.isTabsSwitching||(this.tabsTransitionDir=t&&!this.xPanelComponent.goingBack?"right":"left")}},mounted:function(){s.EventBus.$on("panel-close",this.onPanelClose)},beforeDestroy:function(){s.EventBus.$off("panel-close",this.onPanelClose)}}},48176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"panel-loading"}},98316:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(93136),o=n(66836),a=n(70992);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"panel-tab-cell",mixins:[i.datepicker,a.mixinSitemapCurrentCell,o.mixinCharts],props:{charts:{type:Object,required:!0},url:{type:[String,null],default:null},isGa4:{type:Boolean,default:!1}},computed:c(c({},(0,r.mapState)({xDateRange:function(t){return t.project.dateRange}})),{},{chartsSmall:function(){return this.isGa4?["sessions_date","screenPageViews_date","activeUsers_date","newUsers_date","averageSessionDuration_date","bounceRate_date"]:["pageviews_date","uniquePageviews_date","avgTimeOnPage_date","entrances_date","bounceRate_date","exitRate_date"]}}),mounted:function(){this.loadChartsData(),this.$watch("charts",this.loadChartsData,{deep:!0})}}},10472:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(71995),o=n(93136),a=n(66836),s=n(70992),l=n(65056),c=n(14580),u=n(22164);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"panel-metrics-dashboard",mixins:[o.datepicker,s.mixinSitemapCurrentCell,l.mixinProjectStatus,a.mixinCharts],props:{charts:{type:Object,required:!0},isGa4:{type:Boolean,default:!1}},data:function(){return{pieCharts:["pageviews_medium","screenPageViews_sessionSourceMedium"],topPagesFilter:null,topPages:{}}},computed:p(p({},(0,r.mapState)({xDateRange:function(t){return t.project.dateRange},xWindowSize:function(t){return t.core.windowSize}})),{},{chartsMain:function(){return this.isGa4?["sessions_date","screenPageViews_sessionSourceMedium"]:["sessions_date","pageviews_medium"]},chartsSmall:function(){return this.isGa4?["activeUsers_date","newUsers_date","bounceRate_date","screenPageViews_date","screenPageViewsPerSession_date","averageSessionDuration_date"]:["users_date","pageviews_date","pageviewsPerSession_date","avgSessionDuration_date","bounceRate_date","percentNewSessions_date"]},topPagesFilters:function(){return this.isGa4?{screenPageViews:"Page Views",activeUsers:"Active Users",sessions:"Sessions",averageSessionDuration:"Avg. Time on Page",bounceRate:"Bounce Rate"}:{"ga:pageviews":"Page Views","ga:uniquePageviews":"Unique Page Views","ga:avgTimeOnPage":"Avg. Time on Page","ga:entrances":"Entrances","ga:bounceRate":"Bounce Rate","ga:exitRate":"% Exit"}},tables:function(){return this.isGa4?[{caption:"Conversions",data:this.getTableData(["Channel"],"firstUserDefaultChannelGroup","purchase")},{caption:"Social referral",data:this.getTableData(["Social Network"],"customSocialReferrals")}]:[{caption:"Conversions",data:this.getTableData(["Channel"],"ga:medium","ga:goal")},{caption:"Social referral",data:this.getTableData(["Social Network"],"ga:socialNetwork")}]}}),methods:p(p({},(0,r.mapActions)({xSetPanelWidth:"panel/setWidth",xSetPanelMinWidth:"panel/setMinWidth",xSetPanelMaxWidth:"panel/setMaxWidth",xSetPanelButtons:"panel/setButtons"})),{},{getTableData:function(t,e,n){var r=this,i={},o=0;return Object.keys(this.charts).forEach((function(a){var s=r.charts[a];s&&s[e]&&(!n||a.startsWith(n))&&(t.push(s.label),Object.keys(s[e]).forEach((function(t){i[t]||(i[t]=[]),i[t][o]=r.formatValue(s[e][t],s.type)})),o+=1)})),{columns:t,rows:i}},loadTopPagesData:function(t){var e=this;this.topPages=!0,Slickplan.helpers.requestSingle((function(){return i.default.sitemap.getMetrics(e.xDateRange.startDate.format(c.constants.DATE_FORMAT_YMD),e.xDateRange.endDate.format(c.constants.DATE_FORMAT_YMD),t)}),this.$options.name).promise.then((function(t){t&&t.chart&&(t.format&&Object.keys(t.chart).forEach((function(n){t.chart[n]=e.formatValue(t.chart[n],t.format)})),e.topPages=t.chart)})).catch((function(){e.topPages=null}))}}),beforeMount:function(){this.xSetPanelMaxWidth(0),this.xSetPanelMinWidth(1140),.95*this.xWindowSize.width>1269&&this.xSetPanelWidth(1269),this.isProjectShared||this.xSetPanelButtons([{icon:"disconnect",label:"Disconnect Google Analytics",onClick:function(){i.default.sitemap.removeMetricsProfile(),u.EventBus.$emit("panel-close")}}])},mounted:function(){var t=this;this.loadChartsData(),this.topPagesFilter=Object.keys(this.topPagesFilters)[0],this.topPages=Slickplan.helpers.getValue(this.charts,[this.topPagesFilter,this.isGa4?"pagePath":"ga:pagePath"]),this.$watch("charts",(function(){t.loadChartsData()}),{deep:!0}),this.$watch("topPagesFilter",this.loadTopPagesData)}}},98987:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(85356),i=n(65056),o=n(70992),a=n(75300),s=n(42456),l=n(71995);const c={name:"panel-metrics-empty",components:{"link-help":n(30160).default,"svg-metrics":r.default},mixins:[o.mixinSitemapCurrentCell,i.mixinProjectStatus,a.oAuthConnect,s.formHelpers],inject:["loadMetrics"],data:function(){return{formData:{property_id:"",credentials:"custom",ga4_json:""}}},computed:{canSubmitGa4:function(){return!!this.formData.property_id&&("custom"!==this.formData.credentials||this.formData.ga4_json)}},methods:{onConnectGa4:function(){var t=this;this.formSubmit({action:function(){return l.default.sitemap.connectGa4(t.formData)},success:this.loadMetrics})}}}},84488:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(71995),o=n(93104),a=n(30660),s=n(47672),l=n(48448),c=n(46936),u=n(70992),d=n(14580);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"panel-metrics",components:{"metrics-empty":o.default,"metrics-dashboard":a.default,"metrics-cell":s.default,"tab-loading":l.default},mixins:[c.mixinPanelScrollbar,u.mixinSitemapCurrentCell],provide:function(){return{loadMetrics:this.loadMetrics}},scrollableMargin:0,props:{cell:{type:Boolean,default:!1}},data:function(){return{screen:"loading",loadingError:"",disconnecting:!1,charts:{},url:null}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xDateRange:function(t){return t.project.dateRange}})),methods:{loadMetrics:function(){var t=this;this.screen="loading";var e=[this.xDateRange.startDate.format(d.constants.DATE_FORMAT_YMD),this.xDateRange.endDate.format(d.constants.DATE_FORMAT_YMD)];Slickplan.helpers.requestSingle((function(){var n,r;return t.cell?(n=i.default.sitemap).getCellMetrics.apply(n,[t.xCurrentCellAlias].concat(e)):(r=i.default.sitemap).getMetrics.apply(r,e)}),this.$options.name).promise.then((function(e){var n;if(null!==(n=e.errors)&&void 0!==n&&n.length)return t.loadingError=e.errors[0],void(t.screen=!1);t.screen=null,e&&e.charts&&"object"===f(e.charts)&&(t.charts=e.charts,t.screen=(t.cell?"cell":"metrics")+("ga4"===e.type?"-ga4":""),t.url=e.url||null)})).catch((function(e){t.loadingError=e&&e.message?e.message:t.$trans("messages.error_loading",{what:"page metrics"}),t.screen=!1}))},onDisconnect:function(){var t=this;this.disconnecting||(this.disconnecting=!0,i.default.sitemap.removeMetricsProfile().promise.then((function(){t.screen=null})).finally((function(){t.disconnecting=!1})))}},watch:{screen:function(t,e){t!==e&&(this.$options.scrollableNavbarHeight="cell"===t?44:0)}},beforeMount:function(){this.$store.dispatch("panel/setWidth"),this.$store.dispatch("panel/setMinWidth"),this.$store.dispatch("panel/setMaxWidth")},mounted:function(){this.loadMetrics(),this.$watch("xDateRange",this.loadMetrics,{deep:!0})},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},10448:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(48448),a=n(32368),s=n(30644),l=n(46936),c=n(22164);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"panel-mockups-assign",components:{"tab-loading":o.default},mixins:[a.filterSearchMixin,l.mixinPanelStandalone,s.mixinMockupsAssign],props:{ids:{type:Array,required:!0}},computed:f(f({},(0,r.mapState)({xFilesLoaded:function(t){return t.file.loaded},xFiles:function(t){return t.file.files}})),{},{allFiles:function(){return this.xFiles}}),methods:{closePanel:function(){c.EventBus.$emit("panel-close")},onSubmit:function(){var t=this;this.canSubmit&&(this.isSubmitting=!0,i.default.file.assignFilesAsMockups(this.allFiles.map((function(e){return{file_id:e.alias,cell_id:t.selected[e.alias]}})),!0).promise.then((function(e){t.$store.commit("panel/closeConfirm",{text:null}),null!=e&&e.mockups&&t.$store.commit("mockup/setMockups",e.mockups),t.closePanel()})).catch(Slickplan.catchAll).finally((function(){t.isSubmitting=!1})))}},mounted:function(){var t=this;this.$store.commit("panel/closeConfirm",{text:"Are you sure you want to close this form without assigning mockups?"}),this.$store.commit("file/reset"),Slickplan.helpers.requestSingle((function(){var e=i.default.file.getFileLibrary();return e.promise.then((function(e){var n=Array.isArray(e)?e.filter((function(e){return t.ids.includes(e.alias)})):[];n.forEach((function(e){return t.selected[e.alias]=""})),t.selected=f({},t.selected),t.$store.commit("file/load",n.map((function(t){return t.icon=Slickplan.helpers.getIconByFile(t.filename,t.mime),t})))})).catch((function(e){e&&t.$store.commit("file/load",[])})),e}),this.$options.name)},beforeDestroy:function(){this.$store.commit("panel/closeConfirm",{text:null}),Slickplan.helpers.requestCancel(this.$options.name)}}},14464:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(30644),o=n(63199),a=n(49998),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"mockup-buttons",mixins:[i.mixinMockupClick,o.mixinFileLibraryMethods],inject:["onLoad"],props:{mockup:{type:Object,required:!0},preview:{type:Boolean,default:!1}},computed:f(f({},(0,r.mapState)({xFilters:function(t){return t.mockup.filters},xSitemapData:function(t){return t.sitemap.details}})),{},{canManage:function(){return this.$root.userCan(s.permissionsProject.MANAGE_MOCKUPS)},cellId:function(){return this.mockup.cell_id||this.mockup.cellId||this.mockup.id},mockupId:function(){return this.mockup.cell_file_id||this.mockup.mockupId||this.mockup.id},mockupShareLink:function(){return Slickplan.helpers.getLink("".concat(this.xSitemapData.alias,"/mockup/").concat(this.mockupId,"t").concat(this.cellId),!0)},mockupFigmaData:function(){if(this.mockup.figma_key){var t=c(this.mockup.figma_key.split("/"),2);return{fileId:t[0],itemId:t[1]}}return!1}}),methods:{onButtonUploadClick:function(){this.$store.commit("mockup/setUploadBar",this.cellId)},onButtonDeleteClick:function(){this.onDeleteMockups(this.mockupId,!0,this.onLoad)},onClickShare:function(){this.$modal.show(a.default,{link:this.mockupShareLink,type:"simple"},{name:"share",title:"Share mockup",width:550})},onButtonClickFigma:function(){if(this.mockupFigmaData){var t=this.mockupFigmaData,e=t.fileId,n=t.itemId;Slickplan.helpers.navigateTo("https://www.figma.com/file/".concat(e,"/?node-id=").concat(encodeURIComponent(n)),null,!0)}}}}},60920:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(65056),i=n(70992),o=n(75300);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"panel-figma-empty",mixins:[i.mixinSitemapCurrentCell,r.mixinProjectStatus,o.oAuthConnect],inject:["loadForm"],props:{modal:{type:Object,required:!0}},methods:{onConnect:function(){var t=this,e="".concat(this.modal.url+(this.modal.url.includes("?")?"&":"?"),"sid=").concat(Slickplan.globalVars.sitemapAlias);this.oauthConnect({id:this.$options.name,modal:l(l({},this.modal),{},{url:e})},(function(e,n){e?(t.loadForm(),t.$store.commit("user/append",{hasFigma:!0})):t.$notify({type:"error",text:n})}))}}}},12083:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(71995);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"panel-figma-files-selector",mixins:[n(30644).mixinMockupsAssign],scrollableMargin:0,scrollableTitlebarHeight:43,scrollableNavbarHeight:114,toImport:[],props:{files:{type:Array,required:!0}},data:function(){return{isSubmitting:!1,allFiles:[],canceled:!1,filterSearch:"",filterCategory:"all"}},computed:{canSubmit:function(){return!!Object.keys(this.selected).length},categories:function(){var t=Slickplan.helpers.sortString(this.files.filter((function(t){return"CANVAS"===t.type})).map((function(t){return{key:t.group_id,value:t.name}})),"value","asc");return t.length>1?[{key:"all",value:"All"}].concat(t):[]},filteredAllFiles:function(){var t=this,e=Slickplan.helpers.normalizeKeywords(this.filterSearch);return"all"!==this.filterCategory||e.length?this.allFiles.filter((function(n){return("all"===t.filterCategory||n.group_id===t.filterCategory)&&(!e.length||e.every((function(t){return~Slickplan.helpers.normalizeString(n.filename||n.name).indexOf(t)})))})):this.allFiles},selectedAllFiles:function(){var t=this;return this.allFiles.filter((function(e){return t.selected[e.alias]})).map((function(e){return{file_id:e.alias,cell_id:t.selected[e.alias]}}))}},methods:{onSubmit:function(){var t=this;this.canSubmit&&(this.isSubmitting=!0,r.default.file.assignFilesAsMockups(this.selectedAllFiles,!0).promise.then((function(e){t.$store.commit("panel/closeConfirm",{text:null}),null!=e&&e.mockups&&t.$store.commit("mockup/setMockups",e.mockups),t.$emit("close")})).catch(Slickplan.catchAll).finally((function(){t.isSubmitting=!1})))},importFiles:function(){var t=this;if(this.$options.toImport.length&&!this.canceled){var e=this.$options.toImport.shift();Slickplan.helpers.requestSingle((function(){var n=r.default.file.importFigmaFile(e.file_id,e.items);return n.promise.then((function(e){null!=e&&e.files&&(e.files.forEach((function(e){var n=t.allFiles.findIndex((function(t){return t.figma_key===e.figma_key}));n>=0&&(t.allFiles[n]=Slickplan.helpers.objectMergeDeep(t.allFiles[n],e))})),t.allFiles=t.allFiles.slice(0))})).catch(_noop).finally(t.importFiles),n}),this.$options.name)}else this.canceled=!0},loadFiles:function(){this.allFiles=this.files.map((function(t){return a(a({},t),{},{figma_key:"".concat(t.file_id,"/").concat(t.id)})}))},loadToImport:function(){var t=this;this.files.forEach((function(e){if(!e.alias){var n=t.$options.toImport.findIndex((function(t){return t.file_id===e.file_id&&Object.keys(t.items).length<4}));n>=0?t.$options.toImport[n].items[e.id]=e.name:t.$options.toImport.push({file_id:e.file_id,items:s({},e.id,e.name)})}}))}},mounted:function(){this.loadFiles(),this.loadToImport(),this.importFiles(),this.$store.commit("panel/closeConfirm",{text:"Are you sure you want to close this form without assigning mockups?"})},beforeDestroy:function(){this.$store.commit("panel/closeConfirm",{text:null}),this.canceled=!0,Slickplan.helpers.requestCancel(this.$options.name)}}},65880:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(71995),o=n(4768),a=n(64236),s=n(48448),l=n(46936),c=n(70992),u=n(42456),d=n(32478);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"panel-figma",components:{"figma-empty":o.default,"figma-files-selector":a.default,"tab-loading":s.default},mixins:[l.mixinPanelStandalone,l.mixinPanelScrollbar,c.mixinSitemapCurrentCell,u.formHelpers],provide:function(){return{loadForm:this.loadForm}},scrollableMargin:0,scrollableNavbarHeight:0,data:function(){return{screen:null,loadingError:"",modalData:null,loadedProjects:null,loadedFiles:null,loadedPagesAndFrames:null,selectedProject:null,selectedFile:null}},computed:m(m({},(0,r.mapState)({xFigmaTeamId:function(t){return t.mockup.teamId},xWindowSize:function(t){return t.core.windowSize}})),{},{selectedTeamId:{get:function(){return this.xFigmaTeamId},set:function(t){this.$store.commit("mockup/setTeamId",t)}},isTeamSelect:function(){return!this.selectedTeamId||!Array.isArray(this.loadedProjects)},isSubmitDisabled:function(){return this.isTeamSelect?!this.selectedTeamId:Array.isArray(this.loadedFiles)?!this.selectedFile:!!Array.isArray(this.loadedProjects)&&!this.selectedProject},sideStyles:function(){return{height:"".concat(this.scrollableHeight,"px"),width:this.isTeamSelect?"40%":"0px",minWidth:this.isTeamSelect?"380px":"0px",maxWidth:"600px",overflow:"hidden",transition:"all .2s ease"}}}),methods:{loadForm:function(){var t=this;this.screen="loading",Slickplan.helpers.requestSingle((function(){return i.default.integration.getForm("figma")}),this.$options.name).promise.then((function(e){null!=e&&e.modal?(t.modalData=e.modal,t.screen="modal"):(t.screen="select",t.$store.dispatch("panel/setButtons",[{icon:"disconnect",label:"Disconnect Figma",onClick:function(){i.default.integration.disconnect("figma"),t.$store.commit("user/append",{hasFigma:!1}),t.closePanel()}}]))})).catch((function(e){t.loadingError=e&&e.message?e.message:t.$trans("messages.error_loading",{what:"Figma form"}),t.screen=!1}))},onBackClick:function(){Slickplan.helpers.requestCancel(this.$options.name),this.loadedPagesAndFrames=null,this.loadedProjects=null,this.selectedProject=null,this.selectedFile=null},onSubmit:function(){var t=this;this.formSubmit({action:function(){return t.selectedProject&&t.selectedFile?i.default.integration.getFigmaPages(t.selectedProject,t.selectedFile):t.selectedProject?i.default.integration.getFigmaFiles(t.selectedProject):i.default.integration.getFigmaProjects(t.selectedTeamId)},success:function(e){null!=e&&e.pages?(t.loadedPagesAndFrames=e.pages,t.screen="pages"):null!=e&&e.files?(t.loadedFiles=Slickplan.helpers.sortString(e.files,"name","asc"),t.screen="select"):null!=e&&e.projects&&(t.loadedProjects=Slickplan.helpers.sortString(e.projects,"name","asc"),t.screen="select"),null!=e&&e.team_id&&(t.selectedTeamId=e.team_id)}})},openFilesModal:function(){var t=this;this.$modal.show(d.default,{formSubmitData:function(e){return{action:function(){return i.default.integration.getFigmaPages(1,e)},success:function(e){null!=e&&e.pages&&(t.loadedFiles=[],t.loadedProjects=[],t.loadedPagesAndFrames=e.pages,t.screen="pages"),t.$modal.hide(t.$options.name)}}}},{title:"Add a Figma file",width:500,name:this.$options.name})}},watch:{selectedProject:function(t,e){t&&t!==e&&(this.selectedFile=null,this.onSubmit())}},mounted:function(){this.setPanelStandalone(!0),this.loadForm()},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},47392:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(46936),i=n(71995),o=n(59484),a=n(48448),s=n(64480),l=n(65056),c=n(14580),u=n(22164);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"panel-notifications",components:{"panel-loading":a.default,"comments-empty":s.default},mixins:[r.mixinPanelScrollbar,l.mixinProjectStatus],scrollableNavbarHeight:0,data:function(){return{isLoading:!1,items:[]}},computed:{hasUnread:function(){return this.items.some((function(t){return!t.read}))},itemsNew:function(){return this.items.filter((function(t){return!t.seen}))},itemsOld:function(){return this.items.filter((function(t){return t.seen}))},groups:function(){return[{group:"New",items:this.itemsNew},{group:"Older",items:this.itemsOld}].filter((function(t){return t.items.length}))}},methods:{onPanelClose:function(){u.EventBus.$emit("panel-close")},loadItems:function(t){this.items=[],t&&t.notifications&&Array.isArray(t.notifications)&&(this.items=t.notifications.map((function(t){return p(p({},t),{},{body:(0,o.default)(t.body)})}))),t&&"number"==typeof t.new&&this.$store.commit("user/set",{notifications:t.new}),this.$store.dispatch("panel/setButtons",this.hasUnread?[{label:"Mark all as read",onClick:this.markAsRead}]:[])},markAsRead:function(){var t=this;this.isLoading||(this.isLoading=!0,Slickplan.helpers.requestSingle((function(){var e=t.xProjectTypeName?i.default.user.readNotifications(t.xProjectTypeName,t.currentProjectDetails.alias):i.default.user.readNotifications();return e.promise.then(t.loadItems).catch(_noop).finally((function(){t.isLoading=!1})),e}),this.$options.name))},onMouseDown:function(t){if(t&&t.target&&t.target.dataset&&t.target.dataset.slickplanLink){var e=t.target.dataset.slickplanLink.split(":");if("cell-click"===e[0]&&e.length>=3){var n=null;e.length>=3&&(e[2]===c.constants.CELL_DATA_HAS_CONTENT?(n={language:e[3]},e.length>=5&&this.$store.commit("comments/fromGlobalComments",e[4])):e[2]===c.constants.CELL_DATA_HAS_MOCKUPS&&(n={mockupId:e[3]})),u.EventBus.$emit("cell-click",{cellId:e[1],property:e[2],data:n})}else u.EventBus.$emit("link-".concat(e[0]),e.slice(1))}}},mounted:function(){var t=this;this.isLoading=!0,Slickplan.helpers.requestSingle((function(){var e=t.xProjectTypeName?i.default.user.getNotifications(!0,t.xProjectTypeName,t.currentProjectDetails.alias):i.default.user.getNotifications(!0);return e.promise.then(t.loadItems).catch(_noop).finally((function(){t.isLoading=!1})),e}),this.$options.name)}}},62540:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(89148),a=n(58617),s=n(11720),l=n(42456),c=n(46936);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"panel-archetypes-form",components:{"block-wrapper":a.default,"field-wysiwyg":s.default},mixins:[l.formHelpers,c.mixinPanelComponents,c.mixinPanelOverlay,c.mixinPanelScrollbar],fontAwesomeList:[],props:{archetypeId:{type:[Boolean,String],default:null}},data:function(){return{formData:{name:"",icon:"",description:""},isEdit:!1,iconFilter:""}},computed:f(f({},(0,r.mapState)({xArchetypes:function(t){return t.sitemap.archetypes}})),{},{keywordFilter:function(){return!!(this.iconFilter&&this.iconFilter.length>1)&&this.iconFilter.replace(/[^a-z0-9 ]+/gi,"").toLowerCase().trim().split(" ")},canSubmit:function(){return!!this.formData.name},filteredIcons:function(){var t=this;return this.keywordFilter?this.$options.fontAwesomeList.filter((function(e){return t.keywordFilter.some((function(t){return t&&e.includes(t)}))})):this.$options.fontAwesomeList},maxIconsHeight:function(){return this.scrollableHeight-450}}),methods:{onIconSelect:function(t){var e="fa-".concat(t);this.formData.icon=e===this.formData.icon?"":e},onClose:function(){this.panelSetComponent(o.default,null,!0)},onSubmit:function(){var t=this;this.formSubmit({action:function(){return t.isEdit?i.default.project.updateArchetype(t.archetypeId,t.formData):i.default.project.addArchetype(t.formData)},success:function(e){e&&e.id&&Slickplan.websocket.storeDispatch("sitemap/setArchetype",e),t.panelSetComponent(o.default,{recentlyAdded:e.id},!0)},before:this.panelOverlayEnable,after:this.panelOverlayDisable})}},created:function(){this.$options.fontAwesomeList=Object.keys(Slickplan.constants.FONT_AWESOME).map((function(t){return t.replace(/^fa-/,"")}))},mounted:function(){var t=this;if(this.archetypeId){var e=Slickplan.helpers.getValue(this.xArchetypes,this.archetypeId);e&&(this.isEdit=!0,["name","icon","description"].forEach((function(n){t.formData[n]=Slickplan.helpers.getValue(e,n,"")})))}}}},92636:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(71995),i=n(55708),o=n(26156),a=n(27672),s=n(11308),l=n(14580),c=n(42456),u=n(70992),d=n(46936),f=n(23632);const p={name:"panel-archetypes-listing",components:{"svg-file":s.default,"archetypes-item":i.default,"buttons-list":a.default},mixins:[c.formHelpers,u.mixinSitemapCellData,u.mixinSitemapCurrentCell,d.mixinPanelOverlay,d.mixinPanelComponents,d.mixinPanelScrollbar,f.mixinArchetypesListing],props:{recentlyAdded:{type:String,default:null}},data:function(){return{limit:6,isDeleting:null,currentHover:null}},computed:{selectedArchetypeId:function(){return Slickplan.helpers.getValue(this.xCurrentCellData,l.constants.CELL_DATA_KEY_ARCHETYPE)},hasMoreThanLimit:function(){return this.limit>0&&this.customArchetypes.length>this.limit},filteredCustomArchetypes:function(){var t=this;if(this.hasMoreThanLimit){var e=this.customArchetypes.slice();if(this.recentlyAdded){var n=e.findIndex((function(e){return e===t.recentlyAdded}));n>0&&(e=Slickplan.helpers.arrayPermute(e,n,0))}return e.slice(0,this.limit)}return this.customArchetypes},itemStyles:function(){return{width:"".concat(100/Math.round(this.xPanelWidth/120),"%")}}},methods:{getButtonsList:function(t){var e=this;return[{id:"edit",icon:"edit",tooltip:"Edit",onClick:function(){return e.onForm(t)}},{id:"trash",icon:"trash",tooltip:"Delete",onClick:function(){return e.onDelete(t)},status:this.isDeleting===t}]},onForm:function(t){this.panelSetComponent(o.default,{archetypeId:t&&"string"==typeof t?t:null})},onDelete:function(t){var e=this;this.isDeleting=t,this.panelOverlayEnable();var n=r.default.project.deleteArchetypes(t);return n.promise.then((function(e){var n=Slickplan.helpers.getValue(e,"ids");Array.isArray(n)&&[].concat(n).shift()===t&&(Slickplan.websocket.storeDispatch("sitemapCell/updateDataWhere",{key:l.constants.CELL_DATA_KEY_ARCHETYPE,value:t}),Slickplan.websocket.storeDispatch("sitemap/deleteArchetype",t))})).finally((function(){e.isDeleting=!1,e.panelOverlayDisable()})),n}}}},4520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(71995),o=n(58617),a=n(14580),s=n(42456),l=n(46936);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"panel-diagrams-form",components:{"block-wrapper":o.default},mixins:[l.mixinPanelOverlay,l.mixinPanelComponents,s.formHelpers],props:{diagramId:{type:[String,null],default:null}},data:function(){return{formData:{name:"",cell_id:null},isEdit:!1}},computed:d(d(d({},(0,r.mapState)({xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId}})),(0,r.mapGetters)({xGetDiagramName:"diagram/getName"})),{},{canSubmit:function(){return!Slickplan.helpers.isBlank(this.formData.name)}}),methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){return t.isEdit?i.default.sitemap.editDiagram(t.diagramId,t.formData):i.default.sitemap.addDiagram(t.formData)},success:function(e){e&&e.diagram&&Slickplan.websocket.storeCommit("diagram/add",e.diagram),e&&e.cell_data&&Slickplan.websocket.storeDispatch("sitemapCell/updateData",{key:a.constants.CELL_DATA_HAS_DIAGRAMS,value:e.cell_data}),t.panelCloseComponents()},before:this.panelOverlayEnable,after:this.panelOverlayDisable})}},mounted:function(){this.formData.cell_id=this.xCurrentCellAlias,this.diagramId&&(this.isEdit=!0,this.formData.name=this.xGetDiagramName(this.diagramId))}}},38704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(58617),o=n(14580),a=n(42456),s=n(70992),l=n(46936);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"panel-links-form",components:{"block-wrapper":i.default},mixins:[l.mixinPanelOverlay,l.mixinPanelComponents,s.mixinSitemapCellData,s.mixinSitemapCurrentCell,a.formHelpers],props:{linkIndex:{type:[Number,null],default:null}},data:function(){return{links:[],formData:{type:"external",page:null,url:"https://",label:null}}},computed:d(d({},(0,r.mapGetters)({xDropdownCellsList:"sitemapCell/getCellsForDropdown"})),{},{isEdit:function(){return"number"==typeof this.linkIndex&&this.linkIndex>=0},linkTypes:function(){return[{label:"Internal Link",value:"internal"},{label:"External Link",value:"external"}]},canSubmit:function(){var t=this.formData,e=t.type,n=t.url,r=t.page;return"external"===e&&n&&n.split("//").length>1&&n.split("//")[1]||"internal"===e&&r},dropdownCellsList:function(){return this.xDropdownCellsList()}}),methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){return t.cellDataSave(o.constants.CELL_DATA_KEY_LINKS,t.parsedLinks())},success:this.panelCloseComponents,before:this.panelOverlayEnable,after:this.panelOverlayDisable})},parsedLinks:function(){var t="internal"===this.formData.type?["type","page"]:["type","url","label"];t=Slickplan.helpers.objectPick(this.formData,t);var e=this.links.slice(0);return this.isEdit?e[this.linkIndex]&&(e[this.linkIndex]=t):e.push(t),e}},mounted:function(){var t=Slickplan.helpers.getValue(this.xCurrentCellData,o.constants.CELL_DATA_KEY_LINKS);t&&Array.isArray(t)&&(this.links=t,this.isEdit&&t[this.linkIndex]&&Object.assign(this.formData,t[this.linkIndex]))}}},85092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(71995),i=n(58617),o=n(14580),a=n(42456),s=n(46936),l=n(70992);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"panel-sections-create",components:{"block-wrapper":i.default},mixins:[l.mixinSitemapCurrentCell,s.mixinPanelComponents,s.mixinPanelOverlay,a.formHelpers,l.mixinSitemapSectionsList],data:function(){return{copyStyling:!1,formData:{type:"new",source_section_id:null,keys:[],copy_styling_from:null}}},computed:{canSubmit:function(){return!["link","clone"].includes(this.formData.type)||!!this.formData.source_section_id},cloneOptions:function(){return{archetype:"Include page types",url:"Include links",desc:"Include notes",colors:"Include background & text colors",files:"Include design mockups",content:"Clone contents",diagrams:"Include diagrams",sections:"Link child sections"}}},methods:{onSubmit:function(){var t=this,e="link"===this.formData.type;this.formSubmit({action:function(){return e?r.default.sitemapCell.updateData(t.xCurrentCellAlias,o.constants.CELL_DATA_KEY_SUBSECTION,"link:".concat(t.formData.source_section_id)):(t.formData.copy_styling_from=t.copyStyling?Slickplan.helpers.getValue(t.xCurrentCellData,o.constants.CELL_DATA_KEY_SECTION_ID):null,r.default.sitemapCell.createSection(t.xCurrentCellAlias,t.formData))},success:function(n){if(n){var r=[];e||t.$store.dispatch("sitemapSection/add",{id:n.section_id,data:n.section_data}),n.cells&&Object.keys(n.cells).forEach((function(t){r.push(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}(d({},o.constants.CELL_DATA_KEY_ID,t),n.cells[t]))})),Slickplan.websocket.storeDispatch("sitemapCell/updateData",{key:o.constants.CELL_DATA_KEY_SUBSECTION,value:e?"link:".concat(t.formData.source_section_id):n.section_id}),r.length&&(Slickplan.websocket.storeDispatch("sitemapCell/add",r),Slickplan.websocket.storeDispatch("sitemapCell/regroupCells"),e||Slickplan.websocket.storeDispatch("sitemapCell/regroupCells",n.section_id))}t.panelCloseComponents()},before:this.panelOverlayEnable,after:this.panelOverlayDisable})}}}},6428:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(71995),i=n(58617),o=n(42456),a=n(46936),s=n(70992),l=n(14580);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"panel-sections-remove",components:{"block-wrapper":i.default},mixins:[a.mixinPanelComponents,a.mixinPanelOverlay,s.mixinSitemapCurrentCell,o.formHelpers],props:{sectionId:{type:String,required:!0}},data:function(){return{formData:{move:!1}}},methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){return r.default.sitemapCell.removeSection(t.xCurrentCellAlias,t.formData)},success:function(e){if(e){var n=[],r=[];e.cells&&Object.keys(e.cells).forEach((function(t){e.cells[t]?n.push(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}(d({},l.constants.CELL_DATA_KEY_ID,t),e.cells[t])):r.push(t)})),r.length&&Slickplan.websocket.storeDispatch("sitemapCell/delete",r),n.length&&Slickplan.websocket.storeDispatch("sitemapCell/add",n),e.sections&&Object.keys(e.sections).forEach((function(t){Slickplan.websocket.storeDispatch("sitemapCell/updateDataWhere",{key:l.constants.CELL_DATA_KEY_SUBSECTION,value:["link:".concat(t),t]}),Slickplan.websocket.storeDispatch("sitemapSection/remove",t),Slickplan.websocket.storeDispatch("sitemapCell/regroupCells",t)})),(n.length||r.length)&&Slickplan.websocket.storeDispatch("sitemapCell/regroupCells")}t.panelCloseComponents()},before:this.panelOverlayEnable,after:this.panelOverlayDisable})}}}},4700:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(58617),o=n(42456),a=n(14580),s=n(46936),l=n(70992);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"panel-tab-clone",components:{"block-wrapper":i.default},mixins:[s.mixinPanelComponents,l.mixinSitemapCurrentCell,l.mixinSitemapCellClone,o.formHelpers],inject:["onTabClick"],data:function(){return{formData:{type:"all",destination_cell_id:null,to_section:0,keys:[]}}},computed:d(d(d({},(0,r.mapState)({xCellsByParents:function(t){return t.sitemapCell.cellsByParents}})),(0,r.mapGetters)({xGetCellData:"sitemapCell/getData",xDropdownCellsList:"sitemapCell/getCellsForDropdown"})),{},{cloneOptions:function(){return{archetype:"Page Types",url:"Links",desc:"Notes",colors:"Custom colors",files:"Files",mockups:"Design mockups",content:"Contents",diagrams:"Diagrams"}},cellChildsCount:function(){var t;return(null===(t=this.xCellsByParents)||void 0===t||null===(t=t[this.xCurrentCellAlias])||void 0===t?void 0:t.length)||0},cellLabel:function(){return this.xCurrentCellData[a.constants.CELL_DATA_KEY_LABEL]},canSelectType:function(){return this.cellChildsCount&&(!this.destinationCellLevel||this.destinationCellLevel===a.constants.CELL_LEVEL_HOME||this.destinationCellLevel===a.constants.CELL_LEVEL_MAIN||this.formData.to_section)},canSubmit:function(){return this.formData.type&&this.formData.destination_cell_id},destinationCellLevel:function(){return this.formData.destination_cell_id?this.xGetCellData(this.formData.destination_cell_id,a.constants.CELL_DATA_KEY_LEVEL):null},dropdownCellsList:function(){return this.xDropdownCellsList()}}),watch:{canSelectType:function(t){t||(this.formData.type="page")},destinationCellLevel:function(t){t===a.constants.CELL_LEVEL_HOME&&(this.formData.to_section=0)}}}},94688:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(58617),o=n(42456),a=n(14580),s=n(46936),l=n(70992),c=n(22164);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"panel-tab-delete",components:{"block-wrapper":i.default},mixins:[s.mixinPanelOverlay,s.mixinPanelComponents,l.mixinSitemapCurrentCell,l.mixinCellDelete,o.formHelpers],inject:["onTabClick"],computed:f(f({},(0,r.mapGetters)({xGetCellData:"sitemapCell/getData",xGetAllChildCells:"sitemapCell/getAllChilds"})),{},{childs:function(){return this.xGetAllChildCells(this.xCurrentCellAlias)},hasChilds:function(){return this.childs.length},hasExtraData:function(){for(var t=[].concat(this.xCurrentCellAlias,this.childs),e=null,n=0,r=t.length;n<r;n+=1){e=this.xGetCellData(t[n],[a.constants.CELL_DATA_HAS_DIAGRAMS,a.constants.CELL_DATA_HAS_MOCKUPS,a.constants.CELL_DATA_HAS_FILES,a.constants.CELL_DATA_HAS_CONTENT]);var i=Object.keys(e).some((function(t){return Array.isArray(e[t])?e[t].length:"object"===u(e[t])?Object.keys(e[t]).length:e[t]}));if(i)return!0}return!1}}),methods:{onSubmit:function(){var t=this;this.formHelper.isSubmitting=!0;var e=[].concat(this.xCurrentCellAlias);this.panelOverlayEnable(),this.onCellsDelete(e).promise.then((function(t){t&&c.EventBus.$emit("panel-close")})).catch(_noop).finally((function(){t.formHelper.isSubmitting=!1}))}}}},11816:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>_});var r=n(48416),i=n(71995),o=n(64480),a=n(48448),s=n(21424),l=n(46936),c=n(65056),u=n(14580),d=n(22164);n(66404);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||h(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if(t){if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _={name:"panel-tab-feedback",components:{"comments-empty":o.default,"tab-loading":a.default,"guest-form":s.default},mixins:[l.mixinPanelScrollbar,c.mixinProjectStatus],timerId:null,props:{type:{type:String,validator:function(t){return[u.constants.COMMENTS_TYPE_FILE,u.constants.COMMENTS_TYPE_CONTENT_BLOCK,u.constants.COMMENTS_TYPE_DIAGRAM,u.constants.COMMENTS_TYPE_PAGE].includes(t)},default:u.constants.COMMENTS_TYPE_PAGE},id:{type:[String,Number],default:null}},data:function(){return{showBy:"active",sortBy:"timestamp-desc",textareaHeight:40,searchQuery:""}},computed:y(y(y({},(0,r.mapState)({xDiagramMode:function(t){return t.diagram.mode},xMockupPreviewData:function(t){return t.mockup.preview},xSitemapData:function(t){return t.sitemap.details},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xComments:function(t){return t.comments.comments},xCommentsLoading:function(t){return t.comments.isLoading},xCommentEdit:function(t){return t.comments.isEdit},xCommentReply:function(t){return t.comments.isReply},xIsCenterHighlight:function(t){return t.comments.isCenterHighlight},xCommentsType:function(t){return t.comments.type},xCommentsTypeId:function(t){return t.comments.typeId},xProjectType:function(t){return t.project.currentProjectType},xContentPageId:function(t){return t.content.builderPageId},xContentPageData:function(t){return t.content.builderPageData},xContentLanguage:function(t){return t.content.currentLanguage},xCurrentDiagramId:function(t){return t.diagram.currentId}})),(0,r.mapGetters)({xIsGuest:"user/isGuest",xIsGuestIntroduced:"user/isGuestIntroduced"})),{},{canWriteCommentsAlt:function(){return!this.isMockupsType&&!this.isDiagramType&&(!this.isProjectShared||"write"===this.currentProjectMeta.comments)&&this.$root.isAllowedFeature(u.constants.FEATURE_COMMENTS)&&(this.isProjectShared||this.$root.userCan(u.permissionsProject.WRITE_COMMENTS))},isGuestAndIntroductionNeeded:function(){return this.xIsGuest&&!this.xIsGuestIntroduced&&"write"===this.currentProjectMeta.comments},isContentType:function(){return this.xCommentsType===u.constants.COMMENTS_TYPE_CONTENT_BLOCK},isMockupsType:function(){return this.xCommentsType===u.constants.COMMENTS_TYPE_FILE},isSitemapPageType:function(){return this.xCommentsType===u.constants.COMMENTS_TYPE_PAGE},isDiagramType:function(){return this.xCommentsType===u.constants.COMMENTS_TYPE_DIAGRAM},showByFilter:function(){return{active:"Active",resolved:"Resolved"}},sortByFilter:function(){return{"timestamp-desc":"Latest","timestamp-asc":"Oldest","user_id-asc":"User"}},additionalFormData:function(){return this.isContentType||this.isMockupsType||this.isDiagramType?{ref_id:this.xCommentsTypeId}:{}},allComments:function(){var t=this;return this.isMockupsType||this.isDiagramType?this.xComments.filter((function(e){return"resolved"===t.showBy?e.resolved_at:!e.resolved_at})):this.xComments},sortedFilteredComments:function(){var t=this,e=m(this.sortBy.split("-"),2),n=e[0],r=e[1],i=Slickplan.helpers.sortNumeric(this.allComments.filter((function(t){return!t.parent_id})).map((function(e){return y(y({},e),{},{replies:Slickplan.helpers.sortNumeric(t.allComments.filter((function(t){return t.parent_id===e.id})),n,r)})})),n,r),o=Slickplan.helpers.normalizeKeywords(this.searchQuery);return o.length?i.filter((function(t){var e=o.every((function(e){return~Slickplan.helpers.normalizeString(t.comment).indexOf(e)})),n=t.replies.filter((function(t){return o.every((function(e){return~Slickplan.helpers.normalizeString(t.comment).indexOf(e)}))}));return!(!e&&!n.length)&&(t.replies=n,t)})):i},contentPageId:function(){return"".concat(this.xContentPageId,"-").concat(this.xCommentsTypeId,"-").concat(this.xContentLanguage)}}),methods:{scrollToCell:function(){var t=document.getElementById(this.xCurrentCellAlias);t&&t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},loadComments:function(t,e,n){var r=this;this.$store.dispatch("comments/setLoading",!0),Slickplan.helpers.requestSingle((function(){var o,a=(o=i.default.comments)[t].apply(o,p(e));return a.promise.then((function(t){if(r.$store.dispatch("comments/set",{form:r.additionalFormData,comments:t}),r.isDiagramType||r.isMockupsType){var e=r.isDiagramType?r.xDiagramMode:r.xMockupPreviewData.mode;r.$store.commit("diagram/setMode",["comment"]),"comment"===e[0]&&e.length>1&&(r.$store.commit("diagram/setMode",["comment"]),r.$nextTick((function(){d.EventBus.$emit("comment-click",e[1])})))}})).catch(_noop).finally((function(){r.$store.dispatch("comments/setLoading",!1),"function"==typeof n&&n()})),a}),this.$options.name)},loadCellComments:function(){var t=this;return this.xIsCenterHighlight&&this.scrollToCell(),this.loadComments("getByCell",[this.xProjectType.project,this.xCurrentCellAlias],(function(){t.xIsCenterHighlight&&(t.scrollToCell(),t.$store.commit("comments/setHighlight",!1)),t.$store.commit("comments/setModuleId","page-".concat(t.xCurrentCellAlias))}))},loadContentComments:function(){var t=this;return this.loadComments("getByContentBlock",[this.xContentPageId,this.xCommentsTypeId,this.xContentLanguage],(function(){t.$store.commit("comments/setModuleId","content-".concat(t.contentPageId))}))},loadMockupComments:function(){var t=this;return this.loadComments("getByMockup",[this.xCommentsTypeId],(function(){t.$store.commit("comments/setModuleId","mockup-".concat(t.xCommentsTypeId))}))},loadDiagramComments:function(){var t=this;return this.loadComments("getByDiagram",[this.xProjectType.project,this.xCommentsTypeId],(function(){t.$store.commit("comments/setModuleId","diagram-".concat(t.xCommentsTypeId))}))},onSaved:function(){this.$refs.scrollable&&this.$refs.scrollable.scrollToTop()},onCellCommentDataChange:function(){this.isContentType?this.loadContentComments():this.isMockupsType?this.loadMockupComments():this.isDiagramType?this.loadDiagramComments():this.loadCellComments()},throttledOnCellCommentDataChange:function(){clearTimeout(this.$options.timerId),this.$options.timerId=setTimeout(this.onCellCommentDataChange,15)},onUpdate:function(t,e){this.$store.dispatch("comments/setType",t),this.$store.commit("comments/setTypeId",e),this.throttledOnCellCommentDataChange()},onSitemapLoaded:function(){this.onUpdate(u.constants.COMMENTS_TYPE_PAGE,this.xCurrentCellAlias)},onDiagramLoaded:function(t){this.onUpdate(u.constants.COMMENTS_TYPE_DIAGRAM,t)},onMockupLoaded:function(t){this.onUpdate(u.constants.COMMENTS_TYPE_FILE,t)}},watch:{type:{handler:function(t,e){t!==e&&(this.$store.dispatch("comments/setType",t),this.throttledOnCellCommentDataChange())},immediate:!0},id:{handler:function(t,e){t!==e&&(this.$store.commit("comments/setTypeId",t),this.throttledOnCellCommentDataChange())},immediate:!0},additionalFormData:{handler:function(t){this.$store.dispatch("comments/setForm",t)},immediate:!0,deep:!0},xComments:function(t){0!==t.length&&(this.isSitemapPageType?this.$store.commit("comments/setCounter",{type:this.xCommentsType,id:this.xCurrentCellAlias,total:t.length}):this.isMockupsType||this.isDiagramType?this.$store.commit("comments/setCounter",{type:this.xCommentsType,id:this.xCommentsTypeId,total:t.filter((function(t){return!t.resolved_at})).length}):this.isContentType&&this.$store.commit("comments/setCounter",{type:this.xCommentsType,id:this.contentPageId,total:t.length}))}},beforeMount:function(){(this.isMockupsType||this.isDiagramType)&&(this.$options.scrollableTitlebarHeight=0,this.$options.scrollableNavbarHeight=44,this.$options.scrollableMargin=5)},mounted:function(){var t=this;d.EventBus.$on("sitemap-loaded",this.onSitemapLoaded),d.EventBus.$on("diagram-loaded",this.onDiagramLoaded),d.EventBus.$on("mockup-loaded",this.onMockupLoaded);var e=[];this.isContentType?e.push("xCommentsType","contentPageId"):this.isMockupsType||this.isDiagramType?e.push("xCommentsType","xCommentsTypeId"):e.push("xCurrentCellAlias"),e.forEach((function(e){return t.$watch(e,t.throttledOnCellCommentDataChange)})),this.throttledOnCellCommentDataChange()},beforeDestroy:function(){clearTimeout(this.$options.timerId),Slickplan.helpers.requestCancel(this.$options.name),this.$store.commit("comments/setModuleId"),this.$store.commit("diagram/setMode","view"),this.$store.commit("mockup/setPreviewMode","view"),d.EventBus.$off("sitemap-loaded",this.onSitemapLoaded),d.EventBus.$off("diagram-loaded",this.onDiagramLoaded),d.EventBus.$off("mockup-loaded",this.onMockupLoaded)}}},23864:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(48416),i=n(71995),o=n(95384),a=n(29122),s=n(48448),l=n(46656),c=n(46936),u=n(65056),d=n(14580),f=n(24832),p=n(22164);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){var r;return r=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==m(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y={name:"panel-tab-files",components:{"files-empty":o.default,"files-listing":a.default,"tab-loading":s.default},mixins:[c.mixinPanelComponents,c.mixinPanelScrollbar,u.mixinProjectStatus],provide:function(){return{onUploadSelect:this.onUploadSelect,onAddFromLibrary:this.onAddFromLibrary}},computed:v({},(0,r.mapState)({xFilesLoaded:function(t){return t.file.loaded},xFiles:function(t){return t.file.files},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId}})),methods:v(v({},(0,r.mapActions)({xSetPanelCurrentTab:"panel/setCurrentTab"})),{},{onUploadSelect:function(){var t=this;this.isProjectEditable&&this.$modal.show(l.default,{enableLibrary:!0,cancelLabel:"Close",submitLabel:"Save",onSubmit:function(e){return t.assignFilesToCell(e.map((function(t){return t.alias})))},onLibrary:function(){return t.onAddFromLibrary(!0)}},{title:"Upload files",width:770,height:537})},onAddFromLibrary:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$store.dispatch("panel/set",{id:"library",visibility:!0,title:"File library",standalone:!0,onClose:function(){return t.libraryPanelClose(e)},tabs:[{id:"library",component:f.default,props:{selectable:"all",cancelButton:function(){return t.libraryPanelClose(e)},onSubmit:function(e){return t.assignFilesToCell(e,!0)}}}]})},libraryPanelClose:function(t){this.openCellFiles(),!0===t&&this.$nextTick(this.onUploadSelect)},assignFilesToCell:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$store.dispatch("panel/setOnClose",null);var r=i.default.file.assignFilesToCell(this.xCurrentCellAlias,t);return r.promise.then((function(t){t&&Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:e.xCurrentCellAlias,key:d.constants.CELL_DATA_HAS_FILES,value:!(!t.files||!t.files.length)&&t.files}),n&&e.openCellFiles(),e.loadCellFiles()})).catch(_noop),r},openCellFiles:function(){p.EventBus.$emit("cell-click",{cellId:this.xCurrentCellAlias,property:d.constants.CELL_DATA_HAS_FILES})},loadCellFiles:function(){var t=this;this.$store.commit("file/reset"),Slickplan.helpers.requestSingle((function(){var e=i.default.file.getCellFiles(t.xCurrentCellAlias);return e.promise.then((function(e){t.$store.commit("file/load",e)})).catch((function(e){e&&t.$store.commit("file/load",[])})),e}),this.$options.name)}}),watch:{xCurrentCellAlias:function(){this.loadCellFiles()}},beforeMount:function(){this.loadCellFiles()},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},73320:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"files-empty",components:{SvgFile:n(11308).default},inject:["onUploadSelect","onAddFromLibrary"],props:{editable:{type:Boolean,default:!1}}}},66004:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(27672),o=n(42456),a=n(63199);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"panel-tab-files-listing-grid",components:{"buttons-list":i.default},mixins:[o.fileHelpers,a.mixinFileLibraryMethods],props:{file:{type:Object,required:!0},filenameClass:{type:String,default:"force-wrap font-size-11 line-height-144 text-center filename"},filesizeClass:{type:String,default:"font-size-12 text-gray-darkest text-center filesize"},buttonsClass:{type:String,default:""},checkboxSize:{type:String,default:""}},data:function(){return{isHovering:!1,isChecked:!1}},computed:c(c({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected}})),{},{tooltipTitle:function(){return this.file.filename+(this.file.date?" (".concat(this.file.date,")"):"")}}),methods:{onSelect:function(){this.isProjectEditable&&this.$store.commit("actionBar/selectToggle",this.file.alias)},onIdsUpdate:function(){var t=this.xBarSelectedIds.includes(this.file.alias);this.isChecked!==t&&(this.isChecked=t)}},watch:{xBarSelectedIds:function(){this.onIdsUpdate()}},mounted:function(){this.xBarSelectedIds.length&&this.onIdsUpdate()}}},21192:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(42456),o=n(63199),a=n(65056),s=n(30644),l=n(14580);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"panel-tab-files-listing-list",mixins:[i.fileHelpers,o.mixinFileLibraryMethods,a.mixinProjectStatus,s.mixinMockupClick],props:{file:{type:Object,required:!0},isMockup:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checkboxSize:{type:String,default:""},fileSize:{type:Boolean,default:!0}},data:function(){return{isHovering:!1}},computed:d(d({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId}})),{},{canDelete:function(){return this.isProjectEditable&&this.$root.userCan(l.permissionsProject.MANAGE_MOCKUPS)},canBeChecked:function(){return this.checkable&&this.isProjectEditable},isChecked:function(){return this.xBarSelectedIds&&this.xBarSelectedIds.includes(this.file.alias)},labelWidth:function(){var t=0;return this.file.url_download&&++t,this.file.url_preview&&++t,this.canDelete&&++t,{width:t?"calc(100% - ".concat(t," * 28px)"):"100%"}},fileName:function(){return this.file.filename||this.file.name},fileSizeValue:function(){return this.humanFileSize(this.file.filesize||this.file.size)||""},tooltipTitle:function(){return"".concat(this.fileName," (").concat(this.file.date,")")}}),methods:{onClick:function(){this.canBeChecked?this.toggleSelect():this.onClickPreview()},onClickPreview:function(){this.isMockup?this.onClickMockup(this.xCurrentCellAlias,this.file,"view",!0):this.onPreview(this.file)},onDeleteRow:function(){return this.onDelete(this.isMockup?"mockup":"file",this.file,!0)},toggleSelect:function(){this.$store.commit("actionBar/selectToggle",this.file.alias)}}}},42928:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(18088),o=n(95384),a=n(40572),s=n(32968),l=n(46936),c=n(65056),u=n(63199);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"panel-tab-files-listing",components:{"files-empty":o.default,grid:a.default,list:s.default,"buttons-view":i.default},mixins:[l.mixinPanelScrollbar,c.mixinProjectStatus,u.mixinFileLibraryMethods],inject:["onUploadSelect"],computed:p(p(p({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected},xFiles:function(t){return t.file.files},xCellProperties:function(t){return t.file.cellProperties}})),(0,r.mapGetters)({xPanelWidth:"panel/getWidth"})),{},{viewType:{get:function(){return this.xCellProperties.viewType},set:function(t){this.$store.commit("file/setCellProperties",{viewType:t})}},displayTypes:{get:function(){return this.xCellProperties.displayTypes},set:function(t){this.$store.commit("file/setCellProperties",{displayTypes:t})}},sortBy:{get:function(){return this.xCellProperties.sortBy},set:function(t){this.$store.commit("file/setCellProperties",{sortBy:t})}},filtersType:function(){return{all:"All",image:"Images",video:"Videos",document:"Documents"}},filtersSort:function(){return{date_timestamp:"Date",filename:"Name",filesize:"Size"}},filteredFiles:function(){var t=[].concat(this.xFiles);if("all"!==this.displayTypes){var e="document"===this.displayTypes?"file":this.displayTypes;t=t.filter((function(t){return t.type===e}))}return Slickplan.helpers["filename"===this.sortBy?"sortString":"sortNumeric"](t,this.sortBy,"asc"),t},scrollableOffset:function(){return this.$options.scrollableNavbarHeight+5},columnClass:function(){return"grid"===this.viewType?"g-col-grid g-col-4 g-col-bleed-half":""},columnStyle:function(){return"grid"===this.viewType?{width:"".concat(100/Math.round(this.xPanelWidth/120),"%")}:""},buttonsClass:function(){return"grid"===this.viewType?"font-size-11":""},actionBarLinks:function(){var t=this;if(this.isProjectEditable)return{icon:"trash",label:"Delete",onClick:function(){return t.onDelete("file",t.xBarSelectedIds,!0)}}},actionBarButtons:function(){var t=this;return{icon:"download",label:"Download",onClick:function(){return t.onDownload(t.xBarSelectedIds)}}}}),watch:{xBarSelectedIds:function(t,e){var n=this;t.length&&!e.length?this.$store.commit("actionBar/set",{isVisible:!0,buttons:this.actionBarButtons,links:this.actionBarLinks,selectAll:function(){return n.filteredFiles.map((function(t){return t.alias}))}}):!t.length&&e.length&&this.$store.commit("actionBar/reset")}}}},99584:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(25142),i=n(52012),o=n(60676),a=n(3280),s=n(69380),l=n(68876),c=n(52652),u=n(46936),d=n(65056),f=n(70992),p=n(14580);const m={name:"panel-tab-info",components:{"block-label":r.default,"block-colors":i.default,"block-links":o.default,"block-note":a.default,"block-options":s.default,"preview-archetype":l.default,"preview-diagrams":c.default},mixins:[u.mixinPanelScrollbar,d.mixinProjectStatus,f.mixinSitemapCurrentCell],computed:{hasSection:function(){return this.xCurrentCellData[p.constants.CELL_DATA_KEY_SUBSECTION]},canEdit:function(){return this.$root.userCan(p.permissionsProject.MODIFY_STRUCTURE)},canEditNote:function(){return this.isProjectEditable&&this.canEdit&&this.$root.isAllowedFeature(p.constants.FEATURE_CELL_NOTE)},canEditLinks:function(){return this.isProjectEditable&&this.canEdit&&this.$root.isAllowedFeature(p.constants.FEATURE_CELL_LINK)}}}},68516:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(36344),i=n(46936),o=n(14580);const a={name:"panel-tab-info-colors",components:{"color-chip":r.default},mixins:[i.mixinPanelHighlight],panelHighlightId:"colors",computed:{panelHighlightActive:function(){return this.xPanelHighlightId&&[this.$options.panelHighlightId,o.constants.CELL_DATA_KEY_TEXT_COLOR,o.constants.CELL_DATA_KEY_BG_COLOR].includes(this.xPanelHighlightId)}}}},2420:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(38856),i=n(89148),o=n(23632),a=n(46936),s=n(70992),l=n(14580);const c={name:"panel-tab-info-archetype",components:{"icon-archetype":r.default},mixins:[a.mixinPanelComponents,a.mixinPanelOverlay,s.mixinSitemapCellData,o.mixinCurrentCellArchetype],data:function(){return{isUnassigning:!1}},computed:{canEdit:function(){return this.$root.userCan(l.permissionsProject.MODIFY_STRUCTURE)}},methods:{doIfAllowed:function(t){this.$root.ifAllowedFeatureThen(l.constants.FEATURE_CELL_PAGE_TYPE,t)},onAdd:function(){var t=this;this.doIfAllowed((function(){return t.panelSetComponent(i.default)}))},onUnassign:function(){var t=this;this.doIfAllowed((function(){t.isUnassigning=!0,t.panelOverlayEnable(),t.cellDataDelete(l.constants.CELL_DATA_KEY_ARCHETYPE).promise.finally((function(){t.isUnassigning=!1,t.panelOverlayDisable()}))}))}}}},52484:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(14580),o=n(22164);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"panel-tab-info-content",computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId}})),methods:{onAdd:function(){var t=this;this.$root.ifAllowedFeatureThen(i.constants.FEATURE_CONTENT,(function(){t.$router.push({name:"sitemap-content-page-builder",params:{sitemap:Slickplan.globalVars.sitemapAlias,cell:t.xCurrentCellAlias}}).catch(_noop),o.EventBus.$emit("panel-close")}))}}}},69784:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(2376),i=n.n(r),o=n(71995),a=n(70944),s=n(14580),l=n(46936),c=n(70992);const u={name:"panel-tab-info-diagrams",mixins:[l.mixinPanelComponents,l.mixinPanelOverlay,c.mixinCurrentCellDiagrams,c.mixinCurrentCellDiagramsMethods,c.mixinSitemapCurrentCell],computed:{canModify:function(){return this.$root.userCan(s.permissionsProject.MANAGE_DIAGRAMS)}},methods:{doIfAllowed:function(t){this.$root.ifAllowedFeatureThen(s.constants.FEATURE_CELL_DIAGRAMS,t)},onForm:function(t){var e=this;this.doIfAllowed((function(){return e.panelSetComponent(a.default,{diagramId:"string"==typeof t?t:null})}))},onRemove:function(t){var e=this;this.doIfAllowed((function(){e.$modal.showConfirm({htmlText:e.$trans("messages.confirm_deletion_type",{name:t.name,type:"diagram"})},(function(){var e=o.default.sitemap.deleteDiagrams(t.id);return e.promise.then((function(t){t&&(t.cells&&i()(t.cells,(function(t,e){Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:e,key:s.constants.CELL_DATA_HAS_DIAGRAMS,value:!(!t||!t.length)&&t})})),t.ids&&Slickplan.websocket.storeCommit("diagram/remove",t.ids))})).catch(_noop),e}))}))}}}},23820:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(32968),a=n(46656),s=n(46936),l=n(70992),c=n(14580);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"panel-tab-info-mockups",components:{"listing-list":o.default},mixins:[s.mixinPanelComponents,s.mixinPanelOverlay,l.mixinSitemapCurrentCell],data:function(){return{isExpanded:!1}},computed:f(f(f({},(0,r.mapState)({xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xFilesLoaded:function(t){return t.file.loaded},xFiles:function(t){return t.file.files}})),(0,r.mapGetters)({xGetCellData:"sitemapCell/getData"})),{},{canUpload:function(){return this.$root.userCan(c.permissionsProject.MANAGE_MOCKUPS)},hasDesignMockups:function(){return this.xGetCellData(this.xCurrentCellAlias,c.constants.CELL_DATA_HAS_MOCKUPS)}}),methods:{onAdd:function(){var t=this;this.$modal.show(a.default,{acceptedFiles:c.mockupsFormats,cancelLabel:"Close",submitLabel:"Save",onSubmit:function(e){var n=i.default.file.assignFilesAsMockups(e.map((function(e){return{file_id:e.alias,cell_id:t.xCurrentCellAlias}})));return n.promise.then((function(e){var n=[].concat(t.hasDesignMockups||[]).concat(e.map((function(t){return t.file_id})));t.$store.dispatch("sitemapCell/updateData",{cell_id:t.xCurrentCellAlias,key:c.constants.CELL_DATA_HAS_MOCKUPS,value:!!n.length&&n}),t.isExpanded?t.loadCellFiles():t.isExpanded=!0})).catch(_noop),n}},{title:"Upload mockups",width:770,height:537})},loadCellFiles:function(){var t=this;this.$store.commit("file/reset"),Slickplan.helpers.requestSingle((function(){var e=i.default.file.getCellMockups(t.xCurrentCellAlias);return e.promise.then((function(e){t.$store.commit("file/load",e)})).catch(_noop),e}),this.$options.name)}},watch:{isExpanded:function(t,e){t&&!e&&this.loadCellFiles()},xCurrentCellAlias:function(){this.isExpanded=!1,this.loadCellFiles()}},mounted:function(){this.hasDesignMockups&&(this.isExpanded=!0)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},27536:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(71995),o=n(16200),a=n(58692),s=n(14580),l=n(70992),c=n(46936),u=n(22164);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"panel-tab-info-section",mixins:[c.mixinPanelComponents,c.mixinPanelOverlay,l.mixinSitemapCellData,l.mixinSitemapCurrentCell],data:function(){return{isRemoving:!1}},computed:p(p({},(0,r.mapGetters)({xGetSectionName:"sitemapSection/getName"})),{},{section:function(){return Slickplan.helpers.getValue(this.xCurrentCellData,s.constants.CELL_DATA_KEY_SUBSECTION)},sectionId:function(){return this.section?[].concat(this.section.split(":")).pop():null},sectionName:function(){return this.sectionId?this.xGetSectionName(this.sectionId):null},isLinked:function(){return!!this.section&&"link"===this.section.split(":")[0]}}),methods:{doIfAllowed:function(t){this.$root.ifAllowedFeatureThen(s.constants.FEATURE_SECTIONS,t)},onClick:function(){u.EventBus.$emit("cell-click",{cellId:this.xCurrentCellAlias,property:s.constants.CELL_DATA_KEY_SUBSECTION,data:this.sectionId}),u.EventBus.$emit("panel-close")},onAdd:function(){var t=this;this.doIfAllowed((function(){return t.panelSetComponent(o.default)}))},onRemove:function(){var t=this;this.doIfAllowed((function(){t.isLinked?(t.isRemoving=!0,t.panelOverlayEnable(),i.default.sitemapCell.removeSection(t.xCurrentCellAlias).promise.then((function(){Slickplan.websocket.storeDispatch("sitemapCell/updateData",{key:s.constants.CELL_DATA_KEY_SUBSECTION,value:null})})).catch(_noop).finally((function(){t.isRemoving=!1,t.panelOverlayDisable()}))):t.panelSetComponent(a.default,{sectionId:t.sectionId})}))}}}},34344:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(37662),o=n(14580),a=n(70992),s=n(46936);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"panel-tab-info-workflow",mixins:[s.mixinPanelComponents,s.mixinPanelOverlay,a.mixinSitemapCurrentCell,a.mixinSitemapCellData],data:function(){return{isRemoving:!1,isAssigning:!1,isSwitchingCells:!1,selectedStatus:o.constants.CONTENT_STATUS_UNASSIGNED,limit:5}},computed:u(u(u({},(0,r.mapState)({xSitemapSiteSettings:function(t){return t.sitemap.siteSettings},xContentLanguage:function(t){return t.content.currentLanguage}})),(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses"})),{},{filteredStatuses:function(){if(this.isMoreThanLimit){var t=this.xContentStatuses.slice(0,this.limit).map((function(t){return t.alias}));return t.includes(this.currentCellStatus)||(t[t.length-1]=this.currentCellStatus),this.xContentStatuses.filter((function(e){return t.includes(e.alias)}))}return this.xContentStatuses},currentCellStatus:function(){var t=Slickplan.helpers.getValue(this.xCurrentCellData,[o.constants.CELL_DATA_KEY_CONTENT_STATUS,this.xContentLanguage]);return t&&this.xContentStatuses.find((function(e){return e.alias===t}))?t:o.constants.CONTENT_STATUS_UNASSIGNED},isMoreThanLimit:function(){return this.xContentStatuses.length>this.limit+1}}),methods:{doIfAllowed:function(t){this.$root.ifAllowedFeatureThen(o.constants.FEATURE_CONTENT,t)},onForm:function(t){var e=this;this.doIfAllowed((function(){return e.panelSetComponent(i.default,{statusId:t.alias})}))},onChange:function(t){var e=this;this.doIfAllowed((function(){e.isAssigning=t,e.panelOverlayEnable(),e.cellDataUpdate(o.constants.CELL_DATA_KEY_CONTENT_STATUS,!(!t||t===o.constants.CONTENT_STATUS_UNASSIGNED)&&t).promise.finally((function(){e.isAssigning=!1,e.panelOverlayDisable()}))}))}},watch:{selectedStatus:function(t){t===this.currentCellStatus||this.isRemoving||this.onChange(t)},xCurrentCellAlias:function(){this.selectedStatus=this.currentCellStatus}},mounted:function(){this.selectedStatus=this.currentCellStatus}}},4460:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(10916),o=n(14580),a=n(70992),s=n(65056);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"panel-tab-info-label",components:{"field-textarea":i.default},mixins:[a.mixinSitemapCellLabel,s.mixinProjectStatus],data:function(){return{cellId:""}},computed:u(u({},(0,r.mapState)({xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xCurrentCellLabel:function(t){return Slickplan.helpers.getValue(t.sitemapCell[t.sitemapCell.currentCellId],o.constants.CELL_DATA_KEY_LABEL,"")}})),{},{storeData:function(){return{cell_id:this.cellId,key:o.constants.CELL_DATA_KEY_LABEL}}}),methods:{reset:function(t,e){e&&(this.cellId=e),this.$options.labelTextBackup=null!=t?t:"",this.labelText=null!=t?t:""},onChange:function(){var t;this.$store.dispatch("sitemapCell/updateData",u(u({},this.storeData),{},{value:null!==(t=this.labelText)&&void 0!==t?t:""}))},onSubmit:function(){var t,e=this,n=this.$options.labelTextBackup;""===(null!==(t=this.labelText)&&void 0!==t?t:"").trim()?(this.labelText=n,this.onChange()):this.labelText!==n&&(this.$store.dispatch("sitemapCell/updateData",u(u({},this.storeData),{},{value:this.labelText})),this.reset(this.labelText),this.saveLabelText(this.cellId,this.labelText).promise.catch((function(t){t&&e.$store.dispatch("sitemapCell/updateData",u(u({},e.storeData),{},{value:n}))})))}},watch:{xCurrentCellAlias:function(t){this.cellId&&this.cellId!==t&&this.onSubmit(),this.reset(this.xCurrentCellLabel,t)}},mounted:function(){this.reset(this.xCurrentCellLabel,this.xCurrentCellAlias)}}},4808:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(7300),o=n(14580),a=n(70992),s=n(46936);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"panel-tab-info-links",mixins:[a.mixinSitemapCellData,a.mixinSitemapCurrentCell,s.mixinPanelOverlay,s.mixinPanelComponents,s.mixinPanelHighlight],props:{allowEdit:{type:Boolean,default:!0}},panelHighlightId:o.constants.CELL_DATA_KEY_LINKS,data:function(){return{uid:1,isDeleting:!1}},computed:u(u(u({},(0,r.mapState)({xCurrentCellLinks:function(t){var e=t.sitemapCell[t.sitemapCell.currentCellId];return e?e[o.constants.CELL_DATA_KEY_LINKS]:void 0}})),(0,r.mapGetters)({xGetCellData:"sitemapCell/getData"})),{},{links:function(){var t=this;return Array.isArray(this.xCurrentCellLinks)?this.xCurrentCellLinks.map((function(e){return u(u({},e),{},{id:t.uid++,label:t.getLinkLabel(e)})})):[]},styleAttr:function(){return{width:"calc(100% - ".concat(this.allowEdit?84:28,"px)")}}}),methods:{onForm:function(t,e){this.panelSetComponent(i.default,{linkIndex:e})},onDelete:function(t,e){var n=this;if(!this.isDeleting){this.isDeleting=e,this.panelOverlayEnable();var r=[].concat(this.links);r.splice(e,1),this.cellDataUpdate(o.constants.CELL_DATA_KEY_LINKS,!!r.length&&r).promise.finally((function(){n.isDeleting=!1,n.panelOverlayDisable()}))}},onClick:function(t){var e=t.page;this.$store.dispatch("sitemapHelpers/highlightCell",e)},getLinkLabel:function(t){for(var e="internal"===t.type?[this.xGetCellData(t.page,o.constants.CELL_DATA_KEY_LABEL),t.label,t.page]:[t.label,t.url],n=0,r=e.length;n<r;++n)if(!Slickplan.helpers.isBlank(e[n]))return e[n];return""}}}},32470:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(11720),o=n(46936),a=n(70992),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"panel-tab-info-note",components:{FieldWysiwyg:i.default},mixins:[o.mixinPanelHighlight,a.mixinSitemapCellData],props:{allowEdit:{type:Boolean,default:!0}},noteTimerId:null,panelHighlightId:s.constants.CELL_DATA_KEY_NOTE,currentValue:{},lastSavedValue:{},currentCellId:"",data:function(){return{initialValue:"",textareaHeight:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xCurrentCellNote:function(t){return Slickplan.helpers.getValue(t.sitemapCell[t.sitemapCell.currentCellId],s.constants.CELL_DATA_KEY_NOTE,"")}})),methods:{onContentChange:function(t){this.$options.currentCellId=this.xCurrentCellAlias,this.$options.currentValue[this.$options.currentCellId]=t,clearTimeout(this.$options.noteTimerId),this.$options.noteTimerId=setTimeout(this.saveCellNote,5e3)},onContentBlur:function(){clearTimeout(this.$options.noteTimerId),this.saveCellNote()},saveCellNote:function(){var t=this,e=this.$options.currentCellId,n=this.$options.currentValue[e];this.$options.lastSavedValue[e]!==n&&Slickplan.helpers.requestSingle((function(){return t.$options.lastSavedValue[e]=n,t.cellDataUpdate(s.constants.CELL_DATA_KEY_NOTE,n,null,e)}),"".concat(this.$options.name,"-").concat(e))},init:function(){this.$options.currentCellId=this.xCurrentCellAlias,this.initialValue=this.xCurrentCellNote,this.$options.currentValue[this.$options.currentCellId]=this.initialValue,this.$options.lastSavedValue[this.$options.currentCellId]=this.initialValue}},watch:{xCurrentCellAlias:function(){this.onContentBlur(),this.init()}},mounted:function(){this.$options.currentValue={},this.$options.lastSavedValue={},this.init()},beforeDestroy:function(){this.onContentBlur()}}},73664:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(65876),i=n(91308),o=n(31540),a=n(66324),s=n(78856),l=n(13932),c=n(14580),u=n(46936),d=n(65056);const f={name:"panel-tab-info-options",components:{"item-archetype":r.default,"item-content":o.default,"item-diagrams":i.default,"item-section":a.default,"item-mockups":l.default,"item-workflow":s.default},mixins:[d.mixinProjectStatus,u.mixinPanelHighlight],panelHighlightId:"options",computed:{canEditStructure:function(){return this.$root.userCan(c.permissionsProject.MODIFY_STRUCTURE)},canModifyContent:function(){return this.$root.userCan(c.permissionsProject.MODIFY_ASSIGNED_CONTENT_PAGES)},panelHighlightActive:function(){return this.xPanelHighlightId&&[this.$options.panelHighlightId,c.constants.CELL_DATA_KEY_ARCHETYPE,c.constants.CELL_DATA_HAS_DIAGRAMS,c.constants.CELL_DATA_KEY_SUBSECTION,c.constants.CELL_DATA_KEY_CONTENT_STATUS].includes(this.xPanelHighlightId)}}}},95776:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(38856),i=n(23632),o=n(46936),a=n(14580);const s={name:"panel-tab-info-archetype-preview",components:{"icon-archetype":r.default},mixins:[o.mixinPanelHighlight,i.mixinCurrentCellArchetype],panelHighlightId:a.constants.CELL_DATA_KEY_ARCHETYPE}},44080:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(14580),i=n(70992),o=n(46936);const a={name:"panel-tab-info-diagrams-preview",mixins:[i.mixinCurrentCellDiagrams,o.mixinPanelHighlight],panelHighlightId:r.constants.CELL_DATA_HAS_DIAGRAMS}},23188:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"panel-tab-metrics",components:{metrics:n(82104).default}}},23472:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(71995),o=n(58617),a=n(13828),s=n(42456),l=n(46936);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"panel-workflow-form",components:{"field-colorpicker":a.default,"block-wrapper":o.default},mixins:[l.mixinPanelComponents,l.mixinPanelOverlay,s.formHelpers],props:{statusId:{type:[Boolean,String],default:null}},data:function(){return{isEdit:!1,formData:{name:"",readonly:!1,color:Slickplan.constants.DEFAULT_SITE_COLOR},validHexColor:Slickplan.constants.DEFAULT_SITE_COLOR}},computed:d(d({},(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses"})),{},{canSubmit:function(){return!Slickplan.helpers.isBlank(this.formData.name)}}),methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){return t.isEdit?i.default.sitemap.updateContentStatus(t.statusId,t.formData):i.default.sitemap.addContentStatus(t.formData)},success:function(e){e&&e.status&&Slickplan.websocket.storeDispatch("sitemap/setContentStatus",e.status),t.panelCloseComponents()},before:this.panelOverlayEnable,after:this.panelOverlayDisable})}},watch:{"formData.color":function(t){Slickplan.helpers.isHex(t,!0)&&(this.validHexColor=t)}},mounted:function(){var t=this;if(this.statusId){var e=this.xContentStatuses.find((function(e){return e.alias===t.statusId}));e&&(this.isEdit=!0,this.formData.name=Slickplan.helpers.getValue(e,"name",this.statusId),this.formData.color=Slickplan.helpers.getValue(e,"color",Slickplan.constants.DEFAULT_SITE_COLOR),this.formData.readonly=Boolean(e.readonly))}}}},71136:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"panel-shortcuts",mixins:[n(46936).mixinPanelScrollbar],computed:a(a({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType}})),{},{isDiagram:function(){return"diagram"===this.xProjectType.project||"cell"===this.xProjectType.diagram},isMacOs:function(){return/(mac|iphone|ipod|ipad|osx)/i.test(navigator.userAgentData?navigator.userAgentData.platform:navigator.platform)},ctrlKey:function(){return this.isMacOs?"nc-command":"CTRL"},altKey:function(){return this.isMacOs?"nc-mac-option":"ALT"},shortcuts:function(){var t=[{label:"Zoom in",keys:[this.ctrlKey,"nc-plus"]},{label:"Zoom out",keys:[this.ctrlKey,"nc-minus"]},{label:"Undo",keys:[this.ctrlKey,"Z"]},{label:"Redo",keys:[this.ctrlKey,"Y"]}];return t=this.isDiagram?t.concat([{label:"Select multiple items",keys:["SHIFT","CLICK"]},{label:"Delete selected items",keys:["DELETE"]},{label:"Move selected object in a magnetized group",keys:["SHIFT","DRAG"]},{label:"Bring to front",keys:["SHIFT","]"]},{label:"Bring forward",keys:[this.ctrlKey,"]"]},{label:"Send backward",keys:[this.ctrlKey,"["]},{label:"Send to back",keys:["SHIFT","["]}]):t.concat([{label:"Collapse pages",keys:[this.ctrlKey,"O"]},{label:"Expand pages",keys:[this.ctrlKey,"S"]},{label:"New page (level 1)",keys:[this.ctrlKey,"E"]},{label:"New page (same level)",keys:["SHIFT","ENTER"]},{label:"New child page",keys:[this.ctrlKey,"ENTER"]},{label:"Clone single page",keys:[this.altKey,"DRAG"]},{label:"Clone all pages",keys:[this.ctrlKey,"DRAG"]}]),t.push({label:"Escape",keys:["ESC"]}),t}})}},8868:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(40216),a=n(14580),s=n(47504),l=n(70992),c=n(52892);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"panel-styles-color-chip",mixins:[l.mixinSitemapCurrentCell,l.mixinSitemapCellData],props:{type:{type:String,required:!0,validator:function(t){return"string"==typeof s.colorLabels[t]}},requiredFeature:{type:String,default:null}},data:function(){return{currentColor:null,isSelected:!1}},computed:f(f(f({},(0,r.mapState)({xDefaultSectionData:function(t){return t.sitemapSection.defaultData}})),(0,r.mapGetters)({xGetCellColors:"sitemapCell/getColors",xGetSectionColors:"colors/getSectionColors"})),{},{currentSectionColors:function(){return this.xGetSectionColors()},classes:function(){return["color-preview","cursor-pointer",this.isSelected?"selected":null]},defaultColor:function(){return this.isCellColor&&this.currentSectionColors?this.currentSectionColors.failover[(0,s.attributeKey)(this.type)]:this.xDefaultSectionData[this.type]},color:function(){var t=(0,s.attributeKey)(this.type);if(this.isCellColor){var e=this.xGetCellColors(this.xCurrentCellAlias);return e&&e[t]?e[t]:this.defaultColor}return this.currentSectionColors?this.currentSectionColors.failover[t]:null},label:function(){return s.colorLabels[this.type]},isCellColor:function(){return this.type===a.constants.CELL_DATA_KEY_BG_COLOR||this.type===a.constants.CELL_DATA_KEY_TEXT_COLOR}}),methods:f(f({},(0,r.mapActions)({xSetSitemapTempColor:"colors/setTempColor",xRemoveSitemapTempColor:"colors/removeTempColor"})),{},{onTryClick:function(t){var e=this;this.requiredFeature?this.$root.ifAllowedFeatureThen(this.requiredFeature,(function(){return e.onClick(t)})):this.onClick(t)},onClick:function(t){var e=this;if(this.$listeners.click)return this.$listeners.click(t);var n=[{id:"save",className:["-primary","-smaller","float-right"],label:"Save",onClick:function(){(0,c.saveRecentColors)(),e.onSave()}}];this.color!==this.defaultColor&&n.push({id:"cancel",className:["-plain","-smaller","float-right"],label:"Clear",onClick:function(){return e.currentColor=null,e.onSave()}}),this.isSelected=!0,this.$popover.show({component:o.default,props:{title:this.label,levels:!1,deletable:!1,colors:[{id:"color",color:this.color,defaultColor:this.color}]},options:{width:190,height:296},position:{of:t.target},events:{change:this.onChange,reset:this.onChange,cancel:this.reset},buttons:n})},onChange:function(t){var e=(0,s.attributeKey)(this.type);this.currentColor=("object"===u(t)?t.color:t)||this.defaultColor,this.isCellColor?this.xSetSitemapTempColor({type:"cells",id:this.xCurrentCellAlias,key:e,color:this.currentColor}):this.xSetSitemapTempColor({type:"default",key:e,color:this.currentColor})},onSave:function(){var t,e=this;return this.isCellColor?t=this.cellDataUpdate(this.type,!(!this.currentColor||this.defaultColor===this.currentColor)&&this.currentColor):(t=i.default.sitemap.setSectionOptions(Slickplan.globalVars.sectionAlias,p({},this.type,this.currentColor||this.defaultColor))).promise.then((function(t){t&&Slickplan.websocket.storeDispatch("sitemapSection/setData",{id:Slickplan.globalVars.sectionAlias,data:t})})),t.promise.finally((function(){e.reset()})),t},reset:function(){this.$popover.hide(),this.isSelected=!1,this.xRemoveSitemapTempColor()}})}},36028:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(36344),o=n(41644),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"panel-styles-default-colors",components:{swatches:o.default,"color-chip":i.default},inject:["saveScheme"],originalPalette:[],computed:c(c(c({},(0,r.mapState)({xPanelComponent:function(t){return t.panel.component},xCurrentSectionId:function(t){return t.sitemapSection.currentId},xColorThemes:function(t){return t.colors.themes}})),(0,r.mapGetters)({xGetSectionColors:"colors/getSectionColors"})),{},{currentSectionColors:function(){return this.xGetSectionColors(this.xCurrentSectionId)},isPalette:function(){return["default",this.customPaletteThemeId].includes(this.currentSectionColors.themeId)},customPaletteThemeId:function(){return"__".concat(this.xCurrentSectionId)},customPalette:function(){var t=this,e=this.xColorThemes.find((function(e){return e.id===t.customPaletteThemeId}));return e&&e.colors?e.colors:[]},chips:function(){return[a.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND,a.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR,a.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR]}}),methods:c(c({},(0,r.mapActions)({xSetPanelNotification:"panel/setNotification",xRemoveSitemapTempColor:"colors/removeTempColor"})),{},{onSwatchClick:function(){if(!this.isPalette)return this.xSetPanelNotification("Please deselect theme first")},onUpdate:function(t){var e=this;this.xRemoveSitemapTempColor(),this.$options.originalPalette=this.customPalette,Slickplan.websocket.storeDispatch("colors/addTheme",{id:this.customPaletteThemeId,colors:Slickplan.helpers.castArray(t,[])}).then((function(){e.saveScheme(e.customPaletteThemeId)}))}}),mounted:function(){this.$options.originalPalette=this.customPalette}}},88376:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(71995),o=n(48448),a=n(2499),s=n(24564),l=n(81936),c=n(14580),u=n(46936);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"panel-styles",components:{"tab-loading":o.default,"block-default-colors":a.default,"block-themes":s.default,"notification-item":l.default},mixins:[u.mixinPanelScrollbar,u.mixinPanelOverlay],provide:function(){return{saveScheme:this.saveScheme}},scrollableNavbarHeight:0,data:function(){return{themesLoaded:!1}},computed:p(p(p({},(0,r.mapState)({xSectionDefaultData:function(t){return t.sitemapSection.defaultData},xColorThemes:function(t){return t.colors.themes}})),(0,r.mapGetters)({xGetSectionColors:"colors/getSectionColors"})),{},{currentSectionColors:function(){return this.xGetSectionColors()},loadingError:function(){return{type:"error",text:this.$trans("messages.error_loading",{what:"color themes"})}},defaultValues:function(){return Slickplan.helpers.objectPick(this.xSectionDefaultData,[c.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME,c.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND,c.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR,c.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR])},isResetAvailable:function(){return this.themesLoaded&&(this.currentSectionColors.themeId!==this.defaultValues[c.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME]||this.currentSectionColors.failover.background!==this.defaultValues[c.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND]||this.currentSectionColors.failover.text!==this.defaultValues[c.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR]||this.currentSectionColors.failover.lines!==this.defaultValues[c.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR])}}),methods:p(p({},(0,r.mapActions)({xResetThemes:"colors/resetThemes",xSetPanelButtons:"panel/setButtons",xRemoveSitemapTempColor:"colors/removeTempColor"})),{},{loadThemes:function(){var t=this;this.themesLoaded=null,i.default.sitemap.getThemes().promise.then((function(e){t.themesLoaded=!0,t.xResetThemes(),Array.isArray(e)&&e.forEach((function(e){return t.$store.dispatch("colors/addTheme",e)}))})).catch((function(){t.themesLoaded=!1}))},getValidColorLevel:function(t){return"number"==typeof t||[c.constants.CELL_LEVEL_HOME,c.constants.CELL_LEVEL_UTIL,c.constants.CELL_LEVEL_FOOT,"default"].includes(t)||"archetype"===t.split("-")[0]?t:!!/^[0-9]+$/.test(t)&&Number(t)},saveData:function(t){Slickplan.helpers.requestSingle((function(){return i.default.sitemap.setSectionOptions(Slickplan.globalVars.sectionAlias,t)}),this.$options.name)},saveScheme:function(t){var e=this,n=String(t||this.currentSectionColors.themeId);if(n&&"_"===n.charAt(1)){n="default";var r=this.xColorThemes.find((function(e){return e.id===t}));r&&r.colors&&r.colors.length&&(n={},r.colors.forEach((function(t){if(t&&t.level&&(t.text||t.background)){var r=e.getValidColorLevel(t.level);r&&("number"==typeof r&&(r="level".concat(r)),n[r]={text:t.text||null,background:t.background||null})}})))}this.saveData(m({},c.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME,n))},resetAllColors:function(){var t=Slickplan.globalVars.sectionAlias,e="__".concat(t);this.xRemoveSitemapTempColor(),Slickplan.websocket.storeDispatch("colors/addTheme",{id:e,colors:[]});var n=Slickplan.helpers.objectCloneDeep(this.defaultValues);this.saveData(n),n[c.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME]=e,Slickplan.websocket.storeDispatch("sitemapSection/setData",{id:t,data:n})}}),watch:{isResetAvailable:function(t){this.xSetPanelButtons(t?[{icon:"restore",label:"Reset to Default",onClick:this.resetAllColors}]:[])}},mounted:function(){this.loadThemes()}}},47648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"panel-styles-swatch",components:{"icon-archetype":n(38856).default},props:{swatch:{type:Object,required:!0},defaultBackground:{default:"",validator:function(t){return Slickplan.helpers.nullableOrType(t,"string")}},defaultText:{default:"",validator:function(t){return Slickplan.helpers.nullableOrType(t,"string")}}},computed:a(a({},(0,r.mapGetters)({xGetArchetype:"sitemap/getArchetype",xGetSectionColors:"colors/getSectionColors"})),{},{currentSectionColors:function(){return this.xGetSectionColors()},archetype:function(){return"a"===this.letter?this.xGetArchetype([].concat(this.swatch.level.split("-")).pop()):null},letter:function(){return this.swatch.level?String(this.swatch.level).charAt(0):null},icon:function(){return this.swatch.level?"number"==typeof this.swatch.level?this.swatch.level:this.letter:"+"},label:function(){switch(this.letter){case"d":return"Default";case"h":return"Home page";case"u":return"Utility";case"f":return"Footer";case"a":if(this.archetype)return"Page type: ".concat(this.archetype.name)}return"number"==typeof this.swatch.level?"Level ".concat(this.swatch.level):null},styles:function(){return this.swatch.level?{color:this.swatch.text||this.defaultText||this.currentSectionColors.failover.text,background:this.swatch.background||this.defaultBackground||this.currentSectionColors.failover.background}:null}})}},71176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(30952),o=n.n(i),a=n(40216),s=n(7420),l=n(14580),c=n(52892);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"panel-styles-swatches",components:{swatch:s.default},props:{swatches:{type:Array,default:null},defaultSwatch:{type:Object,default:null}},originalData:{},alwaysVisibleLevels:[l.constants.CELL_LEVEL_HOME,l.constants.CELL_LEVEL_UTIL,l.constants.CELL_LEVEL_FOOT,1,2,3,4],data:function(){return{loadedSwatches:[],currentSwatchIndex:-1}},computed:f(f({},(0,r.mapGetters)({xGetSectionColors:"colors/getSectionColors"})),{},{currentSectionColors:function(){return this.xGetSectionColors()},defaults:function(){return{background:this.defaultSwatch&&this.defaultSwatch.background?this.defaultSwatch.background:this.currentSectionColors.failover.background,text:this.defaultSwatch&&this.defaultSwatch.text?this.defaultSwatch.text:this.currentSectionColors.failover.text}}}),methods:f(f({},(0,r.mapActions)({xSetSitemapTempColor:"colors/setTempColor",xRemoveSitemapTempColor:"colors/removeTempColor"})),{},{loadSwatches:function(t){var e=[],n=[];t&&t.slice(0).forEach((function(t){t&&"object"===u(t)&&t.level&&(t.background||t.text)&&(e.push(t),n.push(t.level))})),this.$options.alwaysVisibleLevels.forEach((function(t){n.includes(t)||e.push({level:t})})),(e=this.sortSwatches(e)).push({id:Slickplan.helpers.randomString(16)}),this.loadedSwatches=e},loadCurrentSwatch:function(t){var e=this;["background","text"].forEach((function(n){t[n]&&t[n]===e.defaults[n]&&(t[n]=null)}));var n=this.loadedSwatches.slice(0);return n[this.currentSwatchIndex]=f({},t),this.loadedSwatches=n,n[this.currentSwatchIndex]},sortSwatches:function(t){return o()(t,(function(t){var e;if("a"===String(t.level).charAt(0))e="z";else{var n=["default",l.constants.CELL_LEVEL_HOME,l.constants.CELL_LEVEL_UTIL,l.constants.CELL_LEVEL_FOOT].indexOf(t.level);e="abcdefghijklmnopqrstuvwxyz".charAt(n>=0?n:Math.min(25,Number(t.level)+3))}return String(e+t.level)}))},levelLabel:function(t){if(t&&t.level){if("number"==typeof t.level)return"Level ".concat(t.level);switch(String(t.level).charAt(0)){case"d":return"Default";case"h":return"Home page";case"u":return"Utility";case"f":return"Footer";case"a":return"Page type"}}return null},onClick:function(t,e){var n=this;"number"==typeof e&&(this.currentSwatchIndex=e);var r=f({},this.loadedSwatches[this.currentSwatchIndex]);this.$options.originalData=r;var i=Slickplan.helpers.getValue(r,"level",null),o=!i&&this.loadedSwatches.map((function(t){return t.level}));o&&o.push("default");var s=Slickplan.helpers.getValue(r,"background"),l=Slickplan.helpers.getValue(r,"text"),u=[{id:"save",className:["-primary","-smaller","float-right"],label:this.$trans("save"),onClick:function(){(0,c.saveRecentColors)(),n.onSave()}}];(s||l)&&u.push({id:"cancel",className:["-plain","-smaller","float-right"],label:"Clear",onClick:this.onDelete}),this.$popover.show({component:a.default,props:{title:this.levelLabel(r),levels:!!o&&{exclude:o},level:i,deletable:!1,colors:[{id:"background",label:"Fill",color:s,defaultColor:s||this.defaults.background},{id:"text",label:"Text",color:l,defaultColor:l||this.defaults.text}]},options:{width:190,height:o?393:340},position:{of:t.target},events:{change:this.onChange,cancel:this.onCancel,reset:function(t){n.xSetSitemapTempColor({type:"levels",id:t.level,key:t.item.id,color:t.color})}},buttons:u})},onChange:function(t){var e=this;if("object"===u(t)){var n=this.loadCurrentSwatch(t);n&&n.level&&["background","text"].forEach((function(t){e.xSetSitemapTempColor({type:"levels",id:n.level,key:t,color:n[t]||e.defaults[t]})}))}},onCancel:function(){this.loadCurrentSwatch(this.$options.originalData),this.xRemoveSitemapTempColor(),this.$popover.hide()},onDelete:function(){var t=this,e=Slickplan.helpers.getValue(this.loadedSwatches[this.currentSwatchIndex],"level");this.$options.alwaysVisibleLevels.includes(e)?(this.loadedSwatches[this.currentSwatchIndex].text=null,this.loadedSwatches[this.currentSwatchIndex].background=null):this.loadedSwatches=this.loadedSwatches.filter((function(e,n){return n!==t.currentSwatchIndex})),this.onSave()},onSave:function(){this.$emit("update",this.loadedSwatches.filter((function(t){return t&&t.level&&(t.text||t.background)})).map((function(t){return{level:t.level,text:t.text,background:t.background}}))),this.$popover.hide()}}),watch:{swatches:function(t){this.loadSwatches(t)}},mounted:function(){this.loadSwatches(this.swatches)}}},13752:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var r=n(48416),i=n(71995),o=n(58617),a=n(40216),s=n(41644),l=n(14580),c=n(47504),u=n(42456),d=n(46936),f=n(52892);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b={name:"panel-styles-theme-form",components:{"block-wrapper":o.default,swatches:s.default},mixins:[u.formHelpers,d.mixinPanelComponents,d.mixinPanelOverlay],props:{themeId:{type:[Boolean,String],default:null}},tempThemeId:"~dupka",originalThemeId:"default",currentDefaultKey:null,currentDefaultValue:null,data:function(){return{formData:{name:"",colors:[]},isEdit:!1}},computed:h(h(h({},(0,r.mapState)({xColorThemes:function(t){return t.colors.themes},xDefaultSectionData:function(t){return t.sitemapSection.defaultData}})),(0,r.mapGetters)({xGetSectionColors:"colors/getSectionColors"})),{},{currentSectionColors:function(){return this.xGetSectionColors()},defaultSwatch:{get:function(){return this.formData.colors.find((function(t){return"default"===t.level}))||{}},set:function(t){var e=this.formData.colors.slice(0),n=e.findIndex((function(t){return"default"===t.level}));n>=0?(e[n]=h(h(h({},e[n]),t),{},{level:"default"}),this.formData.colors=e):t&&(t.background||t.text||t.lines)&&this.formData.colors.push(h(h({},t),{},{level:"default"}))}},swatches:function(){return[{id:"background",color:this.defaultSwatch.background||this.xDefaultSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND],label:c.colorLabels[l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND],onClick:this.onBackgroundClick},{id:"text",color:this.defaultSwatch.text||this.xDefaultSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR],label:c.colorLabels[l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR],onClick:this.onTextClick},{id:"lines",color:this.defaultSwatch.lines||this.xDefaultSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR],label:c.colorLabels[l.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR],onClick:this.onLinesClick}]},swatchesColors:function(){return this.formData.colors.filter((function(t){return t&&"default"!==t.level}))},canSubmit:function(){return this.formData.name&&this.formData.colors.length}}),methods:h(h({},(0,r.mapActions)({xRemoveSitemapTempColor:"colors/removeTempColor"})),{},{onClose:function(){this.panelCloseComponents(!0)},onSubmit:function(){var t=this;this.formSubmit({action:function(){return t.isEdit?i.default.sitemap.updateTheme(t.isEdit,t.formData):i.default.sitemap.addTheme(t.formData)},success:function(e){e&&e.id&&Slickplan.websocket.storeDispatch("colors/addTheme",e),t.onClose()},before:this.panelOverlayEnable,after:this.panelOverlayDisable})},onSwatchesUpdate:function(t){var e=this.defaultSwatch.level?h({},this.defaultSwatch):null;this.formData.colors=t||[],e&&(this.defaultSwatch=e),this.xRemoveSitemapTempColor()},onBackgroundClick:function(t){return this.onSwatchClick(t,l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND)},onTextClick:function(t){return this.onSwatchClick(t,l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR)},onLinesClick:function(t){return this.onSwatchClick(t,l.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR)},onSwatchClick:function(t,e){var n=this,r=(0,c.attributeKey)(e);this.$options.currentDefaultKey=r,this.$options.currentDefaultValue=this.defaultSwatch[r],this.$popover.show({component:a.default,props:{title:c.colorLabels[e],levels:!1,deletable:!1,colors:[{id:"color",color:this.defaultSwatch[r]}]},options:{width:190,height:296},position:{of:t.target},events:{change:this.onSwatchChange,cancel:this.onSwatchCancel},buttons:[{id:"save",className:["-primary","-smaller","float-right"],label:this.$trans("save"),onClick:function(){(0,f.saveRecentColors)(),n.onSwatchSave()}},{id:"cancel",className:["-plain","-smaller","float-right"],label:"Clear",onClick:function(){n.onSwatchChange({color:n.xDefaultSectionData[e]}),n.onSwatchSave()}}]})},onSwatchChange:function(t){t&&t.color&&(this.defaultSwatch=v({},this.$options.currentDefaultKey,t.color))},onSwatchCancel:function(){this.onSwatchChange({color:this.$options.currentDefaultValue}),this.$popover.hide()},onSwatchSave:function(){this.$popover.hide()},setTempTheme:function(t){this.$store.dispatch("sitemapSection/setData",{id:Slickplan.globalVars.sectionAlias,data:v({},l.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME,this.$options[t?"tempThemeId":"originalThemeId"])})}}),watch:{"formData.colors":{handler:function(){this.$store.dispatch("colors/addTheme",{id:this.$options.tempThemeId,colors:this.formData.colors})},deep:!0}},mounted:function(){var t=this;if(this.$options.originalThemeId=this.currentSectionColors.themeId,this.themeId&&"_"!==this.themeId.charAt(0)){var e=this.xColorThemes.find((function(e){return e.id===t.themeId}));e&&(this.isEdit=this.themeId,this.formData.name=e.name,this.formData.colors=e.colors.slice(0))}this.formData.colors.findIndex((function(t){return"default"===t.level}))<0&&this.formData.colors.push({level:"default",background:this.xDefaultSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND],text:this.xDefaultSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR],lines:this.xDefaultSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR]}),this.setTempTheme(!0)},beforeDestroy:function(){this.setTempTheme(!1)}}},84504:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(71995),o=n(7420),a=n(14580),s=n(46936);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"panel-styles-themes",components:{swatch:o.default},mixins:[s.mixinPanelOverlay],inject:["saveScheme"],props:{theme:{type:Object,required:!0}},data:function(){return{isRemoving:!1}},computed:u(u(u({},(0,r.mapState)({xColorThemes:function(t){return t.colors.themes}})),(0,r.mapGetters)({xGetSectionColors:"colors/getSectionColors"})),{},{currentSectionColors:function(){return this.xGetSectionColors()},isSelected:function(){return this.theme.id===this.currentSectionColors.themeId},isSystemTheme:function(){return"_"===this.theme.id.charAt(0)},defaultSwatch:function(){return this.theme.colors.find((function(t){return"default"===t.level}))||{}}}),methods:u(u({},(0,r.mapActions)({xSetPanelNotification:"panel/setNotification"})),{},{onRemove:function(){var t=this;this.isRemoving=!0,this.panelOverlayEnable(),this.isSystemTheme||i.default.sitemap.deleteTheme(this.theme.id).promise.then((function(){t.isSelected&&t.setTheme("default"),Slickplan.websocket.storeCommit("colors/removeTheme",t.theme.id)})).finally((function(){t.isRemoving=!1,t.panelOverlayDisable()}))},onSelect:function(){if(this.isRemoving)return!1;this.setTheme(this.isSelected?"__".concat(Slickplan.globalVars.sectionAlias):this.theme.id)},setTheme:function(t){Slickplan.websocket.storeDispatch("sitemapSection/setData",{id:Slickplan.globalVars.sectionAlias,data:d({},a.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME,t)}),this.saveScheme(t)}})}},78588:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(45136),o=n(70228),a=n(46936);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"panel-styles-themes",components:{"theme-item":i.default},mixins:[a.mixinPanelComponents],computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapGetters)({xGetColorThemes:"colors/getThemes"})),methods:{onForm:function(t){this.panelSetComponent(o.default,{themeId:"string"==typeof t&&t})}}}},17336:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(55708),i=n(23632);const o={name:"popover-archetypes",components:{"archetypes-item":r.default},mixins:[i.mixinArchetypesListing],props:{selected:{type:String,default:null}},data:function(){return{currentType:"system",currentlySelected:null}},computed:{currentArchetypesListing:function(){return"system"===this.currentType?this.predefinedArchetypes:this.customArchetypes},types:function(){return this.hasCustomArchetypes?[{label:"System page types",value:"system"},{label:"Custom page types",value:"custom"}]:null}},methods:{onSelect:function(t){this.currentlySelected=t,this.$emit("select",t)}},mounted:function(){this.currentlySelected=this.selected,this.currentType=this.hasCustomArchetypes&&this.isCustomArchetype(this.currentlySelected)?"custom":"system"}}},75904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(13828),o=n(52892),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"popover-colorpicker",components:{"field-colorpicker":i.default},props:{levels:{type:[Boolean,Object],default:!1},deletable:{type:Boolean,default:!0},resettable:{type:Boolean,default:!0},opacity:{type:Boolean,default:!1},level:{type:[String,Number,null],default:"default"},colors:{type:Array,required:!0},title:{type:[String,Number]},close:{type:Boolean,default:!0},tiles:{type:Boolean,default:!0}},data:function(){return{currentValue:"",validColors:{},opacityValue:100,colorIndex:0,selectedLevel:null,canDelete:!1,currentTiles:""}},computed:d(d(d({},(0,r.mapState)({xArchetypes:function(t){return t.sitemap.archetypes}})),(0,r.mapGetters)({xAllCellsColors:"sitemapCell/getAllColorsValues",xAllSectionsColors:"sitemapSection/getAllColorsValues"})),{},{currentValueForPicker:{get:function(){var t=Slickplan.helpers.castString(this.currentValue).split("*")[0];return t&&this.opacity?"".concat(t,"*").concat(this.opacityValue):t},set:function(t){var e=Array.isArray(t)?t:Slickplan.helpers.castString(t).split("*");e[0]&&(this.currentValue!==e[0]&&(this.currentValue=e[0]),e.length>1&&(e[1]=parseInt(e[1],10),this.opacityValue!==e[1]&&(this.opacityValue=e[1])))}},defaultColor:function(){return this.currentColorItem.defaultColor||this.currentColorItem.color},currentColorItem:function(){return this.colors[this.colorIndex]},colorTypes:function(){for(var t=[],e=0,n=this.colors.length;e<n;++e)t.push({label:this.colors[e].label,value:e,width:this.colors[e].width});return t},levelsDropdown:function(){for(var t=this,e=[{label:"Default",value:"default"},{label:"Utility",value:a.constants.CELL_LEVEL_UTIL},{label:"Footer",value:a.constants.CELL_LEVEL_FOOT},{label:"Home page",value:a.constants.CELL_LEVEL_HOME}],n=1;n<=20;++n)e.push({label:"Level ".concat(n),value:n});var r=[];Object.keys(this.xArchetypes).forEach((function(e){var n=t.xArchetypes[e].name;r.push({label:n,value:"archetype-".concat(e)})}));var i=Slickplan.helpers.getValue(this.levels,"exclude");return i&&Array.isArray(i)&&(this.level&&(i=i.filter((function(e){return e!==t.level}))),e=e.filter((function(t){return!i.includes(t.value)})),r=r.filter((function(t){return!i.includes(t.value)}))),r.length?[{group:"Page Levels",options:e},{group:"Page Types",options:r}]:e},currentlySelectedLevel:function(){return/^[0-9]+$/.test(this.selectedLevel)?Number(this.selectedLevel):this.selectedLevel},tilesDropdown:function(){var t=[];return this.savedTiles.recent.length&&t.push({key:"recent",value:"Recent colors"}),this.savedTiles.project.length&&t.push({key:"project",value:"Document colors"}),t},savedTiles:function(){return{recent:(0,o.getRecentColors)(),project:this.getProjectColors()}},displayTiles:function(){return this.tilesDropdown.length}}),methods:{onChange:function(){(0,o.prepareRecentColors)(Object.values(this.validColors)),this.$emit("change",d(d({},this.validColors),{},{level:this.currentlySelectedLevel,opacity:this.opacityValue}))},onReset:function(){this.isReset=!0,this.currentValue=this.defaultColor,(0,o.setProp)(this.validColors,this.currentColorItem.id,this.defaultColor),this.$emit("reset",{item:this.currentColorItem,index:this.colorIndex,color:this.defaultColor,level:this.currentlySelectedLevel})},getProjectColors:function(){var t=l(new Set([].concat(this.xAllCellsColors.text,this.xAllCellsColors.background,this.xAllSectionsColors.text,this.xAllSectionsColors.background))).map((function(t){var e=Slickplan.helpers.hex2rgb(t);return{hex:t,rgb:e,luma:.3*e[0]+.59*e[1]+.11*e[2]}})).filter((function(t){var e=t.rgb.reduce((function(t,e){return t+e}),0);return 0!==e&&765!==e}));return t.sort((function(t,e){return t.luma>e.luma?1:-1})),t.map((function(t){return t.hex}))}},watch:{colorIndex:function(t){this.currentValue=this.validColors[this.colors[t].id]||this.colors[t].color}},mounted:function(){var t=this;(0,o.prepareRecentColors)(),this.colorIndex=0;for(var e=0,n=this.colors.length;e<n;++e){var r=this.colors[e];(0,o.setProp)(this.validColors,r.id,r.color||r.defaultColor),this.deletable&&r.color&&r.defaultColor&&r.color!==r.defaultColor&&(this.canDelete=!0)}this.currentValueForPicker=this.currentColorItem.color||this.currentColorItem.defaultColor,this.selectedLevel=String(this.level||Slickplan.helpers.getValue(Slickplan.helpers.getValue(this.levelsDropdown,"0.group")?[].concat(this.levelsDropdown[0].options,this.levelsDropdown[1].options).shift():[].concat(this.levelsDropdown).shift(),"value")),this.currentTiles=this.tilesDropdown.length?this.tilesDropdown[0].key:"",this.$watch("currentValueForPicker",(function(e){if(t.isReset)t.isReset=!1;else{var n=e.split("*");e="#".concat(n[0].replace("#","")),Slickplan.helpers.isHex(e)&&(n.length>1&&(t.opacityValue=parseInt(n[1],10)),(0,o.setProp)(t.validColors,t.currentColorItem.id,e),t.onChange())}})),this.$watch("selectedLevel",(function(){t.onChange()}))}}},164:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(62264),i=n.n(r);const o={name:"daterangepicker-calendar",props:{monthDate:{type:[Object,null],default:null,validator:function(t){return null===t||i().isDayjs(t)}},start:{type:[Object,null],default:null,validator:function(t){return null===t||i().isDayjs(t)}},end:{type:[Object,null],default:null,validator:function(t){return null===t||i().isDayjs(t)}},offset:{type:Number,default:0}},data:function(){var t=(this.monthDate||this.start||i()()).clone();return this.offset>0?t=t.add(this.offset,"month"):this.offset<0&&(t=t.subtract(-1*this.offset,"month")),{currentMonthDate:t}},computed:{firstDay:function(){return 0},daysOfWeek:function(){var t=["Su","Mo","Tu","We","Th","Fr","Sa"];if(this.firstDay>0)for(var e=this.firstDay;e>0;)t.push(t.shift()),--e;return t},monthNames:function(){return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},calendar:function(){for(var t=this.currentMonthDate.startOf("month"),e=this.daysOfWeek.indexOf(t.format("dd")),n=[],r=0;r<6;r++)n[r]=[];for(var i=e===this.firstDay?t.subtract(1,"week"):t.subtract(e,"day"),o=0,a=0,s=0;o<42;o++,a++,i=i.add(1,"day"))o>0&&a%7==0&&(a=0,s++),n[s][a]=i.clone();return n}},methods:{prevMonth:function(){this.changeMonthDate(this.currentMonthDate.subtract(1,"month"))},nextMonth:function(){this.changeMonthDate(this.currentMonthDate.add(1,"month"))},changeMonthDate:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.currentMonthDate.clone();if(this.currentMonthDate=t.startOf("month"),e&&!n.isSame(this.currentMonthDate)){var r=this.currentMonthDate;this.offset>0?r=r.subtract(this.offset,"month"):this.offset<0&&(r=r.add(-1*this.offset,"month")),this.$emit("update",r)}}},watch:{monthDate:function(t){this.offset>0?t=t.add(this.offset,"month"):this.offset<0&&(t=t.subtract(-1*this.offset,"month")),this.changeMonthDate(t,!1)}}}},95592:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(58676);const i={name:"daterangepicker-ranges",props:{ranges:{type:Array,validator:function(t){return t.every((function(t){return t.label&&(0,r.validateRange)(t,"start","end")}))}},currentRange:{type:Object,validator:function(t){return(0,r.validateRange)(t,"start","end")}}},methods:{onClick:function(t){this.$emit("click",t)},rangeClass:function(t){var e=this.currentRange,n=e.start,r=e.end;return{active:n&&r&&n.isSame(t.start,"date")&&r.isSame(t.end,"date")}}}}},97568:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(62264),i=n.n(r),o=n(13481),a=n(93184),s=n(58676),l=n(14580);const c={name:"popover-daterangepicker",components:{calendar:o.default,"calendar-ranges":a.default},inheritAttrs:!1,props:{minDate:{type:[Object,null],default:null,validator:function(t){return null===t||i().isDayjs(t)}},maxDate:{type:[Object,null],default:null,validator:function(t){return null===t||i().isDayjs(t)}},calendars:{type:Number,default:2},singleDatePicker:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},showRangeText:{type:Boolean,default:!0},cancelButtonLabel:{type:String,default:"Cancel"},dateRange:{type:Object,default:function(){return{startDate:i()(),endDate:i()()}},validator:function(t){return(0,s.validateRange)(t,"startDate","endDate")}},onCancel:{type:Function,default:null}},dateRanges:(0,s.dateRanges)(),data:function(){return{start:this.dateRange.startDate.clone(),end:this.singleDatePicker?this.dateRange.startDate.clone():this.dateRange.endDate.clone(),monthDate:this.dateRange.startDate.startOf("month"),inSelection:!1}},computed:{ranges:function(){return this.singleDatePicker?{}:this.$options.dateRanges},calendarsOffsets:function(){for(var t=[],e=Math.ceil(this.calendars/2)-1,n=0;n<this.calendars;++n)t.push(n-e);return t},currentRange:function(){return{start:this.start,end:this.end}},startText:function(){return this.start?this.start.format(l.constants.DATE_FORMAT_LONG):""},endText:function(){return this.end?this.end.format(l.constants.DATE_FORMAT_LONG):""},rangeText:function(){var t=this.startText;return this.singleDatePicker||this.startText===this.endText||(t+=" - ".concat(this.endText)),t},isClear:function(){return!this.dateRange.startDate||!this.dateRange.endDate},hasRanges:function(){return this.ranges&&this.ranges.length}},methods:{dateUpdate:function(t){t=t.startOf("month"),this.minDate&&t.isBefore(this.minDate)&&(t=this.minDate.clone()),this.maxDate&&t.isAfter(this.maxDate)&&(t=this.maxDate.clone()),this.monthDate=t.startOf("month")},dateClick:function(t){this.inSelection?(this.inSelection=!1,this.end=t.startOf("day"),this.end<this.start&&(this.inSelection=!0,this.start=t.startOf("day")),!this.inSelection&&this.autoApply&&this.clickedApply()):(this.start=t.startOf("day"),this.end=t.startOf("day"),this.singleDatePicker?this.autoApply&&this.clickedApply():this.inSelection=!0)},hoverDate:function(t){this.inSelection&&(t.isSame(this.start)||t.isAfter(this.start))&&(this.end=t)},togglePicker:function(t){"boolean"==typeof t?t?this.$parent.show():this.$parent.hide():this.$parent.toggle()},clickedApply:function(){this.togglePicker(!1,!0),this.singleDatePicker?this.$emit("update",this.start):this.$emit("update",{startDate:this.start,endDate:this.end})},clickAway:function(){this.onCancel&&"function"==typeof this.onCancel?this.onCancel():this.$parent.isVisible&&(this.start=this.dateRange.startDate,this.end=this.dateRange.endDate,this.togglePicker(!1,!0))},onRangeClick:function(t){this.start=t.start,this.end=t.end,this.dateUpdate(t.start),this.autoApply&&this.clickedApply()},dayClass:function(t,e){var n=e.startOf("day"),r=this.start.startOf("day"),o=this.end.startOf("day"),a=i()().startOf("day");return{off:e.month()!==t.month(),today:n.isSame(a),active:n.isSame(r)||n.isSame(o),"in-range":(n.isSame(r)||n.isAfter(r))&&(n.isSame(o)||n.isBefore(o)),"start-date":n.isSame(r),"end-date":n.isSame(o),weekend:0===n.day()||6===n.day(),disabled:this.minDate&&n.isBefore(i()(this.minDate).startOf("day"))||this.maxDate&&n.isAfter(i()(this.maxDate).startOf("day"))}}},watch:{minDate:function(){var t=this.monthDate.startOf("month");this.minDate&&t.isBefore(this.minDate)&&(t=this.minDate.clone()),this.dateUpdate(t)},maxDate:function(){var t=this.monthDate.startOf("month");this.maxDate&&t.isBefore(this.maxDate)&&(t=this.maxDate.clone()),this.dateUpdate(t)},"dateRange.startDate":function(t){this.start=t&&!this.isClear?t.clone():null,this.isClear?(this.start=null,this.end=null):(this.start=this.dateRange.startDate.startOf("month"),this.end=this.dateRange.endDate.startOf("month"))},"dateRange.endDate":function(t){this.end=t&&!this.isClear?t.clone():null,this.isClear?(this.start=null,this.end=null):(this.start=this.dateRange.startDate.startOf("month"),this.end=this.dateRange.endDate.startOf("month"))}}}},5400:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(14580);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"popover-line-style",props:{type:{type:String,required:!0}},computed:{defaultLineAttrs:function(){return Slickplan.helpers.objectMergeDeep({},r.diagramStructure.lineAttr,{x2:r.diagramStructure.lineAttr.x2+36})},lines:function(){return"markerStart"===this.type||"markerEnd"===this.type?this.markerStyles:this.lineStyles},markerStyles:function(){var t=this,e=Object.keys(r.diagramConnectors.markers),n=this.defaultLineAttrs.stroke.replace("#",""),i="markerStart"===this.type?"marker-start":"marker-end",o={};return e.forEach((function(e){e===r.constants.DIAGRAM_CONNECTOR_NONE?o[e]=[a({},t.defaultLineAttrs)]:o[e]=[a(s({},i,"url(#svg-marker-".concat(e,"-").concat(n,")")),t.defaultLineAttrs)]})),o},lineStyles:function(){var t=s(s({},r.constants.DIAGRAM_CONNECTOR_SOLID,[this.defaultLineAttrs]),r.constants.DIAGRAM_CONNECTOR_DASHED,[a({"stroke-dasharray":"3 2"},this.defaultLineAttrs)]);return"diagram"!==this.type&&(t[r.constants.DIAGRAM_CONNECTOR_DOUBLE]=[Slickplan.helpers.objectMergeDeep({},this.defaultLineAttrs,{y1:this.defaultLineAttrs.y1-2,y2:this.defaultLineAttrs.y2-2}),Slickplan.helpers.objectMergeDeep({},this.defaultLineAttrs,{y1:this.defaultLineAttrs.y1+2,y2:this.defaultLineAttrs.y2+2})]),t}}}},81532:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"popover-link",mixins:[n(42456).formHelpers],data:function(){return{links:[],formData:{type:"external",page:null,url:"https://",label:null}}},computed:a(a({},(0,r.mapGetters)({xDropdownCellsList:"sitemapCell/getCellsForDropdown"})),{},{linkTypes:function(){return[{label:"Internal Link",value:"internal"},{label:"External Link",value:"external"}]},canSubmit:function(){return"external"===this.formData.type&&this.formData.url&&this.formData.url.split("//").length>1&&this.formData.url.split("//")[1]||"internal"===this.formData.type&&this.formData.page},dropdownCellsList:function(){return this.xDropdownCellsList()}}),methods:{onSubmit:function(){this.$emit("submit",this.parsedLinks())},parsedLinks:function(){return Slickplan.helpers.objectPick(this.formData,"internal"===this.formData.type?["type","page"]:["type","url","label"])}}}},28796:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.r(e),n.d(e,{default:()=>i});const i={name:"popover-listing",props:{items:{type:[Object,Array],required:!0},multiple:{type:Boolean,default:!1},emptyMessage:{type:String,default:"Nothing to select"}},data:function(){return{selected:null}},computed:{isEmpty:function(){return Array.isArray(this.items)&&!this.items.length||"object"===r(this.items)&&!Object.keys(this.items).length}},methods:{onClick:function(t){this.multiple?Array.isArray(this.selected)?this.isSelected(t)?this.selected=this.selected.filter((function(e){return e!==t.value})):this.selected.push(t.value):this.selected=[t.value]:this.selected=t.value,this.$emit("submit",this.selected)},isSelected:function(t){return Array.isArray(this.selected)?this.selected.includes(t.value):this.selected===t.value}}}},97088:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"popover-note",components:{"field-wysiwyg":n(11720).default},props:{initialValue:{type:[Number,String],default:""}}}},80968:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"popover-status",limit:10,props:{status:{type:String,default:null}},computed:s(s(s({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses"})),{},{hasScrollbar:function(){return this.xContentStatuses.length>this.$options.limit},scrollableHeight:function(){return!!this.hasScrollbar&&28*this.$options.limit-12}}),methods:{onClick:function(t){t.alias===i.constants.CONTENT_STATUS_UNASSIGNED?this.$emit("delete"):this.$emit("submit",t.alias)},statusClasses:function(t){return{backgroundColor:t.color,margin:".35em .2em 0 0",verticalAlign:"top"}}},mounted:function(){this.hasScrollbar&&this.$refs.scrollable.update()}}},29489:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"popover-users",props:{selected:{type:Array,default:null},multiple:{type:Boolean,default:!1},users:{type:[Array,Object],default:null},cancelLabel:{type:String,default:"Clear"},submitLabel:{type:String,default:"Apply"}},data:function(){return{checked:[]}},computed:a(a(a({},(0,r.mapState)({xWindowHeight:function(t){return t.core.windowSize.height}})),(0,r.mapGetters)({xProjectActiveContributors:"team/getProjectActiveContributors"})),{},{contributors:function(){return this.users||this.xProjectActiveContributors}}),methods:{isChecked:function(t){return this.checked.includes(t)},onClick:function(t){this.isChecked(t)?this.checked=this.multiple?this.checked.filter((function(e){return e!==t})):[]:this.checked=this.multiple?[].concat(this.checked,t):[t],this.multiple||this.onSubmit()},onSubmit:function(){this.$emit("submit",this.checked)}},mounted:function(){this.selected&&(this.checked=[].concat(this.multiple||!Array.isArray(this.selected)?this.selected:this.selected.find((function(t){return t}))))}}},1492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"popover-workflow",props:{type:{type:String,default:null}},computed:a(a({},(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses",xDiagramWorkflow:"diagram/getWorkflowStatuses"})),{},{statuses:function(){return"diagram"===this.type?this.xDiagramWorkflow:this.xContentStatuses}})}},58452:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"project-members",components:{LinkHelp:n(30160).default},inject:["onContributorUpdate"],props:{contributors:{type:Array,default:function(){return[]}},title:{type:String,default:null},showPermissions:{type:[String,Boolean],default:!1},minHeight:{type:Number,default:80},maxHeight:{type:Number,default:300},allowDelete:{type:Boolean,default:!1},alwaysCanSelect:{type:Boolean,default:!1},showAccountType:{type:Boolean,default:!1},showSelectedUsers:{type:Boolean,default:!0}},data:function(){return{searchQuery:"",contributorsSearchQuery:null,temporarilySelected:null}},computed:c(c(c({},(0,r.mapState)({xPlanLimits:function(t){return t.core.planLimits},xAccountData:function(t){return t.user.user},xTeamGroups:function(t){return t.team.groups},xProjectContributors:function(t){return t.project.contributors}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData",xTeamActive:"team/activeUsers"})),{},{sortedContributors:function(){var t=this,e=Slickplan.helpers.arrayToKeyValue(this.xProjectContributors,"id","seen"),n=this.contributors.map((function(n){var r=Slickplan.helpers.objectCloneDeep(n),i=t.xGetTeamMemberData(r.id),o=i.type,a=i.name,s=i.normalizedName,l=i.email,c=i.is_active;return r.name=a,r.normalizedName=s,r.email=l,r.isActive=c,r.isOwner="owner"===o,r.isAdministrator="administrator"===o,r.isContributor=!r.isOwner&&!r.isAdministrator,r.group=r.isContributor?(null==r?void 0:r.group)||"custom":"manager",r.seen=r.id===t.xAccountData.id||(void 0===e[r.id]?null:!!e[r.id]),r.canDelete=t.canSelectUsers&&(t.allowDelete||r.isContributor)&&r.id!==t.xAccountData.id,r.canEdit=r.canDelete&&"custom"===r.group,r})),r=Slickplan.helpers.sortString(n.filter((function(t){return t.isAdministrator||t.isOwner})),"normalizedName"),i=Slickplan.helpers.sortString(n.filter((function(t){return t.isContributor})),"normalizedName");return[].concat(i).concat(r)},canEdit:function(){return this.$root.userCan(i.permissionsProject.MANAGE_CONTRIBUTORS)},canSelectUsers:function(){return this.canEdit||this.alwaysCanSelect},canAddNewMember:function(){return this.$listeners.new&&this.canEdit&&this.xPlanLimits.contributors>0},hasButtonsColumn:function(){return this.sortedContributors.some((function(t){return t.canDelete}))},foundContributors:function(){var t=this;return a(new Set(this.xTeamActive.filter((function(e){return!t.contributors.some((function(t){return t.id===e.id}))&&(!t.contributorsSearchQuery||!t.contributorsSearchQuery.length||t.contributorsSearchQuery.every((function(t){return~e.normalizedName.indexOf(t)||~e.email.indexOf(t)})))})).map((function(t){return t.id}))))},permissionsList:function(){return Object.values(i.permissionsProject)},usersGroups:function(){return"string"==typeof this.showPermissions&&this.xTeamGroups[this.showPermissions]?this.xTeamGroups[this.showPermissions]:null},usersGroupsDropdown:function(){var t=this;if(this.usersGroups){var e=Object.keys(this.usersGroups).map((function(e){return{key:e,value:t.usersGroups[e].name}}));return"sitemap"===this.showPermissions?e.concat({key:"custom",value:"Custom"}):e}return[]}}),methods:{contributorSearch:function(t){null===this.contributorsSearchQuery&&document.addEventListener("mouseup",this.contributorSearchClickOutside),this.contributorsSearchQuery="".concat(t).trim().toLowerCase().split(" ").filter((function(t){return!Slickplan.helpers.isBlank(t)}))},contributorSearchClose:function(){document.removeEventListener("mouseup",this.contributorSearchClickOutside),this.temporarilySelected=null,this.searchQuery="",this.contributorsSearchQuery=null},contributorSearchClickOutside:function(t){var e;null!=t&&null!==(e=t.target)&&void 0!==e&&e.closest(".toolbar-search-wrapper")||this.contributorSearchClose()},contributorSelected:function(t){var e=this;this.contributorSearchClose(),this.$emit("select",parseInt(t,10)),this.$nextTick((function(){var n=e.$el.querySelector('.contributors-row[data-id="'.concat(t,'"]'));n?n.scrollIntoView({behavior:"auto",block:"center",inline:"center"}):e.$refs.scrollable&&e.$refs.scrollable.scrollToBottom()}))},contributorRemoved:function(t){this.$emit("remove",parseInt(t,10))},contributorPermissions:function(t){this.$emit("permissions",parseInt(t,10))},newContributor:function(){var t=this.searchQuery;this.contributorSearchClose(),this.$emit("new",t)},onGroupSelect:function(t,e){this.onContributorUpdate(t,"group",e),"custom"===e&&this.contributorPermissions(t)},onSearchEsc:function(t){t.target.blur(),this.contributorSearchClose()},onSearchEnter:function(t){t.target.blur(),this.temporarilySelected&&this.foundContributors.length?this.contributorSelected(this.temporarilySelected):1===this.foundContributors.length?this.contributorSelected(this.foundContributors[0]):this.foundContributors.length||this.newContributor(this.searchQuery)},onSearchUp:function(){var t=this,e=-1;this.temporarilySelected&&(e=this.foundContributors.findIndex((function(e){return e===t.temporarilySelected}))),e>0&&(this.temporarilySelected=this.foundContributors[e-1]||null)},onSearchDown:function(){var t=this,e=-1;this.temporarilySelected&&(e=this.foundContributors.findIndex((function(e){return e===t.temporarilySelected}))),e<this.foundContributors.length-1&&(this.temporarilySelected=this.foundContributors[e+1]||null)}},watch:{searchQuery:function(){this.temporarilySelected=null}},beforeDestroy:function(){this.contributorSearchClose()}}},65928:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>w});var r=n(48416),i=n(62264),o=n.n(i),a=n(71995),s=n(29056),l=n(4532),c=n(65056),u=n(14580),d=n(97152),f=n(2960),p=n(72976),m=n(70992),h=n(22164),v=n(92704),b=n(38764),y=n(39128),g=n(15568),_=n(49998);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){var r;return r=function(t,e){if("object"!=S(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==S(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const w={name:"project-header",components:{DynamicTimestamp:y.default,SvgLoadingCircle:b.default,"partial-dropdown":s.default,"partial-side-buttons":l.default},mixins:[c.mixinProjectStatus,m.mixinCurrentCellDiagrams,m.mixinCurrentCellDiagramsMethods,v.mixinTemplatesMethods,c.mixinProjectImportExport],throttleTimerId:null,data:function(){return{versionHoverTimeout:null,addNewVersionForm:!1,savingStatus:null,fileMenuVisible:!1,leftStyle:null,routeHistory:[]}},computed:k(k(k({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType},xSitemapData:function(t){return t.sitemap.details},xPanelVisible:function(t){return t.panel.visible},xCurrentSectionId:function(t){return t.sitemapSection.currentId},xSitemapSectionBreadcrumbs:function(t){return t.sitemapSection.breadcrumbs},xProjectSavingProcesses:function(t){return t.project.savingProcesses},xContentPageData:function(t){return t.content.builderPageData},xContentPageId:function(t){return t.content.builderPageId},xContentTemplate:function(t){var e=this;return this.$route.params.template?t.content.templates.find((function(t){return t.alias===e.$route.params.template})):null},xDiagramLastSaved:function(t){return t.project.lastSaved.diagram.timestamp}})),(0,r.mapGetters)({xIsHeaderVisible:"project/isHeaderVisible",xGetPagesCount:"sitemapCell/getPageCount",xCurrentDiagramData:"diagram/getCurrentData",xGetCellData:"sitemapCell/getData"})),{},{isProjectDiagram:function(){return"diagram"===this.xProjectType.project},isProjectWebsitePlanning:function(){return"sitemap"===this.xProjectType.project},isContentPage:function(){return this.isProjectWebsitePlanning&&"page-builder"===this.xProjectType.content},isContentTemplate:function(){return this.isProjectWebsitePlanning&&"template-builder"===this.xProjectType.content&&this.xContentTemplate},isInSitemapDiagramEditor:function(){return"cell"===this.xProjectType.diagram},isProjectToolsNavVisible:function(){return this.isProjectWebsitePlanning&&!this.isContentPage&&!this.isContentTemplate},hasBackButton:function(){return this.isInSitemapDiagramEditor||this.isContentPage||this.isContentTemplate},cameFromSitemap:function(){var t;return this.isProjectWebsitePlanning&&"sitemap"===(null===(t=this.routeHistory)||void 0===t?void 0:t[this.routeHistory.length-2])},backButtonTooltip:function(){return this.cameFromSitemap?"Back to Sitemap":this.isContentPage?"Back to Content":this.isContentTemplate?"Back to Templates":this.isInSitemapDiagramEditor?"Back to Diagrams":"Back to Dashboard"},projectAlias:function(){return this.isProjectWebsitePlanning?this.xSitemapData.alias:this.xCurrentDiagramData.alias},projectName:function(){return this.isProjectWebsitePlanning?this.xSitemapData.title:this.xCurrentDiagramData.title},projectNav:function(){var t=this.xProjectType,e=t.diagram,n=t.content,r=t.mockup;return[{id:"",name:"Sitemap",active:!e&&!n&&!r},{id:"-diagram",name:"Diagrams",active:e},{id:"-content",name:"Content",active:n},{id:"-mockup",name:"Designs",active:r}].map((function(t){return{id:t.id,elId:t.id?"nav".concat(t.id):null,name:t.name,className:{"-active":t.active}}}))},projectMeta:function(){var t=[],e=!this.isInSitemapDiagramEditor&&!this.isContentPage&&!this.isContentTemplate;if(this.isProjectWebsitePlanning&&e&&t.push({pill:!0,text:"VRS ".concat(this.xSitemapData.version)}),this.isProjectWebsitePlanning&&this.pageCount&&e&&t.push("Pages: ".concat(this.pageCount)),this.isContentPage){if(this.xContentPageData.template&&t.push({pill:!0,text:"Template: ".concat(this.xContentPageData.template_name)}),this.xContentPageData.due_date_timestamp){var n=o().unix(this.xContentPageData.due_date_timestamp).isBefore(o()());t.push({timestamp:this.xContentPageData.due_date_timestamp,allowDays:!0,allowMonths:!0,allowYears:!0,past:"past due",future:"Due",className:n?"text-red-lighter":null})}this.xContentPageData.updated_at_timestamp&&t.push({timestamp:this.xContentPageData.updated_at_timestamp,text:"Saved"})}return this.isContentTemplate&&(t.push("Used on ".concat(this.$plural("page",this.xContentTemplate.pages_count,!0))),this.xContentTemplate.timestamp&&t.push({timestamp:this.xContentTemplate.timestamp,text:"Saved"})),this.isProjectDiagram&&this.xDiagramLastSaved&&t.push({timestamp:this.xDiagramLastSaved,text:"Saved"}),t.map((function(t){return"object"===S(t)?t:{text:t}}))},sitemapVersions:function(){if(!this.isProjectWebsitePlanning)return[];var t=this.xSitemapData.versions;return Object.keys(t).map((function(e){return k({alias:e},t[e])}))},pageCount:function(){return!this.isActiveCrawler&&this.xGetPagesCount(this.xCurrentSectionId,!0)},breadcrumbsItems:function(){var t=this,e=this.hasFileMenu?function(){return t.toggleFileMenu()}:null;if(this.isContentTemplate)return[{name:this.xContentTemplate.name,onClick:e}];var n=[{name:this.projectName,onClick:e}];if(this.isContentPage)(n=n.concat("separator",{name:this.xGetCellData(this.xContentPageId,u.constants.CELL_DATA_KEY_LABEL)}))[0].onClick=function(){return t.onBackClick()};else if("cell"===this.xProjectType.diagram&&this.xCurrentDiagramData.title)(n=n.concat("separator",{name:this.xCurrentDiagramData.title,onClick:e}))[0].onClick=function(){return t.onBackClick()};else if(this.isProjectWebsitePlanning&&this.xSitemapSectionBreadcrumbs.length){var r=this.xSitemapSectionBreadcrumbs.length;(n=n.concat(this.xSitemapSectionBreadcrumbs.map((function(e,n){return{name:e.name,onClick:function(){return t.onBreadcrumbClick(r-n-1)}}}))))[0].onClick=function(){return t.onBreadcrumbClick(-1)},n[n.length-1].onClick=e,n=n.reduce((function(t,e){return[].concat(t,"separator",e)}))}return n},hasFileMenu:function(){return this.fileMenuItems.length>0},fileMenuItems:function(){var t=this,e=[];if(this.isContentPage)return e;var n=this.$root.userCan(u.permissionsProject.MODIFY_STRUCTURE),r=this.isInSitemapDiagramEditor&&this.$root.isAllowedFeature(u.constants.FEATURE_CELL_DIAGRAMS),i=n&&this.isProjectEditable&&r,o=!this.isInSitemapDiagramEditor&&!this.isContentTemplate;if(i?e.push({label:"Clone",onClick:this.onDiagramClone}):n&&this.isContentTemplate&&this.isProjectEditable&&this.$root.isAllowedFeature(u.constants.FEATURE_CONTENT)?e.push({label:"Clone",onClick:this.onTemplateClone}):(this.isStandaloneDiagram||this.isProjectWebsitePlanning&&o)&&this.$root.userCan("create_sitemaps")&&e.push({label:"Save as",onClick:this.onProjectSaveAs}),n&&this.isProjectEditable&&(e.push({label:"Rename",onClick:this.onRename}),this.$root.userCan("create_sitemaps")&&e.push({label:"Delete",onClick:this.onDelete})),this.$root.userCan(u.permissionsProject.MANAGE_CONTRIBUTORS)&&e.push({label:this.currentProjectDetails.status===u.constants.STATUS_LOCKED?"Unlock":"Lock",onClick:this.onProjectLockUnlock}),i&&(e.push({label:"Reassign page",onClick:this.onDiagramReassign}),e.push({label:"Export",onClick:this.onDiagramExport}),e.push({label:"Import",onClick:this.onDiagramImport})),r&&e.push({label:"Share diagram",onClick:this.onDiagramShare}),this.isProjectWebsitePlanning&&o){e.length&&e.push("separator");var a=Object.keys(this.xSitemapData.versions);(n||a.length>1)&&(a.forEach((function(n){var r={label:"Version ".concat(t.xSitemapData.versions[n].version),current:n===t.projectAlias};r.current||(r.onClick=function(){return t.onVersionDropdownSelect(n)}),e.push(r)})),n&&e.push("version-form"))}return e},diagramShareLink:function(){return Slickplan.helpers.getLink("".concat(this.xSitemapData.alias,"/diagram/").concat(this.xCurrentDiagramData.alias),!0)}}),methods:k(k({},(0,r.mapActions)({xSetPanel:"panel/set",xSitemapSectionBreadcrumbBack:"sitemapSection/backBreadcrumb"})),{},{onVersionDropdownSelect:function(t){if(t!==Slickplan.globalVars.sitemapAlias){var e=this.$router.resolve({name:"sitemap",params:{sitemap:t}});Slickplan.helpers.navigateTo(e.href,!0)}},onBackClick:function(){this.cameFromSitemap?this.onMainNavClick():this.isContentTemplate?this.onMainNavClick("-content-template"):this.isContentPage?this.onMainNavClick("-content"):this.isInSitemapDiagramEditor?this.onMainNavClick("-diagram"):this.backToDashboard()},onBreadcrumbClick:function(t){this.fileMenuVisible=!1,this.xSitemapSectionBreadcrumbBack(t)},onMainNavClick:function(t){var e=t?null:this.xCurrentSectionId,n={};this.$route.query.template_content&&"-content"===t&&!this.xProjectType.content&&(n.template_content=this.$route.query.template_content),Slickplan.helpers.onboard(!1),this.$root.routerSitemapPush(t,e&&e!==u.constants.SITEMAP_SECTION_MAIN_ID?{section:e}:null,null,n)},onRename:function(){var t=this;return this.fileMenuVisible=!1,this.isContentTemplate?this.onTemplateNameEdit():this.isInSitemapDiagramEditor?this.onDiagramForm("edit",this.xCurrentDiagramData.alias):void this.$modal.show(d.default,{buttonLabel:"Rename",inputs:[{id:"name",label:"Project name",value:this.projectName}],form:{action:function(e){var n=e.name,r=t.isStandaloneDiagram?a.default.diagram.updateDetails({name:n}):a.default.sitemap.setSettings({project:{title:n}});return r.promise.then((function(e){t.isStandaloneDiagram?Slickplan.websocket.storeCommit("diagram/updateCurrent",{title:e.name}):Slickplan.websocket.storeCommit("sitemap/setData",{title:e.title})})),r}}},{name:"confirm",title:"Rename Project"})},onProjectSaveAs:function(){this.fileMenuVisible=!1,this.$modal.show(f.default,{type:this.xProjectTypeName},{title:"Save as new project",width:450})},onTemplateNameEdit:function(){var t=this;this.$modal.show(d.default,{inputs:[{id:"name",label:"Template name",value:this.xContentTemplate.name}],form:{action:function(e){var n=e.name;t.$store.commit("content/updateTemplateData",{alias:t.xContentTemplate.alias,data:{name:n}}),h.EventBus.$emit("throttled-save",{name:{data:n}})}}},{name:"confirm",title:"Template name"})},onTemplateClone:function(){this.fileMenuVisible=!1,this.onTemplateForm(this.xContentTemplate.alias)},onDiagramClone:function(){var t=this;this.fileMenuVisible=!1,this.onDiagramForm("clone",this.xCurrentDiagramData.alias,(function(e){var n=e.diagram;t.onDiagramOpen(n.alias)}))},onDiagramReassign:function(){this.fileMenuVisible=!1,this.onDiagramPageAssign(this.xCurrentDiagramData.alias,this.xCurrentDiagramData.cell_id)},onProjectLockUnlock:function(){var t=this;this.fileMenuVisible=!1;var e=this.currentProjectDetails,n=e.alias,r=e.status,i=a.default.project.setStatus([n],"locked",r!==u.constants.STATUS_LOCKED);return i.promise.then((function(e){var r,i=((null==e||null===(r=e.updated)||void 0===r?void 0:r[n])||{}).status;i&&(Slickplan.websocket.storeCommit(t.isProjectDiagram?"diagram/updateCurrent":"sitemap/setData",{status:i}),t.$notify({destroyAll:!0,type:"success",text:"Project ".concat(i===u.constants.STATUS_LOCKED?"locked":"unlocked")}))})),i},onDelete:function(){var t=this;this.fileMenuVisible=!1,this.isContentTemplate?this.onTemplateDelete(this.xContentTemplate.alias,(function(){return t.onMainNavClick("-content-template")})):this.isInSitemapDiagramEditor?this.onDiagramDelete(this.xCurrentDiagramData.alias,(function(){return t.onMainNavClick("-diagram")})):this.isStandaloneDiagram||this.sitemapVersions.length<=1?this.$modal.showConfirm({items:[this.projectName]},(function(){return t.deleteRequest(t.projectAlias)})):this.sitemapVersions.length>1&&this.$modal.show(p.default,{sitemap:this.projectName,versions:this.sitemapVersions,selected:this.projectAlias,callback:this.deleteRequest},{name:"confirm",title:this.$trans("confirm_deletion"),width:450})},onDiagramExport:function(){var t=this;this.fileMenuVisible=!1,this.$root.ifAllowedFeatureThen(Object.keys(u.constants).filter((function(t){return t.startsWith("FEATURE_EXPORT")})).map((function(t){return u.constants[t]})),(function(){t.$store.commit("project/setExportProjectType","diagram"),t.$store.dispatch("panel/set",{id:"export",visibility:!0,minWidth:477,maxWidth:477,title:"Export diagram",tabs:t.exportTabs()})}))},onDiagramImport:function(){var t=this;this.fileMenuVisible=!1,this.$root.ifAllowedFeatureThen(u.constants.FEATURE_CELL_DIAGRAMS,(function(){t.$modal.show(g.default,{type:"import",diagramId:t.xCurrentDiagramData.alias},{name:"diagram",title:"Import Diagram"})}))},onDiagramShare:function(){this.fileMenuVisible=!1;var t=this.xCurrentDiagramData.title;this.$modal.show(_.default,{type:"normal",project:this.xSitemapData,link:this.diagramShareLink,titleAppend:t,subject:"".concat(this.xSitemapData.title," > ").concat(t),text:this.$trans("messages.share_message_html",{type:"diagram",title:t,url:this.diagramShareLink})},{name:"share",title:"Share diagram",width:550,titleClassName:"no-border"})},onThrottleSaving:function(t){var e=t.status;this.isModalVisible()||this.savingStatus===e||(clearTimeout(this.$options.throttleTimerId),this.savingStatus=e)},deleteRequest:function(t){var e=a.default.project.delete([].concat(t));return e.promise.then(this.backToDashboard).catch(_noop),e},toggleFileMenu:function(){this.fileMenuVisible=!this.fileMenuVisible},backToDashboard:function(){Slickplan.helpers.navigateTo("/dashboard",!0)},isModalVisible:function(){return document.getElementById("modals-container").querySelector(".modal")}}),watch:{"$route.name":{handler:function(t,e){t!==e&&t!==this.routeHistory[this.routeHistory.length-1]&&(this.routeHistory=this.routeHistory.slice(-2),this.routeHistory.push(t))},immediate:!0},xProjectSavingProcesses:function(t){this.onThrottleSaving({status:t.length>0})}},mounted:function(){var t=this;h.EventBus.$on("throttled-saving",this.onThrottleSaving),this.isProjectWebsitePlanning&&this.$route.query.template_content&&!this.xProjectType.content&&this.$nextTick((function(){setTimeout((function(){Slickplan.helpers.onboard(document.getElementById("nav-content"),["Click here to edit content","To edit the content, go to the Content Planner module."],["below","right"],{buttons:[{label:"Got it"}],className:"-dark",margin:22})}),500)})),this.isProjectToolsNavVisible&&this.$nextTick((function(){var e=t.$el.querySelector("._right").getBoundingClientRect().width;t.leftStyle={minWidth:"".concat(parseInt(e,10),"px")}}))},beforeDestroy:function(){clearTimeout(this.$options.throttleTimerId),h.EventBus.$off("throttled-saving",this.onThrottleSaving)}}},15144:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"project-header-dropdown",components:{"version-form":n(38426).default},props:{menu:{type:Array,required:!0}},data:function(){return{versionForm:!1}},methods:{onClick:function(t){"version-form"!==t||this.versionForm?null!=t&&t.onClick&&t.onClick():this.versionForm=!0},toggleMenuHandler:function(t){this.$el.parentElement.contains(t.target)||this.$emit("close")}},mounted:function(){document.addEventListener("mousedown",this.toggleMenuHandler)},beforeDestroy:function(){document.removeEventListener("mousedown",this.toggleMenuHandler)}}},34484:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>_});var r=n(48416),i=n(71995),o=n(49998),a=n(49588),s=n(57832),l=n(43500),c=n(37548),u=n(65056),d=n(14580),f=n(29056),p=n(66404),m=n(22164),h=n(30644);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){var r;return r=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==v(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _={name:"project-header-side-buttons",components:{"partial-dropdown":f.default},mixins:[u.mixinProjectStatus,u.mixinProjectImportExport,p.mixinCommentsBase,h.mixinMockupClick],wsRooms:null,data:function(){return{sideButtonDropdown:!1,chatLabel:"Send a message"}},computed:y(y({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xProjectType:function(t){return t.project.currentProjectType},xCommentsUnread:function(t){return t.comments.counter.globalUnread}})),{},{isSitemapProject:function(){return"sitemap"===this.xProjectTypeName},globalCommentsVisible:function(){return this.canSeeComments&&!this.isStandaloneDiagram},sideButtons:function(){var t=this.$root.userCan(d.permissionsProject.MODIFY_STRUCTURE),e=[{icon:"tool-book-light",label:"Knowledge base articles",onClick:this.onKbClick}];t&&e.push({icon:"tool-keyboard-light",label:"Keyboard shortcuts",onClick:this.onShortcutsClick}),e.push({icon:"tool-puzzle",label:"Integrations",onClick:this.onIntegrationsClick}),window.olark&&e.push({icon:"tool-smile",label:this.chatLabel,onClick:this.onLiveChatClick}),this.isSitemapProject||e.push({icon:"geometry",label:"Diagram symbols guide",onClick:this.onDiagramSymbolsClick});var n=[{icon:"tool-bell",tooltip:"Notifications",counter:this.counterFormat(this.xAccountData.notifications),onClick:this.openNotificationPanel}];return this.globalCommentsVisible&&n.push({icon:"tool-comments-light",tooltip:"General comments",counter:this.counterFormat(this.xCommentsUnread),onClick:this.onOpenComments}),n.push({icon:"tool-help-light",onClick:_noop,submenu:e}),t&&this.isProjectStructureEditable&&n.push({icon:"tool-import-light",tooltip:"Import",onClick:this.onImportClick}),n=[].concat(n,[{icon:"tool-export-light",tooltip:"Export",onClick:this.onExportClick},{icon:"tool-share-light",tooltip:"Share",onClick:this.onShareClick}]),this.$root.userCan(d.permissionsProject.MANAGE_CONTRIBUTORS)&&n.push({icon:"tool-gear-light",tooltip:"Settings",onClick:this.onSettingsClick}),n}}),methods:{onLinkOpen:function(t){Slickplan.helpers.navigateTo(t,!1,!0),this.sideButtonDropdown=!1},onKbClick:function(){this.onLinkOpen(Slickplan.constants.KB_ARTICLES.base)},onDiagramSymbolsClick:function(){this.onLinkOpen("/diagram/symbols")},onShortcutsClick:function(){this.sideButtonDropdown=!1,this.$store.dispatch("panel/set",{id:"shortcuts",visibility:!0,title:"Keyboard Shortcuts",tabs:[{component:s.default}]})},onIntegrationsClick:function(){this.sideButtonDropdown=!1,Slickplan.helpers.navigateTo(this.$router.resolve({name:"integrations"}).href,!0)},onLiveChatClick:function(){if(this.sideButtonDropdown=!1,window.olark){var t=document.getElementById("olark-container");t&&!t.classList.contains("olark-hidden")?(window.olark("api.box.shrink"),document.body.classList.remove("olark-expanded")):(window.olark("api.box.expand"),document.body.classList.add("olark-expanded"))}},onShareClick:function(){Slickplan.helpers.setSlideTransitionHeight(100),this.$modal.show(o.default,{project:Slickplan.helpers.objectMergeDeep(this.currentProjectDetails,{type:this.xProjectTypeName})},{name:"share",title:"Share ".concat(Slickplan.helpers.ucFirst(this.xProjectTypeName)),width:550,minHeight:"sitemap"===this.xProjectTypeName?440:200,titleClassName:"no-border"})},onSettingsClick:function(){this.$modal.show(a.default,null,{closeButton:!1,width:650})},onImportClick:function(){var t=this;this.ifProjectEditable(void 0,!0,Object.keys(d.constants).filter((function(t){return t.startsWith("FEATURE_IMPORT")})).map((function(t){return d.constants[t]}))).then((function(){t.$store.dispatch("panel/set",{id:"import",visibility:!0,minWidth:533,title:"Import project",tabs:t.importTabs}),t.$nextTick((function(){t.$store.dispatch("panel/setNotification",{text:t.$trans("messages.import_warning",{type:t.xProjectTypeName}),format:"markdown"})}))})).catch(_noop)},onExportClick:function(){var t=this;this.$root.ifAllowedFeatureThen(Object.keys(d.constants).filter((function(t){return t.startsWith("FEATURE_EXPORT")})).map((function(t){return d.constants[t]})),(function(){t.$store.commit("project/setExportProjectType",t.xProjectTypeName),t.$store.dispatch("panel/set",{id:"export",visibility:!0,minWidth:477,maxWidth:477,title:"Export project",tabs:t.exportTabs()})}))},onOpenComments:function(){var t="comments";this.$store.dispatch("panel/set",{id:t,visibility:!0,title:"Comments",tabs:[{id:t,component:c.default}]})},openNotificationPanel:function(){var t="notifications";this.$store.dispatch("panel/set",{id:t,visibility:!0,title:"Notifications",tabs:[{id:t,component:l.default}]})},onWebsocketChange:function(t){var e=this,n=t.data;n&&Array.isArray(n)&&n.length&&n.includes(this.xAccountData.id)&&Slickplan.helpers.requestSingle((function(){var t=i.default.user.getNotifications(!1,e.xProjectType.project);return t.promise.then((function(t){t&&t.new&&"number"==typeof t.new&&e.$store.commit("user/set",{notifications:t.new})})).catch(_noop),t}),this.$options.name)},onWebsocketCommentsCount:function(t){var e=t.data;if(e){var n=1;e.type===d.constants.COMMENTS_TYPE_CONTENT_BLOCK?n={type:e.type,id:"".concat(e.cell_id,"-").concat(e.ref_id,"-").concat(e.language)}:e.type===d.constants.COMMENTS_TYPE_PAGE&&(n={type:e.type,id:e.cell_id}),this.$store.commit("comments/increaseCounter",n)}},counterFormat:function(t){return"number"!=typeof t||Number.isNaN(t)||t<0?0:t>999?"".concat(Math.floor(t/1e3),"K+"):t},goToComment:function(t){var e=this,n=t.type,r=t.comment,i=r.parent_id||r.id;n===d.constants.COMMENTS_TYPE_DIAGRAM?r.ref_id&&this.$root.ifAllowedFeatureThen(d.constants.FEATURE_CELL_DIAGRAMS,(function(){e.$store.commit("comments/fromGlobalComments",!1);var t=e.isProjectShared?"sitemap-shared-diagram":"sitemap-diagram-cell";e.$route.name===t&&e.$route.params.diagram===r.ref_id?e.$store.commit("diagram/setMode",["comment",r.parent_id||r.id]):(m.EventBus.$once("diagram-loaded",(function(t){t===r.ref_id&&e.$store.commit("diagram/setMode",["comment",i])})),e.$root.routerSitemapPush(t,{diagram:r.ref_id}))})):n===d.constants.COMMENTS_TYPE_FILE?r.cell_id&&r.ref_id&&this.$root.ifAllowedFeatureThen(d.constants.FEATURE_FILES,(function(){if(e.$store.commit("comments/fromGlobalComments",!1),e.isProjectShared){var t="sitemap-shared-mockup",n=[r.ref_id,r.cell_id].join("t");if(e.$route.name===t&&e.$route.params.mockup===n)e.$store.commit("mockup/setPreviewMode",["comment",i]);else{var o=parseInt(r.ref_id,10);m.EventBus.$once("mockup-loaded",(function(t){t===o&&e.$store.commit("mockup/setPreviewMode",["comment",i])})),e.$route.name===t?m.EventBus.$emit("mockup-change",{cellId:r.cell_id,mockupId:o}):e.$root.routerSitemapPush(t,{mockup:n})}}else e.onClickMockup(r.cell_id,r.file_id,["comment",i],!0)})):n===d.constants.COMMENTS_TYPE_CONTENT_BLOCK?r.cell_id&&r.ref_id&&r.language&&this.$root.ifAllowedFeatureThen(d.constants.FEATURE_CONTENT,(function(){e.$store.commit("comments/fromGlobalComments",r.ref_id);var t=e.isProjectShared?"sitemap-shared-content":"sitemap-content-page-builder";e.$root.routerSitemapPush(t,{cell:r.cell_id},null,{language:r.language})})):r.cell_id&&(this.$store.commit("comments/fromGlobalComments",!0),this.$store.commit("comments/setHighlight",!0),m.EventBus.$emit("cell-click",{cellId:r.cell_id,property:"comments"}))}},watch:{sideButtonDropdown:function(t){t&&(this.chatLabel=window.SLICKPLAN_CHAT_LABEL||"Send a message")}},mounted:function(){var t=this,e=this.xProjectType.project,n=Slickplan.globalVars["".concat(e,"Alias")];this.$options.wsRooms={notified_users:["notifications",n]},this.globalCommentsVisible&&(this.$options.wsRooms["comment.add"]=["comments",n]),Object.keys(this.$options.wsRooms).forEach((function(e){Slickplan.websocket.room(t.$options.wsRooms[e]).listenForWhisper(e,"notified_users"===e?t.onWebsocketChange:t.onWebsocketCommentsCount)})),m.EventBus.$on("comment-click-view",this.goToComment)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name),this.$options.wsRooms&&Object.values(this.$options.wsRooms).forEach((function(t){return Slickplan.websocket.leaveRoom(t)})),m.EventBus.$off("comment-click-view",this.goToComment)}}},35288:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(62280),o=n(57768),a=n(65056),s=n(66404),l=n(92704);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"project-toolbar",components:{ToolbarContent:i.default,ToolbarContentPage:o.default},mixins:[a.mixinProjectStatus,s.mixinCommentsBase,l.mixinContentGlobalComputed],computed:d(d(d({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType},xPanelVisible:function(t){return t.panel.visible},xWindowSize:function(t){return t.core.windowSize},xDiagramMode:function(t){return t.diagram.mode},xContentPageData:function(t){return t.content.builderPageData},xAccountData:function(t){return t.user.user},xWebsocketConnectedUsers:function(t){return t.websocket.connectedUsers}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData",xDiagramWorkflow:"diagram/getWorkflowStatuses",xIsPageLoading:"core/isPageLoading",xIsHeaderVisible:"project/isHeaderVisible"})),{},{hasOtherUsers:function(){var t=this;return this.xWebsocketConnectedUsers.filter((function(e){return e!==t.xAccountData.id})).length>0},toolbarItems:function(){var t=[];this.isSitemap?(this.isProjectShared?t.push("search"):t.push(["search","tools"]),t=t.concat([["orientations","cells-design"],"collapsable"]),this.isProjectShared&&t.push("shared-comments")):this.isDiagramEditor&&!this.xIsPageLoading&&(this.isProjectShared||t.push("diagram-elements"),t=t.concat(["diagram-status",["diagram-grid","diagram-comments"]])),(this.isSitemap||this.isDiagramEditor||this.isContentPage&&!this.isRevisionViewer)&&!this.xIsPageLoading&&!this.isProjectShared&&this.hasOtherUsers&&t.push("connected-users");var e=[];(this.isSitemap||this.isStandaloneDiagram&&!this.xIsPageLoading||this.isInSitemapDiagram&&this.isDiagramEditor&&!this.xIsPageLoading)&&e.push("zoom"),(this.isSitemap||this.isDiagramEditor&&!this.xIsPageLoading)&&this.isProjectStructureEditable&&e.push("revisions");var n={};return t.length&&(n.primary=t.filter((function(t){return t})).map(this.getModule).reduce((function(t,e){return[].concat(t,"separator",e)}))),e.length&&(n.secondary=e.filter((function(t){return t})).map(this.getModule)),n},hasAnyToolbar:function(){var t,e;return(null===(t=this.toolbarItems.primary)||void 0===t?void 0:t.length)||(null===(e=this.toolbarItems.secondary)||void 0===e?void 0:e.length)},maybeNonClickable:function(){return this.isAnyDiagram&&"comment"===this.xDiagramMode[0]?"cursor-not-allowed non-clickable-wrapper":null},isSitemap:function(){var t=this.xProjectType,e=t.sitemap,n=t.diagram,r=t.content,i=t.mockup;return e&&!n&&!r&&!i},isDiagramEditor:function(){return this.isStandaloneDiagram||this.isProjectShared&&this.xProjectType.diagram||"cell"===this.xProjectType.diagram},isInSitemapDiagram:function(){return!this.isStandaloneDiagram&&this.xProjectType.diagram},isAnyDiagram:function(){return this.isStandaloneDiagram||this.xProjectType.diagram},isContent:function(){return"string"==typeof this.xProjectType.content&&this.xProjectType.content.indexOf("-builder")<0},isContentPage:function(){return!0===this.xProjectType.content||this.xProjectType.content&&"page-builder"===this.xProjectType.content},isRevisionViewer:function(){return this.isContentPage&&"revision"===this.xContentPageData.editBlocked},styleAttr:function(){return{transform:this.isProjectShared?"translateY(".concat(this.xWindowSize.headerHeight,"px)"):null,transition:this.isProjectShared?"none":null}},currentDiagramStatus:function(){var t=this;return this.xDiagramWorkflow.find((function(e){return e.alias===t.xCurrentDiagramData.workflow_status}))}}),methods:{getModule:function(t){return Array.isArray(t)?t.map(this.getModule):"separator"===t?t:n(21788)("./".concat(t)).default}}}},75800:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(71995),o=n(65056),a=n(42456);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"toolbar-cells-design",mixins:[o.mixinProjectStatus,a.mixinClickOutside],data:function(){return{isVisible:!1}},computed:c(c(c({},(0,r.mapState)({xProjectSavingProcesses:function(t){return t.project.savingProcesses},xContentSectionId:function(t){return t.content.currentSectionId}})),(0,r.mapGetters)({xCellsDesign:"sitemap/cellsDesign"})),{},{buttons:function(){return[{label:"Page size",key:"box_size",icon:"tool-cell-".concat(this.xCellsDesign.boxSize.charAt(0)),value:this.xCellsDesign.boxSize,options:["Small","Medium","Large"].map((function(t){return{label:t,value:t.toLowerCase(),icon:"tool-cell-".concat(t.charAt(0).toLowerCase())}}))},{label:"Text size",key:"font_size",icon:"tool-text",value:this.xCellsDesign.fontSize,options:[12,14,16].map((function(t){return{value:t,label:"".concat(t,"px")}}))}]}}),methods:{onClick:function(t){this.isVisible===t?this.isVisible=!1:this.isVisible=t},onSelect:function(t,e){this.isVisible=!1,this.save("box_size"===t?e:null,"font_size"===t?e:null)},save:function(t,e){var n=this;this.$store.commit("sitemap/setData",{meta:{cells_ui:{box_size:t,font_size:e}}}),this.isProjectStructureEditable&&!this.isProjectShared&&Slickplan.helpers.requestSingle((function(){var t=i.default.sitemap.setCellBoxSetting(n.xCellsDesign.boxSize,n.xCellsDesign.fontSize);return t.promise.catch(_noop),t}),this.$options.name),this.$store.dispatch("sitemapCell/recalculatePositions",this.xContentSectionId)}}}},53236:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(22164),o=n(65056),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"toolbar-item-collapsable",mixins:[o.mixinProjectStatus],computed:c(c(c({},(0,r.mapState)({xProjectSavingProcesses:function(t){return t.project.savingProcesses},xCellsByParentsWithHidden:function(t){return t.sitemapCell.cellsByParentsWithHidden},xCellsBySection:function(t){return t.sitemapCell.cellsBySections},xCellsBySectionWithHidden:function(t){return t.sitemapCell.cellsBySectionsWithHidden},xCurrentSectionId:function(t){return t.sitemapSection.currentId}})),(0,r.mapGetters)({xGetCellData:"sitemapCell/getData"})),{},{buttons:function(){return[{icon:"tool-collapse",label:"Collapse All",disabled:!this.canCollapseAll,onClick:this.collapseAll},{icon:"tool-expand",label:"Expand All",disabled:!this.canExpandAll,onClick:this.expandAll}]},canCollapseAll:function(){var t=this;return!this.xProjectSavingProcesses.length&&(!this.xCellsByParentsWithHidden[a.constants.CELL_LEVEL_MAIN]||this.xCellsByParentsWithHidden[a.constants.CELL_LEVEL_MAIN].some((function(e){var n;return(null===(n=t.xCellsByParentsWithHidden[e])||void 0===n?void 0:n.length)&&!t.xGetCellData(e,a.constants.CELL_DATA_KEY_COLLAPSED)})))},canExpandAll:function(){var t,e;return!this.xProjectSavingProcesses.length&&(null===(t=this.xCellsBySectionWithHidden[this.xCurrentSectionId])||void 0===t?void 0:t.length)>(null===(e=this.xCellsBySection[this.xCurrentSectionId])||void 0===e?void 0:e.length)}}),methods:{collapseAll:function(){this.canCollapseAll&&this.$store.dispatch("sitemapHelpers/collapseAll",this.isProjectStructureEditable&&!this.isProjectShared)},expandAll:function(){this.canExpandAll&&this.$store.dispatch("sitemapHelpers/expandAll",this.isProjectStructureEditable&&!this.isProjectShared)},handleKeyboardShortcut:function(t){t.event.preventDefault(),t.event.stopPropagation(),"o"===t.key?this.collapseAll():this.expandAll()}},mounted:function(){i.EventBus.$on("keypress-ctrl-o",this.handleKeyboardShortcut),i.EventBus.$on("keypress-ctrl-s",this.handleKeyboardShortcut)},beforeDestroy:function(){i.EventBus.$off("keypress-ctrl-o",this.handleKeyboardShortcut),i.EventBus.$off("keypress-ctrl-s",this.handleKeyboardShortcut)}}},48584:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(6580),o=n(14580);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"toolbar-item-connected-users",components:{"user-avatars":i.default},computed:l(l({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xWebsocketConnectedUsers:function(t){return t.websocket.connectedUsers}})),{},{otherUsers:function(){var t=this;return this.xWebsocketConnectedUsers.filter((function(e){return e!==t.xAccountData.id}))}}),methods:{onChatClick:function(){this.$store.dispatch("websocket/setChatVisibility",o.constants.WEBSOCKET_CHAT_EXPANDED)}}}},61144:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var r=n(48416),i=n(91020),o=n(6580),a=n(70992),s=n(65056),l=n(14580),c=n(97152),u=n(49998),d=n(71995),f=n(22164);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b={name:"toolbar-item-content-page",components:{"user-avatars":o.default},mixins:[s.mixinProjectStatus,a.mixinContentLanguages,a.mixinSitemapCellData,a.mixinContentPage],data:function(){return{isSubmenuVisible:!1,isSavingStatus:!1,isSavingUsers:!1,permissionsProject:l.permissionsProject}},computed:h(h(h({},(0,r.mapState)({xContentBlocks:function(t){return t.content.builderBlocks},xContentPageId:function(t){return t.content.builderPageId},xContentPageData:function(t){return t.content.builderPageData},xContentLanguage:function(t){return t.content.currentLanguage},xSitemapSiteSettings:function(t){return t.sitemap.siteSettings},xTeam:function(t){return t.team.team},xProjectContributors:function(t){return t.project.contributors},xAccountData:function(t){return t.user.user},xWindowSize:function(t){return t.core.windowSize},xSitemapData:function(t){return t.sitemap.details},xCell:function(t){return this.xContentPageId&&t.sitemapCell[this.xContentPageId]||{}}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading",xContentStatuses:"sitemap/contentStatuses"})),{},{canShare:function(){return!this.isProjectShared&&!this.isRevisionViewer},projectShareLink:function(){return Slickplan.helpers.getLink("".concat(this.xSitemapData.alias,"/content/").concat(this.xContentPageId,"?language=").concat(this.xContentPageData.language||this.xContentLanguage),!0)},currentAssigneeText:function(){var t=this;if(this.currentAssignee.length>1)return this.xTeam.filter((function(e){return t.currentAssignee.includes(e.id)})).map((function(t){return t.first_name})).slice(0,2).join(", ")+(this.currentAssignee.length>2?", +".concat(this.currentAssignee.length-2):"");if(this.currentAssignee.length){var e=this.xTeam.find((function(e){return e.id===t.currentAssignee[0]}));if(e)return e.name}return null},projectUsers:function(){var t=this.xProjectContributors.map((function(t){return t.id}));return t.length?this.xTeam.filter((function(e){return t.includes(e.id)})):[]},isRevisionViewer:function(){return"revision"===this.xContentPageData.editBlocked},languagesForClone:function(){var t=this;return this.languages.filter((function(e){return e.value!==t.xContentLanguage}))},maxDropdownHeight:function(){return Math.floor(this.xWindowSize.height-200)}}),methods:{openSubmenu:function(t){this.isSubmenuVisible=this.isSubmenuVisible!==t&&t},openRevisions:function(){this.$store.dispatch("panel/set",{id:"revisions",visibility:!0,title:"Page Revisions",tabs:[{name:"Page Revisions",component:i.default}]})},onDocMouseUp:function(t){t.target&&t.target.closest(".ui-dropdown")||(this.isSubmenuVisible=!1)},updatePageData:function(t,e){e||(this.isSubmenuVisible=!1),t&&!t.language&&Slickplan.websocket.pushContent(this.xContentPageId,this.xContentLanguage,{key:"data",data:t}),this.$store.commit("content/setCurrentBuilderPageData",t)},switchLanguage:function(t){this.$router.push({name:"sitemap-content-page-builder",params:{sitemap:Slickplan.globalVars.sitemapAlias,cell:this.xContentPageId},query:{language:t}}).catch(_noop),this.$store.commit("content/setLanguage",t),this.isSubmenuVisible=!1},switchStatus:function(t){var e=this;if(this.isProjectEditable){var n=t===l.constants.CONTENT_STATUS_UNASSIGNED&&this.xContentPageData.status&&this.xContentPageData.status!==l.constants.CONTENT_STATUS_UNASSIGNED,r=t!==l.constants.CONTENT_STATUS_UNASSIGNED&&this.xContentPageData.status!==t;(n||r)&&(this.updatePageData({status:t}),this.isSavingStatus=!0,this.cellDataUpdate(l.constants.CELL_DATA_KEY_CONTENT_STATUS,!n&&t,this.xContentLanguage,this.xContentPageId).promise.finally((function(){e.isSavingStatus=!1})))}},assignUser:function(t){var e,n=this;if(this.isProjectEditable){var r=Slickplan.helpers.castArray(null===(e=this.xContentPageData)||void 0===e?void 0:e.assignee,[]);r.includes(t)?r=r.filter((function(e){return e!==t})):r.push(t),this.updatePageData({assignee:r},!0),this.isSavingUsers=!0,this.cellDataUpdate(l.constants.CELL_DATA_KEY_CONTENT_ASSIGNEE,!!r.length&&r,this.xContentLanguage,this.xContentPageId).promise.finally((function(){n.isSavingUsers=!1}))}},onCloneFromLanguage:function(t){var e,n,r=this,i=(null===(e=this.languagesForClone.find((function(e){return e.value===t})))||void 0===e?void 0:e.label)||"another language",o=(null===(n=this.languages.find((function(t){return t.value===r.xContentLanguage})))||void 0===n?void 0:n.label)||"this page";this.isSubmenuVisible=!1,this.$modal.show(c.default,{buttonLabel:"Import",html:"<p>Would you like to import content from <b>".concat(i,'</b> page?</p><p class="text-red mt-5">Warning! This action will overwrite your current content for <b>').concat(o,"</b>.</p>"),form:{action:function(){return d.default.sitemap.copyContentFromLanguage(r.xContentPageId,r.xContentLanguage,null,t)},success:function(t){t&&f.EventBus.$emit("content-reload")}}},{name:"confirm",title:"Clone content from ".concat(this.languagesForClone.find((function(e){return e.value===t})).label),width:600})},onShareClick:function(){var t=this.xCell[l.constants.CELL_DATA_KEY_LABEL];this.$modal.show(u.default,{project:this.xSitemapData,link:this.projectShareLink,titleAppend:t,subject:"".concat(this.xSitemapData.title," > ").concat(t),text:this.$trans("messages.share_message_html",{type:"content page",title:t,url:this.projectShareLink})},{name:"share",title:"Share page",width:550,titleClassName:"no-border"})}},watch:{isSubmenuVisible:function(t,e){t&&!e?document.addEventListener("mouseup",this.onDocMouseUp):!t&&e&&document.removeEventListener("mouseup",this.onDocMouseUp)}}}},82459:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(14580);const i={name:"toolbar-item-content",computed:{buttons:function(){var t=this;if("sitemap-content-page-builder"!==this.$route.name){var e="sitemap-content",n=[{id:"",name:"Overview",icon:"tool-folders"},this.$root.userCan(r.permissionsProject.MANAGE_CONTENT)?{id:"-template",name:"Templates",icon:"tool-blocks"}:null,this.$root.userCan(r.permissionsProject.MANAGE_CONTENT)?{id:"-workflow",name:"Workflow Status",icon:"tool-clock"}:null].filter((function(t){return t})).map((function(n){return n.route={name:e+n.id},n.active=t.$route.name.replace(e,"")===n.id,n}));if(n.length>1)return n}return[]}},methods:{onClick:function(t){this.$router.push(t.route).catch(_noop)}}}},90928:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(66404),o=n(65056),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"toolbar-item-diagram-comments",mixins:[o.mixinProjectStatus,i.mixinCommentsBase],computed:c(c({},(0,r.mapState)({xCommentsType:function(t){return t.comments.type},xCommentsLoading:function(t){return t.comments.isLoading},xCommentsCount:function(t){var e;return(null===(e=t.comments.counter)||void 0===e||null===(e=e[a.constants.COMMENTS_TYPE_DIAGRAM])||void 0===e?void 0:e[t.diagram.currentId])||{total:0,unread:0}}})),{},{isCommentMode:function(){var t;return"comment"===(null===(t=this.$store.state.diagram.mode)||void 0===t?void 0:t[0])},isLoading:function(){return this.xCommentsLoading&&this.xCommentsType===a.constants.COMMENTS_TYPE_DIAGRAM}}),methods:{openComments:function(){this.canSeeComments&&this.$store.commit("diagram/setMode",this.isCommentMode?"view":"comment")}}}},61552:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(78064),o=n(15052),a=n(14580),s=n(22164),l=n(42456),c=n(65056),u=n(24832);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"toolbar-item-diagram-elements",mixins:[i.mixinDiagramElementListing,c.mixinProjectStatus,o.mixinDropzone,l.mixinClickOutside],data:function(){return{isSubmenu:null}},computed:p(p({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType}})),{},{isInSitemap:function(){return"sitemap"===this.xProjectType.project},uploadingFile:function(){return!!this.dropzoneFiles.length&&this.dropzoneFiles.find((function(t){return t}))},buttons:function(){return[{type:this.isInSitemap?a.constants.DIAGRAM_ELEMENT_PAGE:a.constants.DIAGRAM_ELEMENT_BLOCK,icon:"tool-page",tooltip:this.isInSitemap?"Page":"Block"},{submenu:"image",type:a.constants.DIAGRAM_ELEMENT_IMAGE,icon:this.uploadingFile?"loading":"tool-image",tooltip:this.uploadingFile?"Uploading (".concat(Math.ceil(this.uploadingFile.progress),"%)"):"Image"},{type:a.constants.DIAGRAM_ELEMENT_GROUP_RECT,icon:"tool-diagram-group",tooltip:"Container"},{type:a.constants.DIAGRAM_ELEMENT_TEXT,icon:"tool-textbox",tooltip:"Text"}]}}),methods:{hideMenu:function(){this.hideSubmenu(),this.isVisible=!1},hideSubmenu:function(){this.isSubmenu=null},onInsertClick:function(){this.isDiagramStructureEditable&&this.onDropdownToggle("insert")},onDropdownToggle:function(t){this.isVisible===t?this.isVisible=!1:this.isVisible=t},onButtonMouseDown:function(t,e){this.isDiagramStructureEditable&&(e.submenu?this.onDropdownToggle(e.submenu):(this.hideMenu(),this.onMouseDown(t,e.id?e:this.getShapeData(e.type))))},onUploadManually:function(){this.hideMenu(),this.dropzoneTriggerUpload()},onSelectFromLibrary:function(){var t=this;this.hideMenu(),this.$store.dispatch("panel/set",{id:"library",visibility:!0,title:"File library",standalone:!0,tabs:[{id:"library",component:u.default,props:{selectable:"image",cancelButton:!0,multiple:!1,onSubmit:function(e,n){var r;null!=n&&null!==(r=n[0])&&void 0!==r&&r.url_full&&(t.dropzoneFiles=[{progress:100}],Slickplan.helpers.checkImageUrl(n[0].url_full).then((function(e){t.onUploadSuccess(n[0],e)})).catch(_noop).finally((function(){t.dropzoneFiles=[]}))),s.EventBus.$emit("panel-close")}}}]})},insertUploadedImage:function(t,e){var n=a.diagramElements[a.constants.DIAGRAM_ELEMENT_IMAGE].sizes,r=Math.max(Math.min(e.width/2,n.max[0]),n.min[0]),i=Math.max(Math.min(e.height/2,n.max[1]),n.min[1]),o=e.height/e.width;o>1?r=i/o:o<1&&(i=r*o);var s=this.addElement(this.getShapeData(a.constants.DIAGRAM_ELEMENT_IMAGE,{width:r,height:i}));return this.$store.commit("diagramItemData/setAndBroadcast",[{id:s.id,key:a.constants.DIAGRAM_ITEM_DATA_KEY_ATTACHMENT,value:t.alias},{id:s.id,key:a.constants.DIAGRAM_ITEM_DATA_KEY_RATIO,value:o}]),s},onUploadSuccess:function(t,e){var n=this.insertUploadedImage(t,e);s.EventBus.$emit("diagram-changed",{action:"element_add",elements:[n.id],connectors:[]}),this.dropzoneFiles=[]}},mounted:function(){if(this.isDiagramStructureEditable){var t=this.$refs.clickable;t&&this.dropzoneInit({dropzone:t,extensions:a.imageFormats,maxFilesize:1,clickable:t})}}}},85140:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"toolbar-item-diagram-grid"}},81812:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(71995),o=n(14580),a=n(65056),s=n(42456);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"toolbar-item-status",mixins:[a.mixinProjectStatus,s.mixinClickOutside],props:{editable:{type:Boolean,default:!0}},data:function(){return{isVisible:!1,isSavingStatus:!1}},computed:u(u({},(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData",xDiagramWorkflow:"diagram/getWorkflowStatuses"})),{},{currentStatus:function(){var t=this,e=this.xCurrentDiagramData.workflow_status?this.xDiagramWorkflow.findIndex((function(e){return e.alias===t.xCurrentDiagramData.workflow_status})):-1;return e<0&&(e=this.xDiagramWorkflow.findIndex((function(t){return t.alias===o.constants.CONTENT_STATUS_UNASSIGNED}))),this.xDiagramWorkflow[Math.max(0,e)]},canEdit:function(){return this.isProjectEditable&&this.editable&&this.$root.userCan(o.permissionsProject.MODIFY_STRUCTURE)}}),methods:{onMenuClick:function(){this.canEdit&&(this.isVisible=!this.isVisible)},onClick:function(t){var e=this,n=t.alias;this.isVisible=!1,this.isSavingStatus=!0,this.$store.commit("diagram/updateCurrent",{workflow_status:n}),Slickplan.helpers.requestSingle((function(){var t=i.default.diagram.updateDetails({workflow_status:n},e.isStandaloneDiagram?null:e.currentProjectDetails.alias);return t.promise.then((function(t){void 0!==(null==t?void 0:t.workflow_status)&&e.$store.commit("diagram/updateCurrent",t)})).catch(_noop).finally((function(){e.isSavingStatus=!1})),t}),this.$options.name)}},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},1200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(14580),o=n(71995),a=n(65056),s=n(42456);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"toolbar-item-orientations",mixins:[a.mixinProjectStatus,s.mixinClickOutside],data:function(){return{isVisible:!1}},computed:u(u(u({},(0,r.mapState)({xProjectSavingProcesses:function(t){return t.project.savingProcesses},xCurrentSectionId:function(t){return t.sitemapSection.currentId}})),(0,r.mapGetters)({xCurrentSectionData:"sitemapSection/getCurrentData"})),{},{currentTemplate:function(){return this.xCurrentSectionData[i.constants.SITEMAP_SECTION_DATA_KEY_ORIENTATION]},orientations:function(){var t=this;return[{id:i.constants.SITEMAP_ORIENTATION_HORIZONTAL,title:"Horizontal"},{id:i.constants.SITEMAP_ORIENTATION_VERTICAL,requiredFeature:i.constants.FEATURE_ORIENTATION_VERTICAL,title:"Vertical"},{id:i.constants.SITEMAP_ORIENTATION_TREE,requiredFeature:i.constants.FEATURE_ORIENTATION_TREE,title:"Family tree"}].map((function(e){return u(u({},e),{},{icon:"tool-".concat(e.id),active:t.currentTemplate===e.id})}))}}),methods:{onToggle:function(){this.isVisible=!this.isVisible},onChange:function(t){var e=this;this.xProjectSavingProcesses.length||(this.isVisible=!1,t.requiredFeature?this.$root.ifAllowedFeatureThen(t.requiredFeature,(function(){e.switchOrientation(t.id)})):this.switchOrientation(t.id))},switchOrientation:function(t){var e=this,n=[this.xCurrentSectionId,i.constants.SITEMAP_SECTION_DATA_KEY_ORIENTATION].join(".");if(this.currentTemplate!==t){var r=d({},i.constants.SITEMAP_SECTION_DATA_KEY_ORIENTATION,t);this.isProjectStructureEditable&&!this.isProjectShared&&Slickplan.helpers.requestSingle((function(){return o.default.sitemap.setSectionOptions(e.xCurrentSectionId,r)}),n),Slickplan.websocket.storeDispatch("sitemapSection/setData",{id:this.xCurrentSectionId,data:r})}}}}},68408:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(71995),o=n(70992),a=n(22164),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"toolbar-item-revisions",mixins:[o.mixinSitemapLoad],data:function(){return{isSubmitting:!1}},computed:u(u(u({},(0,r.mapState)({xProjectUndoRedo:function(t){return t.project.undoRedo},xProjectType:function(t){return t.project.currentProjectType},xProjectSavingProcesses:function(t){return t.project.savingProcesses},xSitemapData:function(t){return t.sitemap.details}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData"})),{},{currentUndoRedo:function(){return this.xProjectUndoRedo[this.xProjectType.diagram?"diagram":"sitemap"]},isSaving:function(){return this.isSubmitting||this.xProjectSavingProcesses.length},canUndo:function(){return!this.isSaving&&this.currentUndoRedo.can_undo},canRedo:function(){return!this.isSaving&&this.currentUndoRedo.can_redo},buttons:function(){return[{id:"undo",name:"Undo",disabled:!this.canUndo},{id:"redo",name:"Redo",disabled:!this.canRedo}]}}),methods:{loadRevision:function(t){"undo"===t&&!this.canUndo||"redo"===t&&!this.canRedo||(document.body.style.pointerEvents="none",this.isSubmitting=t,this.xProjectType.diagram?this.loadRevisionDiagram(t):this.loadRevisionSitemap(t))},loadRevisionDiagram:function(t){var e=this,n=s.constants.PROMISE_QUEUE_DIAGRAM_UPDATE;Slickplan.helpers.requestQueue((function(){var n=i.default.diagram[t](e.xProjectType.sitemap);return n.promise.then((function(n){n&&n.alias?(Slickplan.websocket.room(["diagram",n.alias]).whisper("diagram.update",{user:Slickplan.globalVars.userId,data:{action:t,diagram:n}}),e.$store.dispatch("diagramHelpers/reloadAll",n)):e.displayError(t)})).finally(e.requestFinally),n}),n,!0)},loadRevisionSitemap:function(t){var e=this;Slickplan.helpers.requestQueue((function(){var n=i.default.sitemap[t]();return n.promise.then((function(n){n?(e.loadSitemapStructure(n),n.revision_date&&e.$notify({text:"Loaded revision saved on ".concat(n.revision_date)})):e.displayError(t)})).finally(e.requestFinally),n}),s.constants.PROMISE_QUEUE_SITEMAP_CELLS,!0)},requestFinally:function(){document.body.style.pointerEvents="",this.isSubmitting=!1},displayError:function(t){this.$notify({type:"warning",text:"No ".concat("undo"===t?"older":"newer"," revision to load")})},handleKeyboardShortcut:function(t){t.event.preventDefault(),t.event.stopPropagation(),this.loadRevision("z"===t.key?"undo":"redo")}},mounted:function(){a.EventBus.$on("keypress-ctrl-z",this.handleKeyboardShortcut),a.EventBus.$on("keypress-ctrl-y",this.handleKeyboardShortcut)},beforeDestroy:function(){a.EventBus.$off("keypress-ctrl-z",this.handleKeyboardShortcut),a.EventBus.$off("keypress-ctrl-y",this.handleKeyboardShortcut)}}},58484:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(22164);const i={name:"toolbar-item-search",timerId:null,data:function(){return{search:"",isEnabled:!1}},methods:{onToggle:function(){this.isEnabled=!this.isEnabled,this.isEnabled?this.onClear():this.onClose()},onClear:function(){var t=this;this.search="",this.$nextTick((function(){t.$el.querySelector("input").focus()}))},onClose:function(){this.search="",this.isEnabled=!1},onEscape:function(){this.$el.querySelector("input").blur()},onBlur:function(){this.isEnabled&&""===this.search&&this.onClose()}},watch:{search:function(t){Array.isArray(t)||(t="".concat(t).split(" ")),this.$store.commit("project/setSearchQuery",t.filter((function(t){return!Slickplan.helpers.isBlank(t)})).map((function(t){return Slickplan.helpers.normalizeString(t)})).filter((function(t){return t.length>1})).join(" "))}},mounted:function(){r.EventBus.$on("search-reset",this.onClose)},beforeDestroy:function(){r.EventBus.$off("search-reset",this.onClose)}}},51408:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(66404),o=n(65056),a=n(37548),s=n(22164),l=n(14580);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"toolbar-item-shared-comments",mixins:[o.mixinProjectStatus,i.mixinCommentsBase],computed:d(d({},(0,r.mapState)({xPanelVisible:function(t){return t.panel.visible},xPanelId:function(t){return t.panel.id}})),{},{isCommentMode:function(){return this.xPanelVisible&&this.xPanelId===this.$options.name}}),methods:d(d({},(0,r.mapActions)({xSetPanelVisibility:"panel/setVisible"})),{},{openComments:function(){if(this.canSeeComments)if(this.isCommentMode)this.xSetPanelVisibility(!1);else{var t=this.$options.name;this.$store.dispatch("panel/set",{id:t,visibility:!0,title:"Comments",tabs:[{id:t,component:a.default}]})}},goToComment:function(t){var e=t.type,n=t.comment;e===l.constants.COMMENTS_TYPE_PAGE&&(this.$store.commit("comments/fromGlobalComments",!0),this.$store.commit("comments/setHighlight",!0),s.EventBus.$emit("cell-click",{cellId:n.cell_id,property:"comments"}))}}),mounted:function(){s.EventBus.$on("comment-click-view",this.goToComment)},beforeDestroy:function(){s.EventBus.$off("comment-click-view",this.goToComment)}}},8480:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(82104),o=n(88348),a=n(24832),s=n(65056),l=n(14580);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"toolbar-item-tools",mixins:[s.mixinProjectStatus],computed:d(d({},(0,r.mapState)({xPanelVisible:function(t){return t.panel.visible},xPanelId:function(t){return t.panel.id}})),{},{currentPanelVisible:function(){return this.xPanelVisible?this.xPanelId:null},buttons:function(){return[{icon:"tool-bucket",label:"Styles",disabled:!this.isProjectStructureEditable||!this.$root.isAllowedFeature(l.constants.FEATURE_COLOR_PALETTES),feature:l.constants.FEATURE_COLOR_PALETTES,component:o.default},{icon:"tool-chart",label:"Metrics",disabled:!this.isProjectStructureEditable||!this.$root.isAllowedFeature(l.constants.FEATURE_METRICS),feature:l.constants.FEATURE_METRICS,component:i.default},{icon:"tool-folder",label:"File library",disabled:!this.isProjectStructureEditable||!this.$root.isAllowedFeature(l.constants.FEATURE_FILES),feature:l.constants.FEATURE_FILES,component:a.default}]}}),methods:{onClick:function(t){var e=this;t.disabled||this.$root.ifAllowedFeatureThen(t.feature,(function(){return e.openPanel(t)}))},openPanel:function(t){this.$store.dispatch("panel/set",{id:t.feature,visibility:!0,title:t.label,previewComponent:t.feature===l.constants.FEATURE_METRICS?{component:"overlay"}:null,tabs:[{name:t.label,component:t.component}]})}}}},64140:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(22164);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"toolbar-item-zoom",props:{maxScale:{type:Number,default:150},minScale:{type:Number,default:30},step:{type:Number,default:10}},data:function(){return{scale:100}},computed:s(s({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType},xDiagramScale:function(t){return t.diagram.scale},xSitemapScale:function(t){return t.sitemap.scale}})),{},{zoomOutAllowed:function(){return this.scale-this.step>=this.minScale},zoomInAllowed:function(){return this.scale+this.step<=this.maxScale}}),methods:{zoom:function(t){this.scale!==t&&(this.scale=t,this.xProjectType.diagram?this.$store.commit("diagram/setScale",t/100):this.$store.commit("sitemap/setScale",t/100))},zoomIn:function(){this.zoom(this.parseScale(this.scale+this.step))},zoomOut:function(){this.zoom(this.parseScale(this.scale-this.step))},handleKeyboardShortcut:function(t){t.event.preventDefault(),t.event.stopPropagation(),"0"===t.key?this.zoom(100):"-"===t.key?this.zoomOut():this.zoomIn()},parseScale:function(t){return Math.min(Math.max(parseInt(t,10),this.minScale),this.maxScale)}},mounted:function(){var t=(this.xProjectType.diagram?this.xDiagramScale:this.xSitemapScale)||1;this.scale=this.parseScale(Math.round(100*t)),i.EventBus.$on("keypress-ctrl-+",this.handleKeyboardShortcut),i.EventBus.$on("keypress-ctrl--",this.handleKeyboardShortcut),i.EventBus.$on("keypress-ctrl-0",this.handleKeyboardShortcut)},beforeDestroy:function(){i.EventBus.$off("keypress-ctrl-+",this.handleKeyboardShortcut),i.EventBus.$off("keypress-ctrl--",this.handleKeyboardShortcut),i.EventBus.$off("keypress-ctrl-0",this.handleKeyboardShortcut)}}},63412:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(71995);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"version-field",mixins:[n(42456).formHelpers],data:function(){return{version:"1.0"}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details}})),methods:{increase:function(){var t=this.getVersionMeta(this.version);t.decimal+1e3>=1e4?(t.int+=1,t.decimal=0):t.decimal>0?t.decimal+=1e3:t.int+=1,this.version=this.getFormattedVersion("".concat(t.int,".").concat(t.decimal))},decrease:function(){var t=this.getVersionMeta(this.version);t.decimal-1e3<0?(t.int=Math.max(0,t.int-1),t.decimal=0):t.decimal>=1e3?t.decimal-=1e3:t.int>=1?t.int-=1:(t.int=0,t.decimal=0),this.version=this.getFormattedVersion("".concat(t.int,".").concat(t.decimal))},getVersionMeta:function(t){var e="".concat(t).split("."),n={int:/^[0-9]+$/.test(e[0])?parseInt(e[0],10):0,decimal:e.length>1&&/^[0-9]{1,4}$/.test(e[1])?parseInt(e[1].padEnd(4,"0"),10):0};return n.fixed=parseFloat("".concat(n.int,".").concat(n.decimal)),n},getFormattedVersion:function(t){return Intl.NumberFormat("en-US",{minimumFractionDigits:1,useGrouping:!1}).format(t)},onSubmit:function(){var t=this;this.version=this.getFormattedVersion(this.version),this.formSubmit({action:function(){return i.default.sitemap.newVersion(t.version)},success:function(e){if(e&&e.alias){var n=t.$router.resolve({name:"sitemap",params:{sitemap:e.alias}});Slickplan.helpers.navigateTo(n.href,!0)}}})}},mounted:function(){var t=this;this.version=Math.max.apply(Math,a(Object.values(this.xSitemapData.versions).map((function(e){return t.getVersionMeta(e.version).fixed})))),this.increase()}}},20184:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>k});var r=n(48416),i=n(2376),o=n.n(i),a=n(71995),s=n(97152),l=n(73884),c=n(7820),u=n(40216),d=n(39312),f=n(15716),p=n(99352),m=n(14580),h=n(70992),v=n(52892);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function y(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){var r;return r=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==b(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const k={name:"sitemap-batch-edit",mixins:[h.mixinCellDelete],data:function(){return C(C(C(C({colors:{background:null,text:null,same:{background:!0,text:!0}}},m.constants.CELL_DATA_KEY_LINKS,null),m.constants.CELL_DATA_KEY_NOTE,""),m.constants.CELL_DATA_KEY_ARCHETYPE,null),m.constants.CELL_DATA_KEY_CONTENT_STATUS,null)},computed:S(S(S({},(0,r.mapState)({xSitemapSelectedCells:function(t){return t.sitemapCell.selectedCells},xDefaultSectionData:function(t){return t.sitemapSection.defaultData},xSectionCells:function(t){return t.sitemapCell.cellsBySections[t.sitemapSection.currentId]||[]},xContentLanguage:function(t){return t.content.currentLanguage},xSearchQuery:function(t){return t.project.search},xPanelVisible:function(t){return t.panel.visible}})),(0,r.mapGetters)({xGetAllChildCells:"sitemapCell/getAllChilds",xGetCellData:"sitemapCell/getData",xGetCellColors:"sitemapCell/getColors",xGetCellsSearch:"sitemapCell/getCellsSearch",xGetMaxOrder:"sitemapCell/getMaxOrder"})),{},{buttons:function(){return[{key:"background",requiredFeature:m.constants.FEATURE_CELL_BG_COLOR,label:"Fill"},{key:"text",requiredFeature:m.constants.FEATURE_CELL_TEXT_COLOR,label:"Text"},{key:m.constants.CELL_DATA_KEY_ARCHETYPE,requiredFeature:m.constants.FEATURE_CELL_PAGE_TYPE,icon:"page",label:"Type",onClick:this.openPopoverArchetype},{key:m.constants.CELL_DATA_KEY_LINKS,requiredFeature:m.constants.FEATURE_CELL_LINK,icon:"link",label:"Link",onClick:this.openPopoverLinks},{key:m.constants.CELL_DATA_KEY_NOTE,requiredFeature:m.constants.FEATURE_CELL_NOTE,icon:"edit",label:"Note",onClick:this.openPopoverNotes},{key:m.constants.CELL_DATA_KEY_CONTENT_STATUS,requiredFeature:m.constants.FEATURE_CONTENT,icon:"clock",label:"Status",onClick:this.openPopoverStatus}]},isVisible:function(){return Boolean(this.selectedCount)&&!this.xPanelVisible},selectedCount:function(){return this.xSitemapSelectedCells.length},colorsDefault:function(){return{background:this.xDefaultSectionData[m.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND],text:this.xDefaultSectionData[m.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR]}},actionBarLinks:function(){var t=this,e=[{id:1,label:this.$trans("select_all"),onClick:this.selectAll},{id:2,label:this.$trans("deselect_all"),onClick:this.deselectAll},{id:3,label:this.$trans("delete"),icon:"trash",onClick:this.onDelete},{id:4,label:"Move",icon:"folder-open",onClick:function(){return t.openMovePagesPicker(!1)}},{id:5,label:"Clone",icon:"clone",onClick:function(){return t.openMovePagesPicker(!0)}}];return 1===this.selectedCount&&e.push({id:6,label:"Add subpages",icon:"folder-add",onClick:this.addBulkSubpages}),e},actionBarSideLinks:function(){return[{id:1,label:"Done",onClick:this.deselectAll}]}}),methods:S(S({},(0,r.mapActions)({xSetSelectedCells:"sitemapCell/setSelectedCells",xSetSitemapTempColor:"colors/setTempColor"})),{},{selectAll:function(){this.xSetSelectedCells(this.xSearchQuery?this.xGetCellsSearch(this.xSearchQuery):this.xSectionCells)},deselectAll:function(){this.xSetSelectedCells([])},onClick:function(t,e){var n=this;this.$root.ifAllowedFeatureThen(e.requiredFeature,(function(){e.onClick?e.onClick(t):n.openColorpicker(t,e.key)}))},onDelete:function(){var t=this,e=this.xSitemapSelectedCells.length;this.$modal.showConfirm({htmlText:this.$trans("messages.confirm_deletion_type",{name:e,type:e>1?"pages":"page"}),htmlAppend:'<small class="text-red">Note! All children pages and sub-sections will be deleted as well.</small>'},(function(){var e=t.onCellsDelete(t.xSitemapSelectedCells);return e.promise.then((function(e){e&&t.deselectAll()})).catch(_noop),e}))},addBulkSubpages:function(){var t=this,e=this.xSitemapSelectedCells[0],n=this.xGetCellData(e,m.constants.CELL_DATA_KEY_LEVEL),r={level:"main",label:"Add subpages"};"home"===n?r.order=this.xGetMaxOrder("main"):(r.parent=e,r.order=this.xGetMaxOrder(e)),this.$modal.show(s.default,{buttonLabel:"Add subpages",inputs:[{id:"pages",label:"Enter page names, each in new line",type:"textarea"}],form:{action:function(e){var n=e.pages.split("\n").map((function(t){return"".concat(t).trim()})).filter((function(t){return""!==t}));return n&&n.length&&n.length<=500?(n=n.map((function(t){var e=C(C(C(C(C({},m.constants.CELL_DATA_KEY_ID,Slickplan.helpers.uniqueId()),m.constants.CELL_DATA_KEY_LABEL,t),m.constants.CELL_DATA_KEY_LEVEL,r.level),m.constants.CELL_DATA_KEY_ORDER,++r.order),m.constants.CELL_DATA_KEY_SECTION_ID,Slickplan.globalVars.sectionAlias);return r.parent&&(e[m.constants.CELL_DATA_KEY_PARENT_ID]=r.parent),e})),t.$store.dispatch("sitemapCell/add",n),Slickplan.websocket.storeDispatch("sitemapCell/regroupCells"),t.$store.dispatch("sitemapHelpers/addPages",{cells:n,log:{type:"sitemap",action:"sidebar_add"},asPromise:!0,noUpdate:!0})):(t.$notify({type:"error",text:n.length>500?"Max ".concat(500," pages can be added at once."):"No pages added."}),!1)}}},{name:"confirm",title:r.label})},openMovePagesPicker:function(t){var e=this,n=[],r=this.xSitemapSelectedCells.length;t||(this.xSitemapSelectedCells.forEach((function(t){n=n.concat(t,e.xGetAllChildCells(t))})),r=y(new Set([].concat(this.xSitemapSelectedCells).concat(n))).length);var i="".concat(t?"Clone":"Move"," ").concat(r," ").concat(this.$plural("page",r)," to");this.$modal.show(l.default,{duplicate:!!t,disabled:n,levels:["home","main"],submitLabel:t?"Clone":"Move",formSubmitData:function(n){return{action:function(){return a.default.sitemapCell.massMovePages({cells:e.xSitemapSelectedCells,destination_cell_id:n,duplicate:t?1:0},{type:"sitemap",action:t?"batch_clone":"batch_move"})},success:function(n){if(n){var r=!1;t&&Object.keys(n).length?(r=!0,e.$store.dispatch("sitemapCell/add",n)):o()(n,(function(t,e){void 0===t[m.constants.CELL_DATA_KEY_PARENT_ID]&&(t[m.constants.CELL_DATA_KEY_PARENT_ID]=null),void 0===t[m.constants.CELL_DATA_KEY_LEVEL]&&(t[m.constants.CELL_DATA_KEY_LEVEL]=null),o()(t,(function(t,n){r=!0,Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:e,key:n,value:t})}))})),r&&(Slickplan.websocket.storeDispatch("sitemapCell/regroupCells"),Slickplan.websocket.storeDispatch("sitemapCell/recalculatePositions"),e.deselectAll())}e.$modal.hide("move-pages")},error:Slickplan.catchAll}}},{title:i,name:"move-pages"})},openColorpicker:function(t,e){var n=this;this.$popover.show({component:u.default,props:{close:!1,levels:!1,deletable:!1,resettable:!0,colors:[{id:"color",color:this.colors[e],defaultColor:this.colors[e]}]},options:{width:190},position:{of:t.target.querySelector(".ref")},events:{overlay:function(){return n.onColorReset(e)},change:function(t){return n.onColorChange(t,e)},reset:function(){return n.onColorRemove(e)}},buttons:this.getPopoverButtons({save:function(){(0,v.saveRecentColors)(),n.onColorSave(e)},cancel:function(){n.onColorReset(e),n.confirmWithCookie("".concat(n.$options.name,"-").concat(e),(function(){n.onColorSave(e,!1),n.colorsRefresh()}))}})})},openPopoverArchetype:function(t){var e=this,n=m.constants.CELL_DATA_KEY_ARCHETYPE;this.$popover.show({component:c.default,props:{selected:this[n]},options:{width:360,height:460},position:{of:t.target.querySelector(".ref")},events:{overlay:function(){return e.closePopover},select:function(t){e[n]=t}},buttons:this.getPopoverButtons({save:function(){e[n]&&e.saveChanges(n,e[n])},cancel:function(){e.confirmWithCookie("".concat(e.$options.name,"-").concat(n),(function(){e[n]=null,e.saveChanges(n,!1)}),{text:"Are you sure you want to clear page types on all selected pages?",title:"Clear page types"})},labelCancel:"Clear page types"})})},openPopoverLinks:function(t){var e=this,n=m.constants.CELL_DATA_KEY_LINKS;this.$popover.show({component:f.default,options:{width:256},position:{of:t.target.querySelector(".ref")},events:{overlay:function(){return e.closePopover},clear:function(){e.closePopover(),e.confirmWithCookie("".concat(e.$options.name,"-").concat(n),(function(){e.saveChanges(n,!1)}),{text:"Are you sure you want to clear links on all selected pages?",title:"Clear links"})},submit:function(t){if(e.closePopover(),t){var r=e.xSitemapSelectedCells.map((function(r){var i=e.xGetCellData(r,n);return i?{cell_id:r,key:n,data:[].concat(i,t),language:null}:r})),i=r.filter((function(t){return"object"===b(t)}));(r=r.filter((function(t){return"string"==typeof t})))&&r.length&&i.push({cell_id:r.length>1?r:r[0],key:n,data:[].concat(t),language:null}),e.saveChanges(n,i)}}}})},openPopoverNotes:function(t){var e=this,n=m.constants.CELL_DATA_KEY_NOTE;this.$popover.show({component:d.default,props:{initialValue:this[n]||""},options:{width:305,className:"no-padding"},position:{of:t.target.querySelector(".ref")},events:{overlay:function(){return e.closePopover},change:function(t){e[n]="string"==typeof t?t:""}},buttons:this.getPopoverButtons({save:function(){e.xSitemapSelectedCells.length>1&&e.xSitemapSelectedCells.some((function(t){return e.xGetCellData(t,n)}))?e.$modal.show(s.default,{text:"Existing notes will be replaced",buttonLabel:"Continue",form:{action:function(){e.saveChanges(n,e[n])}}},{name:"confirm",title:"Confirm overwrite"}):e.saveChanges(n,e[n])},cancel:function(){e.confirmWithCookie("".concat(e.$options.name,"-").concat(n),(function(){e[n]="",e.saveChanges(n,!1)}),{text:"Are you sure you want to clear notes on all selected pages?",title:"Clear notes"})},labelCancel:"Clear notes"})})},openPopoverStatus:function(t){var e=this,n=m.constants.CELL_DATA_KEY_CONTENT_STATUS;this.$popover.show({component:p.default,options:{maxWidth:200},position:{of:t.target.querySelector(".ref")},events:{overlay:function(){return e.closePopover},delete:function(){e.closePopover(),e.saveChanges(n,!1)},submit:function(t){e.closePopover(),e.saveChanges(n,t)}}})},getPopoverButtons:function(t){var e=this,n=t.save,r=t.cancel;return[{id:"save",className:["-primary","-smaller","float-right"],label:t.labelApply||"Apply",onClick:function(){e.closePopover(),n()}},{id:"cancel",className:["-plain","-smaller","-highlight","-first","float-right"],label:t.labelCancel||"Clear",onClick:function(){e.closePopover(),r()}}]},closePopover:function(){this.$popover.hide()},getPreselected:function(t){for(var e=null,n=0,r=this.xSitemapSelectedCells.length;n<r;++n){var i=this.xGetCellData(this.xSitemapSelectedCells[n],t);if(null===e&&i)e=i;else if(null!==e&&e!==i){e=null;break}}return e},refreshPreselected:function(){var t=this;[m.constants.CELL_DATA_KEY_NOTE,m.constants.CELL_DATA_KEY_ARCHETYPE].forEach((function(e){t[e]=t.getPreselected(e)})),this[m.constants.CELL_DATA_KEY_LINKS]=null,this.status=null,this.colorsRefresh()},confirmWithCookie:function(t,e,n){var r=this,i=this.$cookies.get("warning_confirms")||{};if(i&&i[t])e();else{var o=n&&n.title?n.title:"Clear format";this.$modal.show(s.default,{text:n&&n.text?n.text:"Are you sure you want to clear formatting and restore default style on all selected pages?",buttonLabel:o,inputs:[{id:"suppress",label:"Don’t ask me again",value:1,type:"checkbox",style:{marginTop:"1rem"}}],form:{action:function(n){n.suppress&&(i[t]=1,r.$cookies.set("warning_confirms",i)),e()}}},{name:"confirm",title:o})}},saveChanges:function(t,e){var n,r={cell_id:this.xSitemapSelectedCells,key:t,data:e,language:t===m.constants.CELL_DATA_KEY_CONTENT_STATUS?this.xContentLanguage:null};e&&("object"===b(e)&&e.cell_id&&e.key||Array.isArray(e)&&e.length&&e[0].cell_id&&e[0].key)&&(r=e),!1===e?(r.keys=[t],n=["removeData","massRemoveData"]):n=["updateData","massSaveData"],Slickplan.websocket.storeDispatch("sitemapCell/".concat(n[0]),r),Slickplan.helpers.requestSingle((function(){return a.default.sitemapCell[n[1]](r,{type:"sitemap",action:"batch_edit",meta:{}})}),"batch_edit-".concat(t))},colorsRefresh:function(){for(var t,e,n={background:!0,text:!0},r=0,i=this.xSitemapSelectedCells.length;r<i;++r)if(t=this.xGetCellColors(this.xSitemapSelectedCells[r]),0===r)e=t;else if(n.text&&e.text!==t.text&&(e.text=this.colorsDefault.text,n.text=!1),n.background&&e.background!==t.background&&(e.background=this.colorsDefault.background,n.background=!1),!n.text&&!n.background)break;this.colors.background=e.background,this.colors.text=e.text,this.colors.same=n},onColorChange:function(t,e){t&&t.color&&Slickplan.helpers.isHex(t.color)&&(this.colors[e]=t.color,this.$store.dispatch("colors/setTempColor",{type:"cells",id:this.xSitemapSelectedCells,key:e,color:t.color}))},onColorReset:function(t){this.onColorRemove(t),this.$store.dispatch("colors/removeTempColor"),this.colorsRefresh(),this.closePopover()},onColorRemove:function(t){this.colors[t]=null,this.xSetSitemapTempColor({type:"cells",id:this.xSitemapSelectedCells,key:t,color:!1}),this.colorsRefresh()},onColorSave:function(t,e){var n=void 0!==e;(this.colors[t]||n)&&this.saveChanges("background"===t?m.constants.CELL_DATA_KEY_BG_COLOR:m.constants.CELL_DATA_KEY_TEXT_COLOR,n?e:this.colors[t]),this.closePopover()}}),watch:{selectedCount:function(t,e){t&&!e?this.$store.commit("actionBar/set",{isVisible:!0,doneButton:!1,count:t,links:this.actionBarLinks,sideLinks:this.actionBarSideLinks,columns:[4,6,2]}):!t&&e?this.$store.commit("actionBar/reset"):t&&(this.colorsRefresh(),this.$store.commit("actionBar/update",{count:t,links:this.actionBarLinks})),t&&this.refreshPreselected()}}}},13124:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var r=n(48416),i=n(38856),o=n(93736),a=n(10916),s=n(40980),l=n(14580),c=n(65056),u=n(70992),d=n(22164),f=n(66404);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const g={name:"sitemap-cell-normal",components:{"workflow-status":s.default,"field-textarea":a.default,"icon-archetype":i.default,"blocked-by":o.default},mixins:[c.mixinProjectStatus,f.mixinCommentsBase,u.mixinSitemapCellData,u.mixinSitemapCellLabel,u.mixinSitemapCellClone],icons:[{icon:"metrics-2",tooltip:"Metrics"},{icon:"note",tooltip:"Note",prop:l.constants.CELL_DATA_KEY_NOTE},{icon:"link-2",tooltip:"Links",prop:l.constants.CELL_DATA_KEY_LINKS},{icon:"image",tooltip:"Design Mockups",prop:l.constants.CELL_DATA_HAS_MOCKUPS},{icon:"drawer",tooltip:"Attachments",prop:l.constants.CELL_DATA_HAS_FILES},{icon:"diagram",tooltip:"Diagram Maker",prop:l.constants.CELL_DATA_HAS_DIAGRAMS},{icon:"file",tooltip:"Content Planner",prop:l.constants.CELL_DATA_HAS_CONTENT},{icon:["comments-2","comments"],tooltip:"Comments",prop:"comments"},{icon:"menu-dots",tooltip:"Open properties",classes:"nc-icon-rotate-90"}],mouseDownEvent:null,clonedCell:null,expandOnDrop:!1,scrollableWrapper:null,scrollByFast:50,scrollBySlow:10,mountedPosition:!1,lastIconsList:null,props:{cellId:{type:String,required:!0},search:{type:Boolean,default:!1}},data:function(){return{dragX:0,dragY:0,dragCancel:!1,allChilds:[],isChecked:!1,isReadonly:!0,isActiveCell:!1,isNew:!1,isDraggingAnyCell:!1,isDraggingThisCell:!1,isCurrentCell:!1,isMounted:!1,hasAddHomepage:!1,hasAddSubpage:!1,hasAddPrevPage:!1,hasAddNextPage:!1,hasCollapsed:!1,canCollapse:!1,dropareas:[],buttons:[],styles:null,labelTooltip:null,textareaHeight:0}},computed:b(b(b({},(0,r.mapState)({xCell:function(t){return t.sitemapCell[this.cellId]||{}},xWebsocketEditingBy:function(t){return t.sitemapCell.websocketEditingBy[this.cellId]||!1},xPageCommentsCount:function(t){return t.comments.counter[l.constants.COMMENTS_TYPE_PAGE][this.cellId]||{total:0,unread:0}},xSitemapData:function(t){return t.sitemap.details},xCellsByParents:function(t){return t.sitemapCell.cellsByParents},xIsHomeCellPresent:function(t){return t.sitemapCell.isHomeCellPresent},xActiveCell:function(t){return t.sitemapCell.activeCell},xCellsByParentsWithHidden:function(t){return t.sitemapCell.cellsByParentsWithHidden},xSitemapCellDragging:function(t){return t.sitemapCell.dragging},xSitemapNewCell:function(t){return t.sitemapCell.newCell},xSitemapSelectedCells:function(t){return t.sitemapCell.selectedCells},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xPanelVisible:function(t){return t.panel.visible},xPanelId:function(t){return t.panel.id},xPanelCurrentTab:function(t){return t.panel.currentTab},xArchetypes:function(t){return t.sitemap.archetypes},xCurrentSectionId:function(t){return t.sitemapSection.currentId}})),(0,r.mapGetters)({xCellsDesign:"sitemap/cellsDesign",xContentStatuses:"sitemap/contentStatuses",xGetCellData:"sitemapCell/getData",xGetCellLevel:"sitemapCell/getLevel",xGetPrevCell:"sitemapCell/getPrevCell",xGetNextCell:"sitemapCell/getNextCell",xGetAllChildCells:"sitemapCell/getAllChilds"})),{},{labelTextWithNumbering:{get:function(){return(this.isReadonly?this.numbering:"")+this.labelText},set:function(t){this.setLabelText(t,!0)}},isHover:function(){return this.isActiveCell&&!this.isDraggingAnyCell&&!this.isBatchEdit&&!this.xWebsocketEditingBy&&!this.xPanelVisible},isPanelPropertiesVisible:function(){return this.xPanelVisible&&"cell"===this.xPanelId},isPlaceholder:function(){return this.cellId===l.constants.CELL_ID_DROP_PLACEHOLDER},isSectionHome:function(){return this.cellId===l.constants.CELL_ID_HOME_PLACEHOLDER},isBatchEdit:function(){return this.xSitemapSelectedCells.length},isSearchResult:function(){return this.search},hasSection:function(){return this.isSectionHome||!this.isPlaceholder&&!this.isNew&&this.subsectionId},hasStatus:function(){return!this.isPlaceholder&&!this.isNew&&Slickplan.helpers.getValue(this.xCell,[l.constants.CELL_DATA_KEY_CONTENT_STATUS,this.xContentLanguage])},hasParent:function(){return this.xCell[l.constants.CELL_DATA_KEY_PARENT_ID]},hasConnection:function(){return!this.isPlaceholder&&(this.hasParent||this.level===l.constants.CELL_LEVEL_MAIN&&(this.xIsHomeCellPresent||[].concat(this.xCellsByParents[l.constants.CELL_LEVEL_MAIN]).length>1))&&!this.isSearchResult},propertiesButton:function(){return this.$options.icons.find((function(t){return"menu-dots"===t.icon}))},subsectionId:function(){return this.xCell[l.constants.CELL_DATA_KEY_SUBSECTION]?this.xCell[l.constants.CELL_DATA_KEY_SUBSECTION].split(":").pop():null},subsectionIsLink:function(){return String(this.xCell[l.constants.CELL_DATA_KEY_SUBSECTION]).indexOf(":")>=0},label:function(){return this.xCell[l.constants.CELL_DATA_KEY_LABEL]},realLevel:function(){return this.isSectionHome?l.constants.CELL_LEVEL_HOME:this.xGetCellLevel(this.cellId)},level:function(){return this.isSectionHome?l.constants.CELL_LEVEL_HOME:this.xCell[l.constants.CELL_DATA_KEY_LEVEL]||l.constants.CELL_LEVEL_MAIN},numbering:function(){if(this.level===l.constants.CELL_LEVEL_MAIN&&this.xSitemapData.meta.numbering){var t=this.xCell[l.constants.CUSTOM_CELL_DATA_NUMBERING];if(t&&t.length)return"".concat(t.join("."),". ")}return""},classes:function(){var t=["cell","cell-".concat(this.cellId)],e=this.xSitemapCellDragging.clone;return this.isPlaceholder&&"string"==typeof e&&t.push("is-clone-".concat(e)),this.isSectionHome||(t.push(this.isDraggingThisCell?"is-dragging":this.hasParent?"is-child":this.level===l.constants.CELL_LEVEL_MAIN?"is-root":"is-leaf"),this.isBatchEdit&&this.isChecked&&t.push("is-checked")),this.hasSection?t.push("is-section"):(t.push("cell-".concat(this.realLevel)),this.archetype&&this.archetype.id&&t.push("cell-archetype-".concat(this.archetype.id))),this.isNew?t.push("is-new"):this.isHover?t.push("is-hover"):this.isCurrentCell&&!this.isBatchEdit&&t.push("is-current"),this.isMounted||t.push("no-transitions"),this.buttons.length&&"small"!==this.xCellsDesign.boxSize&&t.push("has-props"),this.hasStatus&&"large"===this.xCellsDesign.boxSize&&t.push("has-status"),t},archetype:function(){var t=this.xCell[l.constants.CELL_DATA_KEY_ARCHETYPE];return t&&this.xArchetypes[t]?this.xArchetypes[t]:null},autosizeKey:function(){return[this.xCellsDesign.boxSize,this.xCellsDesign.fontSize,this.xSitemapData.meta.regular_case?"r":"u"].join("-")}}),methods:b(b({},(0,r.mapActions)({xSetCellDragging:"sitemapCell/setDragging",xSetCellOnHover:"sitemapCell/onHover",xSetSelectedCells:"sitemapCell/setSelectedCells",xSitemapSectionBreadcrumbBack:"sitemapSection/backBreadcrumb"})),{},{onHover:function(){this.hasAddHomepage=this.isProjectStructureEditable&&!this.isNew&&this.level===l.constants.CELL_LEVEL_MAIN&&!this.hasParent&&!this.xIsHomeCellPresent,this.hasAddSubpage=this.isProjectStructureEditable&&!this.isNew&&this.level!==l.constants.CELL_LEVEL_UTIL&&this.level!==l.constants.CELL_LEVEL_FOOT,this.hasAddPrevPage=this.isProjectStructureEditable&&!this.isNew&&this.level!==l.constants.CELL_LEVEL_HOME,this.hasAddNextPage=this.isProjectStructureEditable&&!this.isNew&&this.level!==l.constants.CELL_LEVEL_HOME,this.reloadCollapseData();var t=this.$el.querySelector("textarea");if(t){var e=t.style.height?Math.floor(parseFloat(t.style.height)):0;this.labelTooltip=this.textareaHeight>0&&e>this.textareaHeight?this.labelText:null}},onDragUpdate:function(t){var e=t===this.cellId;this.isDraggingThisCell!==e&&(this.isDraggingThisCell=e),e=Boolean(t),this.isDraggingAnyCell!==e&&(this.isDraggingAnyCell=e,this.reloadDragContainers(t))},onClick:function(t,e){d.EventBus.$emit("cell-click",{cellId:this.cellId,property:t,data:e,fromCell:!0})},onDragStart:function(t){var e=this;this.websocketBlock(),this.xSetCellDragging({from:this.cellId,to:null,type:null,clone:null}),this.dragCancel=!1,this.allChilds=this.xGetAllChildCells(this.cellId);var n=[];this.$options.clonedCell=document.createElement("div"),this.$options.clonedCell.className=["dragging-wrapper","cells-box-".concat(this.xCellsDesign.boxSize),"cells-font-".concat(this.xCellsDesign.fontSize)].join(" ");var r=this.allChilds.length;if(r){r=Math.min(r,2);for(var i=0;i<r;i+=1){var o=document.getElementById(this.allChilds[i]);o&&n.push(this.dragCloneCell(o,!1,"child-".concat(i+1)))}}this.dragCloneCell(this.$el,!0),document.body.appendChild(this.$options.clonedCell),document.body.classList.add("is-dragging"),setTimeout((function(){if(e.$options.clonedCell)for(var t=0;t<n.length;t+=1)n[t].style.opacity="",n[t].style.transform="";e.$options.clonedCell.classList.add("moved")}),10),this.canCollapse&&!this.hasCollapsed&&(this.$options.expandOnDrop=!0,this.$store.dispatch("sitemapCell/updateData",{cell_id:this.cellId,key:l.constants.CELL_DATA_KEY_COLLAPSED,value:!0})),document.addEventListener("keydown",this.onDragKeyPressCheckClone),document.addEventListener("keyup",this.onDragKeyPressCheckClone),this.onDragKeyPressCheckClone(t)},onDragEnd:function(){var t=this;this.websocketUnblock(),this.$options.clonedCell&&(this.$options.clonedCell.parentNode.removeChild(this.$options.clonedCell),this.$options.clonedCell=null),document.body.classList.remove("is-dragging"),this.$options.expandOnDrop&&this.$store.dispatch("sitemapCell/updateData",{cell_id:this.cellId,key:l.constants.CELL_DATA_KEY_COLLAPSED,value:!1});var e=!0,n=this.xSitemapCellDragging,r=n.id,i=n.clone,o=n.type,a=n.to;!this.dragCancel&&r&&(i&&"string"==typeof i?(this.xSetCellDragging({clone:!0}),e=!1,this.isDraggingThisCell=!1,this.onCloneSubmit(this.cellId,{type:i,destination_cell_id:a,where:o,destination_section_id:this.xCurrentSectionId,keys:["archetype","url","desc","colors","files","mockups","content","diagrams"]},(function(){return t.xSetCellDragging()}))):this.$store.dispatch("sitemapHelpers/movePage",this.xSitemapCellDragging)),e&&this.xSetCellDragging()},onMouseUpdate:function(t){var e=this.$el.getBoundingClientRect();this.$options.mouseDownEvent={x:t.clientX,y:t.clientY,xRelative:t.clientX-e.left,yRelative:t.clientY-e.top,scrollable:this.$options.scrollableWrapper.getBoundingClientRect()}},onMouseDown:function(t){if(!this.xWebsocketEditingBy)if(this.xSitemapSelectedCells.length&&this.isProjectStructureEditable)this.onCellSelect(t);else if(this.isPanelPropertiesVisible){var e={files:l.constants.CELL_DATA_HAS_FILES,feedback:"comments"};this.onClick(e[this.xPanelCurrentTab.replace("panel-tab-","")]||this.propertiesButton.prop)}else if(this.isProjectStructureEditable){if(this.isPlaceholder||this.isSectionHome||t.target&&"textarea"===String(t.target.tagName).toLowerCase())return;this.$options.scrollableWrapper=document.getElementById("project-scrollable"),this.onMouseUpdate(t),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("keydown",this.onDragKeyPress)}},onMouseMove:function(t){var e=Math.abs(t.clientX-this.$options.mouseDownEvent.x)>4||Math.abs(t.clientY-this.$options.mouseDownEvent.y)>4;if(!this.isDraggingThisCell&&e&&(this.onMouseUpdate(t),this.onDragStart(t)),this.isDraggingThisCell&&this.$options.clonedCell){var n={x:0,y:0},r={top:t.clientY-this.$options.mouseDownEvent.scrollable.top,bottom:this.$options.mouseDownEvent.scrollable.bottom-t.clientY,left:t.clientX-this.$options.mouseDownEvent.scrollable.left,right:this.$options.mouseDownEvent.scrollable.right-t.clientX};r.top<=100?n.y=r.top<=50?-this.$options.scrollByFast:-this.$options.scrollBySlow:r.bottom<=100&&(n.y=r.bottom<=50?this.$options.scrollByFast:this.$options.scrollBySlow),r.left<=100?n.x=r.left<=50?-this.$options.scrollByFast:-this.$options.scrollBySlow:r.right<=100&&(n.x=r.right<=50?this.$options.scrollByFast:this.$options.scrollBySlow),(n.x||n.y)&&this.$options.scrollableWrapper.scrollBy(n.x,n.y),this.dragX=t.clientX-this.$options.mouseDownEvent.xRelative,this.dragY=t.clientY-this.$options.mouseDownEvent.yRelative,this.$options.clonedCell.style.transform="translate(".concat(this.dragX,"px, ").concat(this.dragY,"px)");var i=document.elementFromPoint(t.clientX,t.clientY),o=i?i.closest(".cell-droparea"):null;if(o){var a=o.dataset.type;if(Slickplan.helpers.isSitemapLevel(a))this.xSetCellDragging({type:a,to:null});else{var s=o.closest(".cell");s&&s.id!==this.cellId&&this.xSetCellDragging({to:s.id,type:a})}}}},onMouseUp:function(){document.removeEventListener("keydown",this.onDragKeyPressCheckClone),document.removeEventListener("keyup",this.onDragKeyPressCheckClone),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("keydown",this.onDragKeyPress),this.isDraggingThisCell&&this.onDragEnd(),this.$options.scrollableWrapper=null},onDragKeyPress:function(t){"Esc"!==t.key&&"Escape"!==t.key||!this.isDraggingThisCell||(this.dragCancel=!0,this.onMouseUp())},onDragKeyPressCheckClone:function(t){var e,n=this.xSitemapCellDragging,r=n.from,i=n.clone;if(!0!==i)if("keyup"!==t.type){var o=t.ctrlKey||t.metaKey,a=t.altKey||t.shiftKey,s=r&&(null===(e=this.xCellsByParentsWithHidden[r])||void 0===e?void 0:e.length);s&&o&&!a&&"all"!==i?this.xSetCellDragging({clone:"all"}):(!s&&o||a&&!o)&&"page"!==i&&this.xSetCellDragging({clone:"page"})}else this.xSetCellDragging({clone:null})},dragCloneCell:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=window.getComputedStyle(t),i=t.classList.contains("is-section"),o=t.cloneNode(!0);if(o.className=e?"cell is-dragging-clone":"cell is-dragging-child",o.removeAttribute("style"),i&&(o.className+=" is-section"),n&&(o.className+=" ".concat(n)),o.style.color=r.getPropertyValue("color"),o.style.backgroundColor=r.getPropertyValue("background-color"),o.id+="-clone",e)this.$options.clonedCell.appendChild(o);else{var a=t.getBoundingClientRect();a&&(o.style.opacity=1,o.style.transform="translate(".concat(Math.round(a.left-this.$options.mouseDownEvent.x+this.$options.mouseDownEvent.xRelative),"px, ").concat(Math.round(a.top-this.$options.mouseDownEvent.y+this.$options.mouseDownEvent.yRelative),"px) rotate(0deg)")),this.$options.clonedCell.prepend(o)}return o},onClickAddPage:function(t){l.constants.CELL_ADD_SUBPAGE&&this.hasCollapsed&&this.onClickExpandCollapse(),this.$store.dispatch("sitemapCell/new",{to:this.cellId,type:t})},onClickExpandCollapse:function(){var t=this,e=!this.hasCollapsed;this.isProjectStructureEditable&&Slickplan.helpers.requestSingle((function(){return t.cellDataUpdate(l.constants.CELL_DATA_KEY_COLLAPSED,e,null,t.cellId)}),[this.cellId,l.constants.CELL_DATA_KEY_COLLAPSED].join("-")),this.$store.dispatch("sitemapCell/updateData",{cell_id:this.cellId,key:l.constants.CELL_DATA_KEY_COLLAPSED,value:e})},onInputFocus:function(){this.isProjectStructureEditable&&this.isReadonly&&(this.isReadonly=!1)},onInputBlur:function(t){var e=this;if(this.isProjectStructureEditable){t.target.scrollTop=0,window.getSelection&&window.getSelection().removeAllRanges(),this.websocketUnblock();var n=this.setLabelText(this.labelText),r=!0;this.isNew?(n?(this.$store.dispatch("sitemapHelpers/addPages",{cells:y(y({},l.constants.CELL_DATA_KEY_ID,this.cellId),l.constants.CELL_DATA_KEY_LABEL,n)}),this.$nextTick((function(){e.isActiveCell&&e.onHover()}))):(r=!1,this.$store.dispatch("sitemapCell/delete",this.cellId)),this.$store.dispatch("sitemapCell/clearNew")):n?this.isProjectStructureEditable&&n!==this.$options.labelTextBackup&&this.saveLabelText(this.cellId,n):this.setLabelText(this.$options.labelTextBackup),r&&(this.isReadonly=!0)}},onSectionIconClick:function(){this.onClick(l.constants.CELL_DATA_KEY_SUBSECTION,this.subsectionId)},onSectionBack:function(){this.xSitemapSectionBreadcrumbBack()},onCellSelect:function(t){var e=[this.cellId];(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)&&(e=e.concat(this.xGetAllChildCells(this.cellId))),this.isChecked?this.xSetSelectedCells(this.xSitemapSelectedCells.filter((function(t){return!e.includes(t)}))):this.xSetSelectedCells(m(new Set(e.concat(this.xSitemapSelectedCells))))},reloadButtons:function(t){var e=this,n=this.$options.icons.filter((function(n){return"menu-dots"!==n.icon&&("comments"===n.prop?e.canSeeComments&&e.xPageCommentsCount.total:n.prop&&!Slickplan.helpers.isBlank(t[n.prop]))})).map((function(t){var n={icon:t.icon,prop:t.prop,tooltip:t.tooltip,count:0};return"comments"===t.prop?b(b({},n),{},{icon:e.xPageCommentsCount.unread?t.icon[1]:t.icon[0],count:e.xPageCommentsCount.total,classes:e.xPageCommentsCount.unread?"-unread":null}):n})),r=n.map((function(t){return"".concat(t.icon,"=").concat(t.count)})).join(":");r!==this.$options.lastIconsList&&(this.$options.lastIconsList=r,this.buttons=n)},reloadPosition:function(t){if(this.isSearchResult)this.styles="";else if(t&&"number"==typeof t.x&&"number"==typeof t.y){var e="transform: translate(".concat(t.x,"px, ").concat(t.y,"px)");this.styles!==e&&(this.styles=e,this.$options.mountedPosition&&!this.isMounted&&(this.isMounted=!0),this.$options.mountedPosition=!0)}},reloadCollapseData:function(){var t=this;this.hasCollapsed=!this.isNew&&this.xCell[l.constants.CELL_DATA_KEY_COLLAPSED],this.canCollapse=!this.isNew&&this.level===l.constants.CELL_LEVEL_MAIN&&this.xCellsByParentsWithHidden[this.cellId]&&this.xCellsByParentsWithHidden[this.cellId].find((function(e){return e!==t.xSitemapNewCell}))},reloadDragContainers:function(t){var e=[];t&&this.xGetNextCell(t)!==this.cellId&&e.push(l.constants.CELL_ADD_BEFORE),t&&this.xGetPrevCell(t)!==this.cellId&&e.push(l.constants.CELL_ADD_AFTER),t&&this.xGetCellData(t,l.constants.CELL_DATA_KEY_PARENT_ID)!==this.cellId&&e.push(l.constants.CELL_ADD_SUBPAGE),this.dropareas.length!==e.length&&(this.dropareas=e)},reloadIsChecked:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xSitemapSelectedCells,e=t.length&&t.includes(this.cellId);this.isChecked!==e&&(this.isChecked=e)},websocketBlock:function(){Slickplan.websocket.pushSitemap({store:{commit:"sitemapCell/setEditingBy",payload:{user:Slickplan.globalVars.userId,cells:[this.cellId]}}})},websocketUnblock:function(){Slickplan.websocket.pushSitemap({store:{commit:"sitemapCell/resetEditingBy",payload:{user:Slickplan.globalVars.userId}}})},inputFocus:function(){var t=this.$el.querySelector("textarea");t&&t!==document.activeElement&&t.focus()}}),watch:{isReadonly:function(t,e){!t&&e&&(this.$options.labelTextBackup=this.labelText,this.websocketBlock(),this.inputFocus())},xCell:{handler:function(t){t&&(this.setLabelText(t[l.constants.CELL_DATA_KEY_LABEL]),this.reloadButtons(t),this.reloadPosition(t),this.onHover())},deep:!0},xPageCommentsCount:{handler:function(t,e){t.total===e.total&&t.unread===e.unread||this.reloadButtons(this.xCell)},deep:!0},xActiveCell:function(t){var e=t===this.cellId;this.isActiveCell!==e&&(this.isActiveCell=e,e&&this.onHover())},xCurrentCellAlias:function(t){var e=t===this.cellId;this.isCurrentCell!==e&&(this.isCurrentCell=e,e?this.websocketBlock():this.websocketUnblock())},xSitemapNewCell:function(t){var e=t===this.cellId;this.isNew!==e&&(this.isNew=e)},"xSitemapCellDragging.from":{handler:function(t){this.isProjectStructureEditable&&this.onDragUpdate(t)},immediate:!0},xSitemapSelectedCells:{handler:function(t){this.isProjectStructureEditable&&this.reloadIsChecked(t)},immediate:!0}},beforeMount:function(){this.setLabelText(this.label),this.isNew=this.xSitemapNewCell===this.cellId},mounted:function(){var t=this;this.reloadPosition(this.xCell),this.isPlaceholder||(this.reloadButtons(this.xCell),this.reloadCollapseData(),this.isProjectStructureEditable&&this.$nextTick((function(){t.isNew&&t.inputFocus()})))},beforeDestroy:function(){this.dragCancel=!0,this.onMouseUp()}}},41432:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(70992);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"pages-tree-list",mixins:[i.mixinSitemapSectionsList,i.mixinSitemapPagesList],props:{search:{type:[Array,String],default:null},height:{type:Number,default:null},maxHeight:{type:Number,default:null},selected:{type:[String,null],default:null},disabled:{type:Array,default:function(){return[]}},levels:{type:Array,default:function(){return["home","main","util","foot"]}}},data:function(){return{selectedPage:null}},computed:s(s({},(0,r.mapGetters)({xGetCellsSearch:"sitemapCell/getCellsSearch"})),{},{disabledPages:function(){return Object.fromEntries(this.disabled.map((function(t){return[t,!0]})))},searchQuery:function(){if(Array.isArray(this.search))return this.search;var t=String(this.search).trim().toLowerCase().split(" ");return t.length&&(t=t.filter((function(t){return!Slickplan.helpers.isBlank(t)&&t.length>1}))),t},pagesTrees:function(){var t=this,e=this.searchQuery.length?this.xGetCellsSearch(this.searchQuery,!0):[],n=[];return this.sectionsListWithMain.forEach((function(r){var i=t.getPages(r.id,e);i.length&&n.push({group:r.name,pages:i})})),n}}),methods:{onClick:function(t){var e=t.id;this.disabledPages[e]||this.$emit("select",e)}}}},84952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"tree-node",props:{node:Object,hide:{type:Array,default:function(){return[]}}},computed:{hasChilds:function(){return this.node.childs&&!this.hide.includes(this.node.id)&&(Array.isArray(this.node.childs)&&this.node.childs.length||!Array.isArray(this.node.childs)&&Object.keys(this.node.childs).length)}}}},69280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"tree",props:{tree:[Array,Object],hide:{type:Array,default:function(){return[]}}}}},41224:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(42456),o=n(63780);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"upload",mixins:[i.fileHelpers,o.mixinFileUploadHelpers],dropzoneInstance:null,dropzoneFiles:[],props:{url:{type:String,required:!0},description:{type:String,default:""},buttonLabel:{type:String,default:""},acceptedFiles:{type:[String,Array],default:""},maxFilesize:{type:Number,default:1024},maxFilePreviewHeight:{type:Number,default:null},dropzoneHeight:{type:Number,default:240},multiple:{type:[Boolean,Number],default:!1},isPanel:{type:Boolean,default:!1},formData:{type:Object,default:function(){return{}}}},data:function(){return{isUploading:!1,dropzoneId:null,fileData:{id:0,name:"",size:0},files:[]}},computed:l(l({},(0,r.mapGetters)({xImportFormData:"project/getImportFormData"})),{},{descriptionText:function(){return this.description||"Select ".concat(1===this.extensions.length?"".concat(this.extensions[0]," "):"").concat(this.multiple?"files":"file"," to upload or drag and drop here.")},buttonLabelText:function(){return this.buttonLabel||"Select ".concat(this.multiple?"files":"file")},sortedFiles:function(){return[].concat(this.getFilteredItems((function(t){return!t.alias})),this.getFilteredItems((function(t){return t.alias})))},extensions:function(){return(Array.isArray(this.acceptedFiles)?this.acceptedFiles:this.acceptedFiles.split(",")).map((function(t){return t.trim().replace(".","").toLowerCase()})).filter((function(t){return!!t}))},uploadProgressPercent:function(){var t,e,n=parseInt(null!==(t=null===(e=this.uploadProgressWidth)||void 0===e?void 0:e.width)&&void 0!==t?t:0,10);return"number"==typeof n&&!Number.isNaN(n)&&n>=0&&n<=100?Math.round(n):0},uploadProgressText:function(){var t,e,n=null!==(t=null===(e=this.fileData)||void 0===e?void 0:e.size)&&void 0!==t?t:0,r=n*(this.uploadProgressPercent/100);return"".concat(this.humanFileSize(r)," / ").concat(this.humanFileSize(n))},isUploadingVisible:function(){return this.isUploading||this.fileData.size}}),methods:{getFilteredItems:function(t){return Slickplan.helpers.sortString(this.files.filter(t),"filename")},setFormData:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!1;t=t||0,this.fileData.id!==t&&(this.fileData.id=t,i=!0),e=e||"",this.fileData.name!==e&&(this.fileData.name=e,i=!0),n=n||0,this.fileData.size!==n&&(this.fileData.size=n,i=!0),r&&i&&this.$emit("file",this.fileData)},initDropzone:function(){var t=this,e="number"==typeof this.multiple?this.multiple:this.multiple?99:1;this.uploadFileInit({dropzoneId:this.dropzoneId,dropzone:this.dropzoneId,url:this.url,extensions:this.extensions,uploadFileKey:this.uploadFileKey,maxFilesSelect:e,maxFilesInProgress:e,maxSizePerFile:1048576*this.maxFilesize,invalidExtensionMsg:1===this.extensions.length?"File must have .".concat(this.extensions[0]," extension."):"Invalid file type.",onStart:function(){t.isUploading=!0;var e=t.$upload.files(t.uploadFileKey).all;e&&e.length&&e[0]&&t.setFormData(0,e[0].name,e[0].size)},onSuccess:function(e,n){t.isUploading=!1,t.$emit("success",n),n&&n.id&&t.setFormData(n.id,n.name,n.size)},onError:function(e){return t.isUploading=!1,t.setFormData(),t.onUploadError(e)}})},onDropzoneVisible:function(){this.uploadFileOption("dropzoneId",this.dropzoneId),this.uploadFileOption("dropzone",this.dropzoneId)},onFileDelete:function(){this.setFormData()},onUploadError:function(t){var e=Slickplan.helpers.getValue(t,"errors.file.0",Slickplan.helpers.getValue(t,"error.msg"));e&&(this.isPanel?this.$store.dispatch("panel/setNotification",{type:"error",text:e}):this.$notify({type:"error",text:e}))}},watch:{"formData.file_id":function(t){this.fileData.id!==t&&(this.fileData.id=t)},"formData.file_name":function(t){this.fileData.name!==t&&(this.fileData.name=t)},"formData.file_size":function(t){this.fileData.size!==t&&(this.fileData.size=t)}},mounted:function(){var t=this;this.dropzoneId=Slickplan.helpers.randomString(16),this.uploadFileKey=this.url.replace(/[^a-z0-9]/g,""),this.setFormData(this.formData.file_id,this.formData.file_name,this.formData.file_size,!1),this.$nextTick((function(){t.initDropzone(),t.onDropzoneVisible()}))},beforeDestroy:function(){this.uploadFileDestroy()}}},78116:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"user-avatar",props:{user:{required:!0},tooltip:{type:[Boolean,String],default:!0},tooltipOffset:{type:Number,default:void 0},displayEmpty:{type:Boolean,default:!1},nameFallback:{type:[Object,String],default:null}},computed:a(a({},(0,r.mapGetters)({xGetTeamMemberData:"team/getData",xGetGuestColor:"comments/getGuestColor"})),{},{className:function(){return{image:this.contributor&&this.contributor.avatar,text:!this.contributor||!this.contributor.avatar}},avatarStyles:function(){var t=this.contributor?this.contributor.color:null;return{backgroundColor:t,borderColor:t}},contributor:function(){if(!0===this.user&&this.displayEmpty)return{avatar:"/images/slickplan-profile.png",first_name:"Slickplan",last_name:"",username:"slickplan",initials:"SP",color:"#3477F9"};var t="object"===i(this.user)?this.user:this.xGetTeamMemberData(this.user);if(t)return t;if(this.nameFallback){var e,n,r,o=this.nameFallback,a=this.nameFallback;if("object"===i(this.nameFallback))o=(null===(e=this.nameFallback)||void 0===e?void 0:e.name)||"",a=(null===(n=this.nameFallback)||void 0===n?void 0:n.email)||(null===(r=this.nameFallback)||void 0===r?void 0:r.id)||o||"";return{avatar:!1,first_name:o,last_name:"",username:o,initials:Slickplan.helpers.getInitials(o),color:this.xGetGuestColor(a)}}return null},tooltipCopy:function(){return this.tooltip&&this.contributor?"".concat(this.contributor.first_name," ").concat(this.contributor.last_name):null},tooltipPosition:function(){return this.tooltip&&["up","top","above","down","bottom","below","left","right"].indexOf(this.tooltip)>=0?this.tooltip:this.tooltip?"below":null}})}},9512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"user-avatars",props:{limit:{type:Number,default:4},users:{type:Array,required:!0},tooltip:{type:Boolean,default:!0},size:{type:String,default:null},withBorders:{type:Boolean,default:!1},withAvatars:{type:Boolean,default:!1},tooltipOffset:{type:Number,default:void 0}},computed:a(a({},(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{usersData:function(){var t=this;return this.users.map((function(e){return t.xGetTeamMemberData("object"===i(e)?e.id:e)})).filter((function(t){return t&&t.id}))},sizeClass:function(){return[this.withBorders?"with-border":null,this.size?"avatar-".concat(this.size):null]},aboveLimitCount:function(){return this.usersData.length-(this.limit-1)}})}},92736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(62264),i=n.n(r),o=n(48416),a=n(42456),s=n(71995);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"email-verify-cta",components:{DynamicTimestamp:n(39128).default},mixins:[a.formHelpers],data:function(){return{isChangeEmail:!1,emailVerify:["","","","","",""],resendTimestamp:0,formError:"",newEmail:"",resendLoading:!1}},computed:u(u({},(0,o.mapState)({xAccountData:function(t){return t.user.user},xWindowSize:function(t){return t.core.windowSize}})),{},{wrapperHeight:function(){return{height:"calc(100vh - ".concat(this.xWindowSize.headerHeight,"px)")}},supportUrl:function(){return Slickplan.helpers.getLink("/contact")},hasResendTimestamp:function(){return this.resendTimestamp>0}}),methods:{setValue:function(t){this.emailVerify="boolean"==typeof t?["","","","","",""]:(Array.isArray(t)?t:t.split("")).map((function(t){return t.replace(/[^0-9]/g,"").substring(0,1)})),this.formError=""},onSubmitUpdate:function(){var t=this;this.formError="",this.formSubmit({action:function(){return s.default.account.verifyEmailChangeAddress(t.newEmail)},success:function(e){t.isChangeEmail=!1,null!=e&&e.resend_timestamp&&(t.resendTimestamp=e.resend_timestamp),null!=e&&e.account&&t.$store.commit("user/append",e.account),t.setValue(!0),t.$notify({text:"Your email is updated, check your inbox for a verification code"})}},"update")},onSubmitVerify:function(){var t=this;this.formError="",this.formSubmit({action:function(){return s.default.account.verifyEmailAddress(t.emailVerify.join(""))},success:function(){window.location.reload()},error:function(e){var n,r;null!=e&&null!==(n=e.errors)&&void 0!==n&&n.code&&(t.formError=null==e||null===(r=e.errors)||void 0===r||null===(r=r.code)||void 0===r?void 0:r[0])}})},onResendClick:function(){var t=this;this.hasResendTimestamp||(this.resendLoading=!0,s.default.account.verifyEmailResendCode().promise.then((function(e){t.setValue(!0),null!=e&&e.resend_timestamp&&(t.resendTimestamp=e.resend_timestamp),t.$notify({text:"Another OTP has been sent to your inbox"})})).finally((function(){t.resendLoading=!1})))},onKeyup:function(t,e){var n=-1;if(/^[0-9]$/.test(t.key)){var r=this.emailVerify.slice(0);r[e]=t.key,this.setValue(r),n=e+1}else"backspace"===t.key.toLowerCase()?n=e-1:"delete"===t.key.toLowerCase()?n=e+1:this.setValue(this.emailVerify);this.focusField(n)},onPaste:function(t,e){var n,r=-1;if(t.clipboardData&&t.clipboardData.getData?n=t.clipboardData.getData("text/plain"):window.clipboardData&&window.clipboardData.getData&&(n=window.clipboardData.getData("Text")),1===(n=n.replace(/[^0-9]/g,"")).length){var i=this.emailVerify.slice(0);i[e]=n,this.setValue(i),r=e+1}else if(6===(n=n.substring(0,6)).length)this.setValue(n),r=5;else{r=e;var o=this.emailVerify.slice(0);n=n.substring(0,6-e).split("");for(var a=0;a<n.length;a+=1)o[r=e+a]=n[a];this.setValue(o)}this.focusField(r)},focusField:function(t){t>=0&&t<6&&document.getElementById("email-code-".concat(t)).focus()},updateResendTimestamp:function(t){"0:00"===t&&(this.resendTimestamp=0)}},mounted:function(){this.xAccountData.is_suspended_timestamp&&(this.resendTimestamp=i()().unix()+this.xAccountData.is_suspended_timestamp)}}},9376:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(27672),o=n(14580),a=n(42456);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"workflow-status-list",components:{"buttons-list":i.default},mixins:[a.mixinReorderHelpers],inject:["onForm","onDelete","onUpdateOrder"],props:{list:{type:Array,default:function(){return[]}},isEditable:{type:Boolean,default:!1}},data:function(){return{isHovering:!1}},computed:c(c({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected},xBarIsVisible:function(t){return t.actionBar.isVisible}})),{},{isToolAvailable:function(){return this.$root.isAllowedFeature(o.constants.FEATURE_CONTENT)},canReorder:function(){return this.isEditable&&this.isToolAvailable},actionBarButtons:function(){var t=this;if(!this.isToolAvailable)return[];var e=[];return 1===this.xBarSelectedIds.length&&(e.push({id:1,icon:"clone",label:"Clone",onClick:function(){return t.onForm(t.xBarSelectedIds[0],!0)}}),e.push({id:2,icon:"edit",label:"Edit",onClick:function(){return t.onForm(t.xBarSelectedIds[0])}})),e},actionBarLinks:function(){var t=this;return this.isToolAvailable?[{id:1,icon:"trash",label:"Delete",onClick:function(){return t.onDelete(t.xBarSelectedIds)}}]:[]}}),methods:{rowSelected:function(t){t.alias!==o.constants.CONTENT_STATUS_UNASSIGNED&&this.isToolAvailable&&this.$store.commit("actionBar/selectToggle",t.alias)},rowButtons:function(t){var e=this;if(!this.isToolAvailable)return[];var n=[{id:1,icon:"clone",tooltip:"Clone",onClick:function(){return e.onForm(t.alias,!0)}},{id:2,icon:"edit",tooltip:this.$trans("edit"),onClick:function(){return e.onForm(t.alias)}}];return t.alias!==o.constants.CONTENT_STATUS_UNASSIGNED&&n.push({id:3,icon:"trash",tooltip:this.$trans("delete"),onClick:function(){return e.onDelete(t.alias)}}),n},onMouseEnter:function(t){this.isEditable&&this.isToolAvailable&&(this.isDragging||(this.isHovering=t.alias))},onChangedOrder:function(){var t=[];this.$refs.list.childNodes.forEach((function(e){e.dataset.id&&t.push(e.dataset.id)})),t.length&&this.onUpdateOrder(t)}},watch:{actionBarButtons:function(t){this.xBarIsVisible&&this.$store.commit("actionBar/update",{buttons:t})},xBarSelectedIds:function(t,e){var n=this;t.length&&!e.length?this.$store.commit("actionBar/set",{isVisible:!0,links:this.actionBarLinks,buttons:this.actionBarButtons,selectAll:function(){return n.allStatusIds}}):!t.length&&e.length&&this.$store.commit("actionBar/reset")}}}},40616:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"workflow-status",props:{status:{type:[String,Object],required:!0},tooltip:{type:Boolean,default:!1},detailed:{type:Boolean,default:!0}},computed:a(a({},(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses"})),{},{tag:function(){return this.tooltip?"has-tooltip":"div"},label:function(){return this.statusData.name||this.statusData.label},statusData:function(){var t=this;if("object"===i(this.status))return this.status.name||this.status.label?this.status:null;var e=this.xContentStatuses.find((function(e){return e.alias===t.status}));return e&&e.name?e:null},statusAttr:function(){return{backgroundColor:this.statusData.color,color:this.statusData.textColor}}})}},79776:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(71995),i=n(42456);const o={name:"modal-2fa",components:{"component-loading":n(86180).default},mixins:[i.formHelpers],data:function(){return{viewSetupKey:!1,qrCodeSvg:"",formData:{secret:"",key:""}}},computed:{qrCodeSrc:function(){return"https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=".concat(encodeURIComponent(this.qrCodeSvg))}},methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){return r.default.auth.setTotp(t.formData)},success:function(e){t.$emit("action",{event:"saved",data:e}),t.$emit("close")}})}},mounted:function(){var t=this;this.qrCodeSvg="",this.formData.secret="",r.default.auth.generateTotp().promise.then((function(e){var n=e.secret,r=e.svg;t.qrCodeSvg=r,t.formData.secret=n}))}}},27008:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(42456),o=n(14580);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"modal-confirm",dropdownLabelKey:o.constants.CELL_DATA_KEY_LABEL,dropdownValueKey:o.constants.CELL_DATA_KEY_ID,mixins:[i.formHelpers],props:{text:{type:[String,Number],default:null},html:{type:String,default:null},inputs:{type:Array,default:function(){return[]}},buttonLabel:{type:String,default:"Confirm"},form:{type:Object,required:!0}},data:function(){return{formData:{},isSaving:!1}},computed:l(l({},(0,r.mapGetters)({xDropdownCellsList:"sitemapCell/getCellsForDropdown"})),{},{dropdownCellsList:function(){return this.xDropdownCellsList()},hasText:function(){return null!==this.text&&""!=="".concat(this.text)}}),methods:{onSubmit:function(){var t=this,e=!0,n=this.form,r=n.action,i=n.success,o=n.error,a=n.before,s=n.after;this.formSubmit({action:function(){var n=r(t.formData);return!1===n&&(e=!1),n},success:function(n,r){"function"==typeof i&&!1===i(n,r)&&(e=!1),e&&t.$emit("close")},error:o,before:a,after:s})}},created:function(){this.formData=Slickplan.helpers.arrayToKeyValue(this.inputs,"id","value")}}},30396:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(2376),o=n.n(i),a=n(26536),s=n(42456),l=n(92704);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"modal-content-block-settings",components:{"sidebar-wrapper":a.default},mixins:[s.formHelpers,l.mixinContentTable],origData:{},props:{blockId:{type:String,required:!0}},data:function(){return{sidePanel:!1,isPlainText:!1,formData:{type:"",options:{}}}},computed:p(p({},(0,r.mapState)({xContentBlocks:function(t){return t.content.builderBlocks}})),{},{blockData:function(){var t=this;return this.xContentBlocks.find((function(e){return e.id===t.blockId}))},hasFileType:function(){return["file","image","video"].indexOf(this.blockData.type)>=0},hasTextType:function(){return["text","wysiwyg"].indexOf(this.blockData.type)>=0},htmlWrappers:function(){var t=["","html","div"];return this.isPlainText&&(t=t.concat(["p","span","blockquote","h1","h2","h3","h4","h5","h6"])),t.map((function(t){return{value:t,label:""===t?"No wrapper":"html"===t?"Custom HTML":"<".concat(t,">")}}))},fileTypes:function(){return[{value:"file",label:"All"},{value:"image",label:"Images"},{value:"video",label:"Videos"}]}}),methods:{onWrapperSubmit:function(t){this.formData.options=t,this.sidePanel=!1},onSubmit:function(){var t=this;this.formSubmit({action:function(){if("table"===t.blockData.type){var e=1,n=1,r=t.$options.origData.content.merge;r&&Object.keys(r).forEach((function(i){var o=u(i.split(t.$options.spanSeparator).map(Number),2),a=o[0],s=o[1];r[i].rows>1&&(e=Math.max(e,a+r[i].rows),n=Math.max(n,1+s)),r[i].cols>1&&(n=Math.max(n,s+r[i].cols),e=Math.max(e,1+a))})),(t.formData.content.rows<e||t.formData.content.cols<n)&&(t.formData.content.merge=null)}t.$store.commit("content/updateBuilderBlockAndBroadcast",{id:t.blockId,data:t.formData}),t.$emit("action",{event:"update"}),t.$emit("close")}})}},created:function(){var t=this,e={},n={label:"",tag:"",tag_html_before:"",tag_html_after:"",tag_class:"",tag_id:""};switch(this.blockData.type){case"table":e.rows=1,e.cols=1,e.lock=!1,e.thead=!1,e.merge={};break;case"file":case"video":case"image":n.multiple=!1,n.multiple_type="unlimited",n.multiple_value=2;break;case"text":case"wysiwyg":n.limit=!1,n.limit_type="chars",n.limit_value=1e3}o()({content:e,options:n},(function(e,n){var r=Object.keys(e);r&&r.length&&Object.assign(t.formData,m({},n,Object.assign(e,Slickplan.helpers.objectPick(t.blockData[n],r))))})),this.formData.type=this.blockData.type,this.hasTextType&&(this.isPlainText="text"===this.formData.type,this.$watch("isPlainText",(function(e){t.formData.type=e?"text":"wysiwyg"}))),this.$options.origData=Slickplan.helpers.objectCloneDeep(this.formData)}}},82120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"modal-content-sidebar-wrapper",props:{options:{type:Object,required:!0}},data:function(){return{formData:{}}},created:function(){this.formData=Slickplan.helpers.objectMergeDeep({tag:"",tag_html_before:"",tag_html_after:"",tag_class:"",tag_id:""},this.options)}}},67708:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"modal-delete-version",props:{sitemap:{type:String,required:!0},versions:{type:Array,required:!0},callback:{type:Function,required:!0},selected:{type:[String,Array],default:null}},data:function(){return{formIsSubmitting:!1,formData:{versions:[]}}},methods:{closeModal:function(){this.formIsSubmitting=!1,this.$emit("close")},selectAll:function(){this.formData.versions=this.versions.map((function(t){return t.alias}))},onSubmit:function(){var t=this;this.formIsSubmitting=!0;var e=this.callback(this.formData.versions);e&&e.then?e.finally((function(){t.closeModal()})):this.closeModal()}},mounted:function(){this.selected&&(this.formData.versions=[].concat(this.selected))}}},93296:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(84064),a=n(58384),s=n(42456),l=n(63780),c=n(14580);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"modal-diagram-details",components:{"field-templates-diagram":a.default,"upload-internal":o.default},mixins:[s.fileHelpers,s.formHelpers,l.mixinFileUploadHelpers],dropdownLabelKey:c.constants.CELL_DATA_KEY_LABEL,dropdownValueKey:c.constants.CELL_DATA_KEY_ID,props:{type:{type:String,default:"add",validator:function(t){return["import","edit","clone","add"].includes(t)}},diagramId:{type:String,default:null},allowAssign:{type:Boolean,default:!0}},data:function(){return{uploadActive:!1,selectedTemplate:"blank",formData:{name:"",cell_id:"",file_id:0}}},computed:f(f({},(0,r.mapGetters)({xDiagramsList:"diagram/getList",xDropdownCellsList:"sitemapCell/getCellsForDropdown"})),{},{dropdownCellsList:function(){return this.xDropdownCellsList()},isImportInSitemap:function(){return"import"===this.type&&this.diagramId},canDisplayForm:function(){return!this.isImportInSitemap&&("import"!==this.type||this.uploadActive)},canSubmit:function(){return"import"!==this.type||this.formData.file_id}}),methods:{onFileUpload:function(t){this.uploadActive=!(!t||!t.size),this.formData.file_id=t&&t.id?t.id:0},onSubmit:function(){var t=this;this.formSubmit({action:function(){return"import"===t.type?i.default.sitemap.importDiagram(t.formData,t.diagramId):"edit"===t.type?i.default.sitemap.editDiagram(t.diagramId,t.formData):"clone"===t.type?i.default.sitemap.cloneDiagram(t.diagramId,t.formData):"blank"!==t.selectedTemplate?i.default.sitemap.cloneDiagram(t.selectedTemplate,t.formData):i.default.sitemap.addDiagram(t.formData)},success:function(e){var n=e.diagram,r=e.cell_id,i=e.cell_data;n&&(t.isImportInSitemap?Slickplan.websocket.storeDispatch("diagramHelpers/reloadAll",n):(r&&(n.cell_id=r),n.bbox?Slickplan.websocket.storeCommit("diagram/add",n):t.diagramId&&Slickplan.websocket.storeCommit("diagram/update",{id:t.diagramId,data:n}))),r&&i&&(Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:r,key:c.constants.CELL_DATA_HAS_DIAGRAMS,value:i}),n&&("add"===t.type||"import"===t.type&&!t.isImportInSitemap)&&t.$router.push({name:"sitemap-diagram-cell",params:{sitemap:Slickplan.globalVars.sitemapAlias,diagram:n.alias}}).catch(_noop)),t.$emit("action",{event:"success",data:{diagram:n,cell_id:r,cell_data:i}}),t.$emit("close")},error:_noop})}},mounted:function(){var t=this,e="add"!==this.type&&this.diagramId?this.xDiagramsList.find((function(e){return e.alias===t.diagramId})):null;this.formData.name=e?"clone"===this.type?Slickplan.helpers.stringClone(e.title):e.title:"",this.formData.cell_id="edit"===this.type&&e?e.cell_id:"",this.formData.file_id=0}}},28668:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"modal-delete-version",props:{url:{type:String,required:!0}},computed:{urlDecoded:function(){return decodeURI(this.url)}},methods:{closeModal:function(){this.$emit("close")},openLink:function(){var t=this;setTimeout((function(){return Slickplan.helpers.navigateTo(t.url,null,!0)}),10),this.closeModal()}}}},44208:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(71995);function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const a={name:"modal-figma-files",mixins:[n(42456).formHelpers],props:{formSubmitData:{type:Function,required:!0}},data:function(){return{url:"",fileId:null,itemId:null,filename:null,files:[]}},computed:{canSubmit:function(){return this.files.length>0}},methods:{processUrl:function(){if(this.url)if(this.files.length>=5)this.formSetErrors({url:["You can add up to 5 files."]});else{var t=document.createElement("a");t.href=this.url;var e=(t.pathname||"").split("/").filter((function(t){return t}));if(("figma.com"===t.hostname||t.hostname.endsWith(".figma.com"))&&e.length>1&&("file"===e[0]||"proto"===e[0]||"design"===e[0])&&/^[0-9a-z]{22,128}$/i.test(e[1])){var n={fileId:e[1],itemId:"0:1",name:null==e?void 0:e[2]},r=(t.search||"").substring(1);if(r&&(r=new URLSearchParams(r),n.itemId=(r.has("node-id")?r.get("node-id"):null)||n.itemId),n.figma_key="".concat(n.fileId,"/").concat(n.itemId),this.files.find((function(t){return t.figma_key===n.figma_key})))return void this.formSetErrors({url:["File already added."]});this.url="",this.files.push(n),this.onSubmitFile(n)}else this.formSetErrors({url:["Incorrect Figma file URL."]})}},removeFile:function(t){this.files=this.files.filter((function(e){return e.figma_key!==t.figma_key}))},onSubmitFile:function(t){var e=this,n=t.fileId,i=t.itemId,o=t.name;this.formSubmit({action:function(){return r.default.file.loadFigmaFile(n,i,o)},success:function(t){var n=t.file,r=e.files.findIndex((function(t){return t.figma_key===n.figma_key}));r>=0&&(e.files[r]=Slickplan.helpers.objectMergeDeep(n,e.files[r])),e.files=e.files.slice(0)}})},onSubmit:function(){this.formSubmit(this.formSubmitData(i(new Set(this.files.map((function(t){return t.fileId}))))))}}}},740:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(42456),i=n(15052);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const s={name:"modal-file-upload",mixins:[r.fileHelpers,i.mixinDropzone],props:{acceptedFiles:{type:[String,Array],default:""},maxFilesize:{type:Number,default:1024},cancelLabel:{type:String,default:"Cancel"},submitLabel:{type:String,default:"Upload"},onSubmit:{type:Function,default:null},onLibrary:{type:Function,default:null}},data:function(){return{isSubmitting:!1}},computed:{sortedFiles:function(){return[].concat(o(Slickplan.helpers.sortString(this.dropzoneFiles.filter((function(t){return!t.alias})),"filename")),o(Slickplan.helpers.sortString(this.dropzoneFiles.filter((function(t){return t.alias})),"filename")))},dropzoneHeight:function(){return this.dropzoneFiles.length?136:420},canSubmit:function(){return!this.isSubmitting&&this.dropzoneFiles.every((function(t){return t.alias}))},extensions:function(){return(Array.isArray(this.acceptedFiles)?this.acceptedFiles:this.acceptedFiles.split(",")).map((function(t){return t.trim().replace(".","").toLowerCase()})).filter((function(t){return!!t}))}},methods:{onFormSubmit:function(){var t=this;if(this.isSubmitting=!0,this.onSubmit){var e=this.onSubmit(this.dropzoneFiles);if(e&&e.promise)return void e.promise.finally((function(){t.isSubmitting=!1,t.$emit("close")}))}this.isSubmitting=!1,this.$emit("close")},onFromLibraryClick:function(){this.onLibrary(),this.$emit("close")}},mounted:function(){this.dropzoneInit({dropzone:this.$refs.dropzone,extensions:this.extensions,maxFilesize:this.maxFilesize,clickable:this.$refs.button})}}},15308:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={name:"modal-image-preview",props:{fileData:{type:Object,required:!0}},data:function(){return{src:"",loaded:!1,width:0,naturalWidth:0,naturalHeight:0,maxWidth:0,maxHeight:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),methods:{onLoad:function(){this.naturalWidth=this.$refs.img.naturalWidth,this.naturalHeight=this.$refs.img.naturalHeight,this.setMaxSizes(this.xWindowSize),this.loaded=!0},onDownload:function(){Slickplan.helpers.downloadLinkTrigger(this.fileData.url_download)},setMaxSizes:function(t){this.maxWidth=.8*t.width,this.maxHeight=.9*t.height;var e=Math.min(this.maxWidth/this.naturalWidth,this.maxHeight/this.naturalHeight);this.width=this.naturalWidth*(e<1?e:1)}},watch:{xWindowSize:function(t){this.setMaxSizes(t)}},mounted:function(){this.src=this.fileData.url_preview||this.fileData.url_full}}},51700:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(71995);const i={name:"modal-integration-basecamp",mixins:[n(42456).formHelpers],data:function(){return{formData:{version:"oauth",token:"",subdomain:""}}},computed:{versions:function(){return[{label:this.$trans("basecamp_2_or_3"),value:"oauth"},{label:this.$trans("basecamp_classic"),value:"classic"}]}},methods:{onSubmit:function(){var t=this;"oauth"===this.formData.version?(this.$emit("action",{event:"oauth"}),this.$emit("close")):this.formSubmit({action:function(){return r.default.integration.connect("basecamp",t.formData)},success:function(e){t.$emit("action",{event:"saved",data:e}),t.$emit("close")}})}},watch:{"formData.version":function(t){"classic"===t&&Slickplan.helpers.setSlideTransitionHeight(160)}}}},62596:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(71995),i=n(30160),o=n(42456);const a={name:"modal-integration-teamwork",components:{"link-help":i.default},mixins:[o.formHelpers],data:function(){return{formData:{key:""}}},methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){return r.default.integration.connect("teamwork",t.formData)},success:function(e){t.$emit("action",{event:"saved",data:e}),t.$emit("close")}})}}}},58e3:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(71995),i=n(59484);const o={name:"modal-onboarding",components:{"link-help":n(30160).default},onboard:{sitemap:{title:"Welcome to the sitemap builder module!",learnMore:"Learn the basics of working with sitemaps. More resources are available in the",kb:"sitemaps",slides:[{title:"Add pages to your sitemap",description:"Build a sitemap from scratch by adding pages manually, or create a sitemap based on an existing website with our website crawler or other import options.",vimeo:475930787},{title:"Customize sitemap",description:"Make sitemaps more visually attractive by customizing the page’s fill and text colors. Create a custom color palette or use one of the predefined themes.",vimeo:475931170},{title:"Add information to your pages",description:"Page cells may contain information, such as notes, links, page types, content, attached diagrams, or design mockups. Explore all the options by clicking the menu in the upper right corner of each page cell. Selecting multiple pages gives you the ability to edit many pages at once.",vimeo:475931438}]},content:{title:"Welcome to the Content Planner!",learnMore:"Learn the basics of adding content to your pages. More resources are available in the",kb:"content",slides:[{title:"Add content to your pages",description:"Once pages have been added via the Sitemap Builder, they will be visible in the Content Planner. Add content to pages by using the advanced page builder. Easily drag & drop content blocks to start writing or adding media.",vimeo:475931901},{title:"Manage & migrate your content",description:["Assign teammates to work on specific pages, establish deadlines, and utilize workflow statuses to track progress.","Once content is completed, integrate the content management system of your choice, e.g. WordPress to easily transfer all content in a few clicks. You can find more details [here](https://help.slickplan.com/categories/integrations-api)."],vimeo:475932160},{title:"Speed up work with templates",description:"Templates are predefined groups of content blocks  used on various types of pages for unifying content requirements. Use our system templates or create your own templates to make sure content is consistent throughout the entire website.",vimeo:475932906}]},diagram:{title:"Welcome to the Diagram Maker!",learnMore:"Learn the basics of working with diagrams. More resources in the",kb:"diagrams",slides:[{title:"Working with shapes",description:"Choose from an extensive library of shapes to build user flows and many other types of diagrams. On the side panel, find previews of all shapes to drag onto the canvas.",vimeo:475933264},{title:"Using line connectors",description:"Line connections show relationships between shapes in diagrams. Drag lines from one shape to another to easily show a process or flow. Choose between different line styles, start, and endpoints.",vimeo:475933505},{title:"Add images and sitemap pages",description:"Diagrams can be used to work on the pages from the sitemap. Simply add a page element and assign a specific sitemap page to it. Add pictures and notes to make your diagram more informative.",vimeo:475933708}]},mockups:{title:"Start working with Design Mockups!",learnMore:"Learn the basics of working with Design Mockups. More resources in the",kb:"mockups",slides:[{title:"Upload your mockups",description:"Add mockups from your computer and assign them to specific pages within the sitemap. Upload multiple jpg, gif, or png files to any page.",vimeo:475934003},{title:"Present your mockups",description:"Present projects with design mockups to your team, so that they can review & comment on your ideas.",vimeo:475934411}]}},props:{type:{type:String,default:"sitemap"}},data:function(){return{currentSlideIndex:0}},computed:{modalData:function(){return this.$options.onboard[this.type]},slides:function(){return this.modalData.slides.map((function(t){var e=Slickplan.helpers.objectCloneDeep(t);return e.description=[].concat(e.description).map((function(t){return(0,i.default)(t)})),e}))},currentSlide:function(){return this.slides[this.currentSlideIndex]},isLastSlide:function(){return this.currentSlideIndex+1>=this.slides.length}},methods:{onPrev:function(){this.currentSlideIndex=Math.max(this.currentSlideIndex-1,0)},onNext:function(){this.currentSlideIndex=Math.min(this.currentSlideIndex+1,this.slides.length-1)},onButtonClick:function(){this.isLastSlide?this.closeModal():this.onNext()},closeModal:function(){this.$store.commit("core/onboard",this.type),r.default.account.addActivityLog("account","onboard_".concat(this.type)).promise.then(_noop).catch(_noop),this.$emit("close")}}}},38212:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(70992),o=n(42456);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"modal-page-select",mixins:[i.mixinSitemapSectionsList,i.mixinSitemapPagesList,o.formHelpers],props:{selected:{type:[String,null],default:null},disabled:{type:Array,default:function(){return[]}},levels:{type:Array,default:function(){return["home","main","util","foot"]}},formSubmitData:{type:Function,required:!0},submitLabel:{type:String,default:"Select"}},data:function(){return{searchFilter:"",sectionFilter:"all",selectedPage:null}},computed:l(l(l({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType}})),(0,r.mapGetters)({xGetCellsSearch:"sitemapCell/getCellsSearch"})),{},{disabledPages:function(){return Object.fromEntries(this.disabled.map((function(t){return[t,!0]})))},pagesTrees:function(){var t=this,e=[];if(this.searchFilter&&(e=this.xGetCellsSearch(this.searchFilter,!0)),"all"===this.sectionFilter){var n=[];return this.sectionsListWithMain.forEach((function(r){var i=t.getPages(r.id,e,t.levels);i.length&&n.push({group:r.name,pages:i})})),n}return[{group:null,pages:this.getPages(this.sectionFilter,e,this.levels)}]}}),methods:{onSubmit:function(){this.selectedPage&&this.formSubmit(this.formSubmitData(this.selectedPage))}},watch:{sectionFilter:function(){var t=this;this.searchFilter="",this.selectedPage=null,setTimeout((function(){t.$refs.scrollable&&t.$refs.scrollable.scrollToTop()}),10)}},mounted:function(){this.selected&&(this.selectedPage=this.selected)}}},55528:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"modal-partials-sidebar-title",props:{title:{type:String,default:null},icon:{type:String,default:null}}}},38096:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"modal-plan-cancel",components:{"user-avatars":n(6580).default},props:{header:{type:String,required:!0},headerText:{type:String,default:null},description:{type:String,default:null},checkboxes:{type:Array,default:function(){return[]}},buttonCancel:{type:String,required:!0},buttonSubmit:{type:String,required:!0},callback:{type:Function,required:!0},excludeUsers:{type:Array,default:function(){return[]}}},data:function(){return{formIsSubmitting:!1,formHasErrors:!1,checklist:[]}},computed:a(a({},(0,r.mapState)({xTeam:function(t){return t.team.team}})),{},{filteredTeam:function(){var t=this;return this.excludeUsers?this.xTeam.filter((function(e){return!t.excludeUsers.includes(e.type)})):this.xTeam}}),methods:{closeModal:function(){this.formIsSubmitting=!1,this.$emit("close")},onSubmit:function(){var t=this;if(this.checklist.length!==this.checkboxes.length)this.formHasErrors=!0;else{this.formIsSubmitting=!0;var e=this.callback();e&&e.then?e.finally((function(){t.closeModal()})):this.closeModal()}}},watch:{checklist:function(t,e){t.length!==e.length&&(this.formHasErrors=!1)}}}},45968:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(2376),o=n.n(i);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"modal-plan-downgrade",mixins:[n(42456).fileHelpers],props:{steps:{type:Array,required:!0},callback:{type:Function,required:!0}},data:function(){return{step:1,selected:{projects:[],users:[],files:[]}}},computed:l(l(l({},(0,r.mapState)({xWindowSizeHeight:function(t){return t.core.windowSize.height}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{scrollableHeight:function(){return this.xWindowSizeHeight-260-40},cols:function(){return"projects"===this.currentStep.type?["g-col-6","g-col-3","g-col-3"]:["g-col-7","g-col-4"]},countYet:function(){return Math.max(0,this.currentStep.count-this.countSum)},countSum:function(){var t=this.selected[this.currentStep.type].map((function(t){return t.count}));return t.length?t.reduce((function(t,e){return t+e})):0},currentStep:function(){return this.steps[this.step-1]},currentStepSortedData:function(){return"files"===this.currentStep.type?Slickplan.helpers.sortNumeric(this.currentStep.data,"size","desc"):Slickplan.helpers.sortSmart(this.currentStep.data,"name")},currentStepTitle:function(){var t="messages.select_n_".concat(this.currentStep.type,"_to_continue");return"files"===this.currentStep.type?this.$trans(t,{bytes:this.humanFileSize(this.countYet)}):this.$trans(t,{number:this.countYet})},blocksFill:function(){return 4*Math.ceil(this.currentStepSortedData.length/4)-this.currentStepSortedData.length}}),methods:{closeModal:function(){this.$emit("close")},select:function(t){this.selected[this.currentStep.type].push({id:t.id,count:t.size||1,type:t.type||null})},rowSelected:function(t){var e=this.currentStep.type;this.isSelected(t)?this.selected[e]=this.selected[e].filter((function(e){return e.id!==t.id})):this.select(t)},selectAll:function(){var t=this,e=this.selected[this.currentStep.type].length;this.selected[this.currentStep.type]=[],e!==this.currentStepSortedData.length&&o()(this.currentStepSortedData,(function(e){t.select(e)}))},isSelected:function(t){return!!this.selected[this.currentStep.type].find((function(e){return e.id===t.id}))},onBack:function(){this.step>1&&(this.step-=1)},onSubmit:function(){if(this.step===this.steps.length){var t={sitemaps:[],diagrams:[],users:[],files:[]};o()(this.selected,(function(e,n){o()(e,(function(e){"projects"===n?t["".concat(e.type,"s")].push(e.id):t[n].push(e.id)}))})),this.callback(t),this.closeModal()}else this.step+=1}}}},80348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(71995),i=n(42456);const o={name:"modal-project-create-sidebar-user",mixins:[i.formHelpers,i.validationHelpers],props:{value:{type:String,default:""}},data:function(){return{formData:{first_name:"",last_name:"",email:""}}},computed:{canSubmit:function(){return!Slickplan.helpers.isBlank(this.formData.first_name)&&!Slickplan.helpers.isBlank(this.formData.last_name)&&!Slickplan.helpers.isBlank(this.formData.email)}},methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){return r.default.team.create(t.formData)},success:function(e){e&&e.user&&(Slickplan.websocket.storeDispatch("team/addMember",e.user),t.$parent.onContributorSelect(e.user.id,t.formData),t.onClose())}})},onClose:function(){this.$parent.sidebarForm=!1}},mounted:function(){this.value&&this.value.includes("@")?this.formData.email=this.value:this.value&&(this.formData.first_name=this.value)}}},99824:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(71995),o=n(99368),a=n(58384),s=n(42456);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"modal-project-create-diagram",components:{ModalProjectUploadLogo:n(50156).default,ProjectMembers:o.default,"field-templates-diagram":a.default},mixins:[s.formHelpers],inject:["onClose"],data:function(){return{formData:{name:"",logo:0},activeTab:"general"}},computed:u(u({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),{},{canSubmit:function(){return!Slickplan.helpers.isBlank(this.formData.name)}}),methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){if("general"!==t.activeTab||!t.$parent.canHaveContributors){var e=u(u({},t.formData),{},{contributors:t.$parent.internalContributors});return"blank"===t.$parent.selectedTemplate?i.default.project.create("diagram",e):i.default.diagram.clone(e,t.$parent.selectedTemplate)}t.activeTab="team"},success:function(e){t.$parent.onSubmitSuccess("diagram",e)}})}},mounted:function(){this.$parent.selectedTemplate="blank",Slickplan.helpers.onboard(!1)}}},92832:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(48416),i=n(75252),o=n(21608),a=n(2256),s=n(20616),l=n(67480),c=n(50764),u=n(32512),d=n(21176),f=n(14580),p=n(65056);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){var r;return r=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==m(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y={name:"modal-project-create",components:{"form-sitemap":o.default,"form-diagram":a.default,"select-type":i.default,"user-sidebar":s.default,"templates-sidebar":l.default,"permissions-sidebar":c.default,"crawler-sidebar":u.default,"xml-wp-sidebar":d.default},mixins:[p.mixinProjectContributors,p.mixinProjectContributorsModal],provide:function(){return{onClose:this.onClose,onContributorUpdate:this.onContributorUpdate}},data:function(){return{projectTypeName:null,selectedTemplate:"blank",crawlerLimit:Slickplan.constants.CRAWLER_LIMIT||1e4,formDataCrawler:{filter_dirty_urls:1,add_links:0,meta_note:0,limit:0,pages_limit:Slickplan.constants.CRAWLER_LIMIT||100,filters:0,filter_follow:"",filter_exclude:"",basic_auth:0,basic_auth_login:"",basic_auth_password:"",ignore_robots_txt:0,ignore_cookies:0,custom_user_agent:0,custom_user_agent_string:window.navigator.userAgent,import_metadata:0,parse_javascript:0},formDataXmlGoogle:{add_links:0,meta_note:0,basic_auth:0,basic_auth_login:"",basic_auth_password:"",ignore_robots_txt:0,ignore_cookies:0,custom_user_agent:0,custom_user_agent_string:window.navigator.userAgent,import_metadata:0,parse_javascript:0},formDataXmlWordPress:{add_links:0,import_metadata:0,import_content:0,set_project_settings:0}}},computed:v(v({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xPredefinedTemplates:function(t){return t.project.predefinedTemplates.sitemap}})),{},{currentComponent:function(){return this.projectTypeName?"form-".concat(this.projectTypeName):"select-type"}}),methods:{onBack:function(){this.projectTypeName=null},onSubmitSuccess:function(t,e,n){if(e&&e.alias){var r=this.$router.resolve({name:t,params:b({},t,e.alias),query:n});Slickplan.helpers.navigateTo(r.href,!0),this.onClose()}},onAfterSidebarEnter:function(){var t=this;this.$nextTick((function(){"user"===t.sidebarForm&&t.$el.querySelector('input[name="first_name"]').focus()}))},onImportFormUpdate:function(t,e){this[t]&&(this[t]=v(v({},this[t]),e))}},watch:{projectTypeName:function(t){var e=this;this.setInternalContributors(),t&&this.setInternalContributors(this.xTeamActive.filter((function(t){return t.type!==f.constants.USER_TYPE_CONTRIBUTOR||t.id===e.xAccountData.id})).map((function(t){return{id:t.id,group:"manager"}})))}},created:function(){this.xPredefinedTemplates.length||this.$store.dispatch("project/loadPredefinedTemplates")},beforeDestroy:function(){Slickplan.helpers.requestCancel("project/loadPredefinedTemplates"),Slickplan.helpers.onboard(!1)}}},61352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"modal-project-create-select-type",inject:["onClose"],data:function(){return{hoverOver:null}},computed:a(a({},(0,r.mapState)({xPlanLimits:function(t){return t.core.planLimits},xProjects:function(t){return t.dashboard.projects}})),(0,r.mapGetters)({xProjectsActive:"dashboard/activeProjects"})),methods:{onSelect:function(t){this.xProjectsActive.length+1>this.xPlanLimits.projects?(this.onClose(),this.$notify({type:"error",text:this.$trans("errors.upgrade_to_add_projects")})):this.$parent.projectTypeName=t}},mounted:function(){var t=this;Object.keys(this.xProjects).length||this.$nextTick((function(){Slickplan.helpers.onboard(t.$el.querySelector(".button.-sitemap"),["👉&nbsp;&nbsp;Choose the “Plan a Website” project type to try all Slickplan modules and features at once."],["left","right"])}))}}},55260:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var r=n(48416),i=n(84360),o=n.n(i),a=n(71995),s=n(99368),l=n(42456),c=n(50156),u=n(84064),d=n(30160),f=n(14580);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const g={name:"modal-project-create-sitemap",components:{LinkHelp:d.default,"upload-internal":u.default,ModalProjectUploadLogo:c.default,ProjectMembers:s.default},mixins:[l.formHelpers],inject:["onClose"],data:function(){return{formData:{title:"",language:"en_US",logo:null},formDataCrawler:{url:"",cell_text:"title",follow_mode:"2"},formDataAi:{prompt:"",counter:"1-10"},formDataText:{file_type:"upload",file_id:0,file_name:"",file_size:0,file_content:""},formDataXml:{file_type:"",file_id:0,file_name:"",file_size:0,cell_text:"path"},activeTab:"general",activeSubtab:"template",aiExamples:!1,isUploading:!1}},computed:b(b({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize},xProjects:function(t){return t.dashboard.projects},xPredefinedTemplates:function(t){return t.project.predefinedTemplates.sitemap},xAccountData:function(t){return t.user.user}})),{},{isActiveTabTeam:function(){return"team"===this.activeTab},isLastStep:function(){return!this.$parent.canHaveContributors||this.isActiveTabTeam||"validated"===this.activeTab},selectedCustomTemplate:function(){var t=this;return this.$parent.selectedTemplate&&!this.templates.find((function(e){return e.key===t.$parent.selectedTemplate}))&&this.xPredefinedTemplates?this.xPredefinedTemplates.find((function(e){return e.key===t.$parent.selectedTemplate})):null},templates:function(){var t=this,e=[{id:"corporate",value:this.$trans("corporate_website")},{id:"blog",value:this.$trans("blog")},{id:"ecommerce",value:this.$trans("ecommerce")}].map((function(e){var n=t.xPredefinedTemplates.find((function(t){return t.id===e.id}));return n?b(b({},e),{},{key:n.key}):null})).filter((function(t){return t}));return[{id:"blank",key:"blank",value:this.$trans("blank_project")}].concat(e)},allLanguages:function(){return Slickplan.helpers.sortString(Object.entries(Slickplan.constants.CONTENT_LANGUAGES).map((function(t){var e=m(t,2),n=e[0],r=e[1];return{value:n,label:r.name===r.name_local?r.name:"".concat(r.name," / ").concat(r.name_local)}})),"label")},canSubmit:function(){return!!this.isActiveTabTeam||!("crawler"===this.activeSubtab&&!this.formDataCrawler.url||"ai"===this.activeSubtab&&this.formDataAi.prompt.length<15||"xml"===this.activeSubtab&&!this.formDataXml.file_id||"text"===this.activeSubtab&&!this.formDataText.file_id)&&!Slickplan.helpers.isBlank(this.formData.title)},subtabs:function(){return[{id:"template",name:"Template"},{id:"crawler",name:"Site crawler",disabled:!this.$root.isAllowedFeature(f.constants.FEATURE_IMPORT_CRAWLER)},{id:"ai",name:"AI assist",disabled:!this.$root.isAllowedFeature(f.constants.FEATURE_AI)},{id:"xml",name:"XML file",disabled:!this.$root.isAllowedFeature(f.constants.FEATURE_IMPORT_XML)},{id:"text",name:"Text file",disabled:!this.$root.isAllowedFeature(f.constants.FEATURE_IMPORT_TEXT_FILE)}]},fullFormData:function(){var t={crawler:b(b({},this.formDataCrawler),this.$parent.formDataCrawler),ai:this.formDataAi,xml:this.formDataXml,text:this.formDataText},e={wordpress:this.$parent.formDataXmlWordPress,google:this.$parent.formDataXmlGoogle};return b(b(b({},this.formData),t[this.activeSubtab]||{}),"xml"===this.activeSubtab&&e[this.formDataXml.file_type]||{})}}),methods:{onBackClick:function(){this.activeTab="general"},onSubtabClick:function(t){t.disabled||(this.activeSubtab=t.id)},onUploadSuccess:function(t,e){"xml"===this.activeSubtab&&(this.formDataXml.file_type=(null==t?void 0:t.detected_type)||""),this.onUploadFile(t,e)},onUploadFile:function(t,e){var n="xml"===this.activeSubtab?"formDataXml":"formDataText";this[n].file_id=(null==t?void 0:t.id)||(null==t?void 0:t.file_id)||0,this[n].file_name=(null==t?void 0:t.name)||(null==e?void 0:e.name)||"",this[n].file_size=(null==t?void 0:t.size)||(null==e?void 0:e.size)||""},onSubmit:function(){var t=this;this.formSubmit({action:function(){var e=b(b({},t.fullFormData),{},{type:t.activeSubtab});return t.isLastStep?(e.contributors=t.$parent.internalContributors,"template"===t.activeSubtab&&"blank"!==t.$parent.selectedTemplate?a.default.sitemap.clone(e,t.$parent.selectedTemplate):a.default.project.create("sitemap",e)):(e.validate=!0,a.default.project.create("sitemap",e))},success:function(e){t.isLastStep||(t.$parent.canHaveContributors?t.activeTab="team":(t.activeTab="validated",t.onSubmit())),t.$parent.onSubmitSuccess("sitemap",e)}})},onSampleFileDownload:function(){o()(f.sampleDashTxt,"sample.txt","text/plain")}},mounted:function(){var t,e=this;this.activeSubtab||(this.activeSubtab=null===(t=this.subtabs.find((function(t){return!t.disabled})))||void 0===t?void 0:t.id);this.$parent.selectedTemplate="blank",this.xAccountData.trial&&(this.formDataCrawler.limit=!0,this.formDataCrawler.pages_limit>this.$parent.crawlerLimit&&(this.formDataCrawler.pages_limit=this.$parent.crawlerLimit)),Object.keys(this.xProjects).length||this.$nextTick((function(){Slickplan.helpers.onboard(e.$el.querySelector("button.-primary"),["✏️&nbsp;&nbsp;Modify the project’s options to suit you, then go straight to your first project!"],["above","left"])}))}}},24e3:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(99368),a=n(42456),s=n(14580),l=n(50156),c=n(58384);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"modal-project-settings-diagram",components:{ModalProjectUploadLogo:l.default,ProjectMembers:o.default,"field-templates-diagram":c.default},mixins:[a.formHelpers],inject:["onClose"],data:function(){return{formData:{name:"",logo:0,template:""},activeTab:"general",permissionsAccount:s.permissionsAccount}},computed:f(f(f({},(0,r.mapState)({xProjectContributors:function(t){return t.project.contributors},xWindowSize:function(t){return t.core.windowSize},xPredefinedTemplates:function(t){return t.project.predefinedTemplates.diagram}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData"})),{},{canManage:function(){return this.$root.userCan(s.permissionsProject.MANAGE_CONTRIBUTORS)},canSubmit:function(){return!Slickplan.helpers.isBlank(this.formData.name)}}),methods:{onSubmit:function(){var t=this;if(this.formData.template&&"blank"!==this.formData.template){var e=this.xPredefinedTemplates.find((function(e){return e.key===t.formData.template}));if(e)return this.onTemplateWarning(e)}this.formData.template="",this.doSubmit()},onTemplateWarning:function(t){var e=this;this.$modal.showConfirm({title:"Confirm overwrite",buttonLabel:"Yes, overwrite",markdownText:"Are you sure you want to overwrite your current diagram with **".concat(t.value,"** template?")},(function(){return e.doSubmit()}))},doSubmit:function(){var t=this,e=[function(){return i.default.diagram.updateDetails(t.formData)}];this.$parent.canHaveContributors&&this.canManage&&this.$parent.shouldUpdateContributors()&&e.push((function(){return i.default.diagram.assignContributors(t.$parent.internalContributors)})),this.formData.template&&e.push((function(){return i.default.diagram.clone(t.formData,t.formData.template,t.xCurrentDiagramData.alias)})),this.formSubmit({action:e,success:function(e){if(t.formData.template)window.location.reload();else{e.length>1&&Slickplan.websocket.storeDispatch("project/setContributors",e.pop());var n=e[0],r=n.alias,i=n.name,o=n.status,a=n.logo;Slickplan.websocket.storeCommit("diagram/update",{id:r,data:{title:i,status:o,logo:a}}),t.onClose()}}})},refreshProject:function(t){this.formData.name=t.title,this.formData.logo=t.logo,this.formData.template=""}},mounted:function(){this.$watch("xCurrentDiagramData",this.refreshProject,{deep:!0,immediate:!0}),this.$watch("xProjectContributors",this.$parent.setInternalContributors,{deep:!0,immediate:!0})}}},42952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(53156),o=n(88476),a=n(20616),s=n(50764),l=n(65056);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"modal-project-settings",components:{"form-sitemap":i.default,"form-diagram":o.default,"user-sidebar":a.default,"permissions-sidebar":s.default},mixins:[l.mixinProjectContributors,l.mixinProjectContributorsModal],provide:function(){return{onClose:this.onClose,onContributorUpdate:this.onContributorUpdate}},computed:d(d({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),{},{currentComponent:function(){return"form-".concat(this.xProjectType.project)}})}},89132:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var r=n(48416),i=n(2376),o=n.n(i),a=n(71995),s=n(99368),l=n(42456),c=n(14580),u=n(50156),d=["workflow"];function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const g={name:"modal-project-settings-sitemap",components:{ModalProjectUploadLogo:u.default,ProjectMembers:s.default},mixins:[l.formHelpers],inject:["onClose"],data:function(){return{siteSettings:{title:"",url:"",include_parent_slug:!1,default_language:"en_US",languages:[]},project:{title:"",logo:0},options:{numbering:!1,regular_case:!0},permissionsAccount:c.permissionsAccount,activeTab:"general"}},computed:b(b({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details},xSitemapSiteSettings:function(t){return t.sitemap.siteSettings},xProjectContributors:function(t){return t.project.contributors},xWindowSize:function(t){return t.core.windowSize}})),{},{canManage:function(){return this.$root.userCan(c.permissionsProject.MANAGE_CONTRIBUTORS)},canSubmit:function(){return!Slickplan.helpers.isBlank(this.project.title)&&this.siteSettings.default_language},canAddNewLanguage:function(){var t=this.siteSettings.languages.length;return this.allLanguages.length>t&&this.selectedLanguages.length>=t},allLanguages:function(){var t=[];return o()(Slickplan.constants.CONTENT_LANGUAGES,(function(e,n){t.push({value:n,label:e.name===e.name_local?e.name:"".concat(e.name," / ").concat(e.name_local)})})),t.sort((function(t,e){return t.label.localeCompare(e.label)})),t},selectedLanguages:function(){return this.siteSettings.languages.filter((function(t){return Boolean(t.value)})).map((function(t){return t.value}))}}),methods:{onAddLanguage:function(){this.siteSettings.languages.push({value:"",id:Slickplan.helpers.randomString(16)})},onSubmit:function(){var t=this,e=Slickplan.helpers.objectCloneDeep({project:this.project,site_settings:this.siteSettings,options:this.options});e.site_settings.languages=this.selectedLanguages.filter((function(t){return e.site_settings.default_language!==t}));var n=[function(){return a.default.sitemap.setSettings(e)}];this.$parent.canHaveContributors&&this.canManage&&this.$parent.shouldUpdateContributors()&&n.push((function(){return a.default.sitemap.assignContributors(t.$parent.internalContributors)})),this.formSubmit({action:n,success:function(e){var n=m(e,2),r=n[0],i=n[1];i&&Slickplan.websocket.storeDispatch("project/setContributors",i);var o=r.meta,a=r.title,s=r.logo,l=r.settings;if(Slickplan.websocket.storeCommit("sitemap/setData",{meta:o,title:a,logo:s}),l){l.workflow;var c=p(l,d);Slickplan.websocket.storeDispatch("sitemap/setProjectSettings",c),c.default_language&&t.$store.commit("content/setLanguage",c.default_language)}t.onClose()}})},onDeleteLanguage:function(t){this.siteSettings.languages=this.siteSettings.languages.filter((function(e){return e.value!==t}))},refreshProject:function(t){this.project.title=t.title,this.project.logo=t.logo,this.options.regular_case=!!t.meta.regular_case,this.options.numbering=!!t.meta.numbering},refreshSettings:function(t){this.siteSettings.url=t.url||"",this.siteSettings.include_parent_slug=!!t.include_parent_slug,this.siteSettings.default_language=t.language?t.language.code:"en_US",this.siteSettings.languages=[].concat(t.translations||[]).map((function(t){return{id:Slickplan.helpers.randomString(16),value:"string"==typeof t?t:t.code}}))}},mounted:function(){this.$watch("xSitemapData",this.refreshProject,{deep:!0,immediate:!0}),this.$watch("xSitemapSiteSettings",this.refreshSettings,{deep:!0,immediate:!0}),this.$watch("xProjectContributors",this.$parent.setInternalContributors,{deep:!0,immediate:!0})}}},10952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={name:"modal-project-create-sidebar-crawler",components:{"field-textarea":n(10916).default},props:{formData:{type:Object,required:!0}},data:function(){return{scrollableHeight:0,internalFormData:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),methods:{onClose:function(){this.$parent.sidebarForm=!1},onSubmit:function(){this.$emit("update",this.internalFormData),this.onClose()}},mounted:function(){this.internalFormData=Slickplan.helpers.objectCloneDeep(this.formData),this.scrollableHeight=this.$el.getBoundingClientRect().height-69-42-50}}},27608:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(14580);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const a={name:"modal-project-permissions-form",components:{"link-help":n(30160).default},props:{user:{type:Object,required:!0}},data:function(){return{internalPermissions:[]}},computed:{permissions:function(){return o(o(o(o(o(o({},r.permissionsProject.MODIFY_STRUCTURE,{name:"Edit sitemap",description:"Create, edit, and manage sitemap."}),r.permissionsProject.MANAGE_DIAGRAMS,{name:"Edit diagrams",description:"Create, edit, and manage diagrams."}),r.permissionsProject.MANAGE_MOCKUPS,{name:"Edit design mockups",description:"Add, comment, and manage designs."}),r.permissionsProject.WRITE_COMMENTS,{name:"Leave comments",description:"Can comment on anything."}),r.permissionsProject.MANAGE_CONTENT,{name:"Manage content",description:"Edit all pages, templates, and workflows, and assign them to other users."}),r.permissionsProject.MODIFY_ASSIGNED_CONTENT_PAGES,{name:"Edit assigned content",description:"Update content and statuses on assigned pages."})}},methods:{isChecked:function(t){return this.internalPermissions.includes(t)},onToggle:function(t){this.isChecked(t)?this.internalPermissions=this.internalPermissions.filter((function(e){return e!==t})):this.internalPermissions.push(t)},onSubmit:function(){this.$emit("update",{id:this.user.id,permissions:this.internalPermissions})},onClose:function(){this.$parent.sidebarForm=!1}},mounted:function(){var t=this;Array.isArray(this.user.permissions)&&(this.internalPermissions=Slickplan.helpers.objectCloneDeep(this.user.permissions).filter((function(e){return t.permissions[e]})))}}},3352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={name:"modal-project-create-sidebar-templates",mixins:[n(42456).formHelpers],data:function(){return{templateId:null,scrollableHeight:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xPredefinedTemplates:function(t){return t.project.predefinedTemplates.sitemap}})),methods:{onSubmit:function(){this.templateId&&(this.$parent.selectedTemplate=this.templateId),this.onClose()},onClose:function(){this.$parent.sidebarForm=!1},openTemplateDemo:function(t){Slickplan.helpers.navigateTo(t,"demos",!0)}},mounted:function(){this.scrollableHeight=this.$el.getBoundingClientRect().height-69-42-50,this.templateId=this.$parent.selectedTemplate}}},35104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={name:"modal-project-create-sidebar-wordpress",components:{"field-textarea":n(10916).default},props:{formData:{type:Object,required:!0}},data:function(){return{scrollableHeight:0,internalFormData:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),methods:{onClose:function(){this.$parent.sidebarForm=!1},onSubmit:function(){this.$emit("update",this.internalFormData),this.onClose()}},mounted:function(){this.internalFormData=Slickplan.helpers.objectCloneDeep(this.formData),this.scrollableHeight=this.$el.getBoundingClientRect().height-69-42-50}}},19588:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(14580),i=n(84480),o=n(63780);const a={name:"modal-project-upload-logo",mixins:[i.imageManipulation,o.mixinFileUploadHelpers,o.mixinUploadDropzoneHelpers],props:{image:{type:[String,Number,null],default:null}},methods:{initDropzone:function(){var t=this;this.uploadFileInit({dropzoneId:this.dropzoneId,dropzone:this.dropzoneId,url:"sitemap",extensions:r.imageFormats,uploadFileKey:this.uploadFileKey,onSuccess:function(e,n){t.$emit("change",(null==n?void 0:n.path)||0)}})}},watch:{image:{handler:function(t){this.internalLogo=t||null},immediate:!0}}}},45128:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(71995);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"modal-save-as",mixins:[n(42456).formHelpers],props:{type:{type:String,default:"sitemap"}},data:function(){return{formData:{name:"",contributors:!1,comments:!1}}},computed:s(s({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType}})),{},{canSubmit:function(){return!Slickplan.helpers.isBlank(this.formData.name)}}),methods:{onSubmit:function(){var t=this,e=this.xProjectType.project;this.formSubmit({action:function(){return"diagram"===e?i.default.diagram.clone(t.formData):i.default.sitemap.clone(t.formData)},success:function(n){if(n&&n.alias){var r=t.$router.resolve({name:e,params:l({},e,n.alias)});Slickplan.helpers.navigateTo(r.href,!0)}}})}}}},45176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(39696),i=n(90152),o=n(4196),a=n(94220),s=n(78648),l=n(14580),c=n(42456);const u={name:"modal-share",components:{"form-settings":r.default,"form-basecamp":i.default,"form-slack":o.default,"form-teamwork":a.default,"form-email":s.default},mixins:[c.clipboardHelpers],props:{project:{type:Object,default:null},type:{type:String,default:"full"},link:{type:String,default:null},subject:{type:String,default:null},text:{type:String,default:null},titleAppend:{type:String,default:null}},data:function(){return{tab:"url",currentSidePanel:!1}},computed:{canModifySettings:function(){return this.$root.userCan(l.permissionsProject.MODIFY_STRUCTURE)},projectTitle:function(){return this.project?this.titleAppend?"".concat(this.project.title," > ").concat(this.titleAppend):"sitemap"===this.project.type?this.$trans("project_version_x",{title:this.project.title,version:this.project.version}):this.project.title:"Share link"},projectShareLink:function(){return this.link||Slickplan.helpers.getLink(this.project.alias,!0)},tabs:function(){return[{id:"url",name:"URL",requiredFeature:l.constants.FEATURE_SHARE_LINK},{id:"email",name:"Email",requiredFeature:l.constants.FEATURE_SHARE_EMAIL}]},socialMethods:function(){return[{id:"basecamp",requiredFeature:l.constants.FEATURE_SHARE_BASECAMP,tooltip:"Share via Basecamp"},{id:"slack",requiredFeature:l.constants.FEATURE_SHARE_SLACK,tooltip:"Share via Slack"},{id:"teamwork",requiredFeature:l.constants.FEATURE_SHARE_TEAMWORK,tooltip:"Share via Teamwork"}].map((function(t){return t.image="/images/integrations/".concat(t.id,".png"),t}))}},methods:{openInWindow:function(){window.open(this.projectShareLink)},onTabClick:function(t){var e=this;this.$root.ifAllowedFeatureThen(t.requiredFeature,(function(){e.tab=t.id}))},onSocialClick:function(t){var e=this;this.$root.ifAllowedFeatureThen(t.requiredFeature,(function(){e.currentSidePanel=t.id}))}}}},34464:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(2376),i=n.n(r),o=n(71995),a=n(11720),s=n(56180),l=n(42456),c=n(75300);const u={name:"modal-share-basecamp",components:{"field-wysiwyg":a.default,"sidebar-title":s.default},mixins:[l.formHelpers,c.shareForms],data:function(){return{id:"basecamp",version:"oauth",token:null,subdomain:null,accounts:[],projects:[],categories:[],recipients:[],formData:{account:null,project:null,category:null,recipients:[],subject:"",message:""}}},computed:{canSubmit:function(){return this.formData.project&&this.formData.message&&("oauth"===this.version&&this.formData.account||"classic"===this.version&&this.formData.category)},versions:function(){return[{label:this.$trans("basecamp_2_or_3"),value:"oauth"},{label:this.$trans("basecamp_classic"),value:"classic"}]}},methods:{onConnect:function(t,e){var n=this;this.connected=t,t?(this.stepStatus="connect","oauth"===this.version?this.shareFormLoad(e):o.default.integration.connect(this.id,{token:this.token,subdomain:this.subdomain,data:"projects"}).promise.then((function(t){t&&i()(t,(function(t,e){void 0!==n.$data[e]&&(n[e]=t)}))})).catch((function(t){t&&t.errors&&n.formSetErrors(t.errors,"version"),n.connected=!1})).finally((function(){n.stepStatus=!1}))):this.stepStatus=!1},resetForm:function(){this.formData.account=null,this.formData.project=null,this.formData.category=null,this.formData.recipients=[],this.accounts=[],this.projects=[],this.categories=[]}},watch:{connected:function(t,e){var n=this;!1===t&&!0===e&&this.projects.length?this.onDisconnect():!0===t&&!1===e&&this.formLoaded&&("oauth"===this.version?(this.stepStatus="oauth",this.oauthConnect(this.serviceData,this.onConnect)):this.formValidate("version").then((function(t){n.projects=[],t?n.onConnect(!0):n.connected=!1})))},accounts:function(t){Array.isArray(t)&&1===t.length&&(this.formData.account=[].concat(t).shift().id)},projects:function(t){t&&(this.formData.project=null,this.formData.recipients=[])},"formData.account":function(t){t&&1!==this.accounts.length&&(this.stepStatus="account",this.formData.project=null,this.formData.recipients=[],this.shareFormLoad({account:t}))},"formData.project":function(t){t&&(this.stepStatus="project",this.formData.recipients=[],this.shareFormLoad({account:this.formData.account,project:t}))}}}},55576:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(11720),o=n(99368),a=n(42456),s=n(75300);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"modal-share-email",components:{"field-wysiwyg":i.default,"project-members":o.default},mixins:[a.formHelpers,s.shareForms,a.validationHelpers],provide:function(){return{onContributorUpdate:_noop}},data:function(){return{id:"email",formData:{contributors:[],emails:[],subject:"",message:""}}},computed:f(f(f({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{canSubmit:function(){return(this.formData.contributors.length||this.formData.emails.length)&&this.formData.message}}),methods:{addContributor:function(t){var e=this.xGetTeamMemberData(t).email;this.formData.contributors.push({id:t,email:e}),e&&this.onAddEmail(e)},removeContributor:function(t){var e=this.xGetTeamMemberData(t).email;this.formData.contributors=this.formData.contributors.filter((function(e){return e.id!==t})),e&&this.onRemoveEmail(e)},onAddEmail:function(t){this.validateEmail(t)&&(this.formData.emails=c(new Set([].concat(this.formData.emails,t))))},onRemoveEmail:function(t){this.formData.emails=Slickplan.helpers.arrayDiff(this.formData.emails,t),this.formData.contributors=this.formData.contributors.filter((function(e){return e.email!==t}))}}}},41620:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(71995),o=n(65056);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"modal-share-form-settings",components:{SvgLoadingCircle:n(38764).default},mixins:[o.mixinProjectStatus],props:{projectType:{type:String,default:"sitemap"}},data:function(){return{hasSavedPassword:!1,isSaving:{password:!1,comments:!1,commentsReadOnly:!1,textSize:!1,boxSize:!1,contentView:!1,utilAreas:!1},settings:{password:!1,passwordText:"",comments:!1,commentsReadOnly:!1,textSize:!1,textSizeValue:"",boxSize:!1,boxSizeValue:"",contentView:!1,contentViewValue:"rendered",utilAreas:!1}}},computed:l(l({},(0,r.mapGetters)({xCellsDesign:"sitemap/cellsDesign"})),{},{shareOptions:function(){return"sitemap"!==this.xProjectTypeName?[]:[{label:"Set default text size",modelKey:"textSize",modelValue:"textSizeValue",options:[{value:"12px"},{value:"14px"},{value:"16px"}]},{label:"Set default page size",modelKey:"boxSize",modelValue:"boxSizeValue",options:[{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large"}]},{label:"Set default content view",modelKey:"contentView",modelValue:"contentViewValue",options:[{value:"rendered",label:"Rendered"},{value:"block",label:"Blocks"}]},{label:"Show expanded Utility and Footer",modelKey:"utilAreas"}]}}),methods:{savePassword:function(){var t,e=this;this.isSaving.password||(this.hasSavedPassword=!0,"diagram"===this.xProjectTypeName?(this.isSaving.password=i.default.diagram.updateDetails({meta:{password:this.settings.passwordText}}),t="diagram/updateCurrent"):(this.isSaving.password=i.default.sitemap.setSettings({project:{password:this.settings.passwordText}}),t="sitemap/setData"),this.isSaving.password.promise.then((function(){Slickplan.websocket.storeCommit(t,{meta:{password:e.settings.password}}),e.hasSavedPassword=e.settings.password})).finally((function(){e.isSaving.password=!1})))},saveCommentsSetting:function(){var t=this;this.isSaving.comments&&this.isSaving.comments.source.cancel();var e,n=this.settings.comments?this.settings.commentsReadOnly?"read":"write":"none";"diagram"===this.xProjectTypeName?(this.isSaving.comments=i.default.diagram.updateDetails({meta:{show_comments:n}}),e="diagram/updateCurrent"):(this.isSaving.comments=i.default.sitemap.setSettings({options:{show_comments:n}}),e="sitemap/setData"),this.isSaving.comments.promise.then((function(){Slickplan.websocket.storeCommit(e,{meta:{comments:n}})})).finally((function(){t.isSaving.comments=!1,t.isSaving.commentsReadOnly=!1}))},saveCellUi:function(t){var e=this;this.isSaving[t]&&this.isSaving[t].source.cancel();var n=c({},{contentView:"share_content_view",textSize:"share_font_size",boxSize:"share_box_size",utilAreas:"share_visible_utils"}[t],this.settings[t]?void 0===this.settings["".concat(t,"Value")]||(this.settings["".concat(t,"Value")]||null):null);this.isSaving[t]=i.default.sitemap.setSettings({options:n}),this.isSaving[t].promise.then((function(t){Slickplan.websocket.storeCommit("sitemap/setData",{meta:t.meta})})).finally((function(){e.isSaving[t]=!1}))}},mounted:function(){var t=this,e=this.currentProjectMeta,n=e.password,r=e.comments,i=e.share_cells_ui,o=e.share_options;if(this.settings.password=Boolean(n),this.settings.passwordText="",this.settings.comments=Boolean("read"===r||"write"===r),this.settings.commentsReadOnly="read"===r,this.hasSavedPassword=this.settings.password,this.$watch("settings.password",(function(e,n){!0===e&&!1===n?(t.isSaving.password&&(t.isSaving.password.source.cancel(),t.isSaving.password=!1),Slickplan.helpers.setSlideTransitionHeight(87)):!1===e&&!0===n&&(t.settings.passwordText="",t.savePassword())})),this.$watch("settings.comments",(function(e,n){!0===e&&!1===n&&Slickplan.helpers.setSlideTransitionHeight(40),t.isSaving.commentsReadOnly=!1,t.saveCommentsSetting()})),this.$watch("settings.commentsReadOnly",this.saveCommentsSetting),"sitemap"===this.xProjectTypeName){this.settings.textSizeValue=this.xCellsDesign.textSize||"",this.settings.boxSizeValue=this.xCellsDesign.boxSize||"",i&&(i.font_size&&(this.settings.textSize=!0,this.settings.textSizeValue=i.font_size||""),i.box_size&&(this.settings.boxSize=!0,this.settings.boxSizeValue=i.box_size||""));var a="rendered";this.settings.contentViewValue=(null==o?void 0:o.content_view_mode)||a,this.settings.contentView=this.settings.contentViewValue!==a,this.settings.utilAreas=(null==o?void 0:o.visible_utils)||!1,["textSize","boxSize","contentView","utilAreas"].forEach((function(e){t.$watch("settings.".concat(e),(function(){return t.saveCellUi(e)})),void 0!==t.settings["".concat(e,"Value")]&&t.$watch("settings.".concat(e,"Value"),(function(){return t.saveCellUi(e)}))}))}}}},27480:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(11720),i=n(56180),o=n(42456),a=n(75300);const s={name:"modal-share-slack",components:{"field-wysiwyg":r.default,"sidebar-title":i.default},mixins:[o.formHelpers,a.shareForms],data:function(){return{id:"slack",channels:[],formData:{channel:null,message:""}}},computed:{canSubmit:function(){return this.formData.channel&&this.formData.message}},methods:{onConnect:function(t){this.connected=t,t&&(this.stepStatus="form",this.shareFormLoad())},resetForm:function(){this.formData.channel=null,this.channels=[]}},watch:{connected:function(t,e){!1===t&&!0===e?this.onDisconnect():!0===t&&!1===e&&this.formLoaded&&this.oauthConnect(this.serviceData,this.onConnect)}}}},33200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(71995),i=n(11720),o=n(56180),a=n(42456),s=n(75300);const l={name:"modal-share-teamwork",components:{"field-wysiwyg":i.default,"sidebar-title":o.default},mixins:[a.formHelpers,s.shareForms],data:function(){return{id:"teamwork",apiKey:"",projects:[],categories:[],recipients:[],formData:{project:null,category:null,recipients:[],message:""}}},computed:{canSubmit:function(){return this.formData.project&&this.formData.category&&this.formData.message}},methods:{onConnect:function(t){var e=this;this.stepStatus="connect",r.default.integration.connect(this.id,{key:t,data:"projects"}).promise.then((function(t){t&&t.projects&&(e.formData.project=null,e.projects=t.projects)})).catch((function(t){t&&t.errors&&e.formSetErrors(t.errors,"apikey"),e.connected=!1})).finally((function(){e.stepStatus=!1}))},resetForm:function(){this.formData.project=null,this.formData.category=null,this.formData.recipients=[],this.projects=[]}},watch:{connected:function(t,e){var n=this;!1===t&&!0===e&&this.projects.length?this.onDisconnect():!0===t&&!1===e&&this.formLoaded&&this.formValidate("apikey").then((function(t){t?n.onConnect(n.apiKey):n.connected=!1}))},"formData.project":function(t){this.shareFormLoad({project:t})}}}},88652:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(2376),i=n.n(r),o=n(71995),a=n(14580);const s={name:"modal-team-user",mixins:[n(42456).formHelpers],props:{member:{type:Object,default:null}},data:function(){return{formData:{first_name:null,last_name:null,email:null,password:null,user_type:a.constants.USER_TYPE_CONTRIBUTOR,permissions:[]}}},computed:{userTypes:function(){return[{label:this.$trans("regular_contributor"),value:a.constants.USER_TYPE_CONTRIBUTOR},{label:this.$trans("administrator"),value:a.constants.USER_TYPE_ADMINISTRATOR}]},canSubmit:function(){var t=Slickplan.helpers.isBlank;return this.formHelper.isDirty&&!t(this.formData.first_name)&&!t(this.formData.last_name)&&!t(this.formData.email)}},methods:{resendInvitation:function(){this.member.last_login||(this.$emit("close"),this.member&&(this.$notify({text:"Invitation sent"}),o.default.team.resendInvitation(this.member.id).promise.then(_noop).catch(_noop)))},onSubmit:function(){var t=this;this.formSubmit({action:function(){return t.member?o.default.team.update(t.member.id,t.formData):o.default.team.create(t.formData)},success:function(e){t.formHelper.isSubmitting=!1,t.$emit("action",{event:"saved",data:e}),t.$emit("close")},error:function(e){e&&!e.errors&&t.$emit("close")}})}},mounted:function(){var t=this;this.member&&(i()(this.member,(function(e,n){void 0!==t.formData[n]&&(t.formData[n]=e)})),this.formData.user_type=this.member.type||a.constants.USER_TYPE_CONTRIBUTOR),this.$watch("formData",(function(){return t.formHelper.isDirty=!0}),{deep:!0})}}},92648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(71995);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"modal-template-import",mixins:[n(42456).formHelpers],data:function(){return{tab:"default",projects:null,templates:[],currentSitemap:null,selected:[],defaultTemplates:[]}},computed:c(c({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),{},{isLoaded:function(){return this.projects&&Array.isArray(this.projects)},sitemapTemplates:function(){return"default"===this.tab?this.defaultTemplates:this.currentSitemap?this.templates[this.currentSitemap]:null},minScrollableHeight:function(){return Math.min(300,this.maxScrollableHeight)},maxScrollableHeight:function(){return this.xWindowSize.height-255-20}}),methods:{loadData:function(t){var e={},n=[],r=[];Object.keys(t).forEach((function(i){if(i!==Slickplan.globalVars.sitemapAlias){var o=t[i];if(o.templates&&Array.isArray(o.templates)&&o.templates.length)if(r[i]=o.templates.map((function(t){return t.value="".concat(i,"~").concat(t.alias),t})),"number"==typeof e[o.project_id]){var a=e[o.project_id];n[a].versions.push({version:o.version,alias:i}),n[a].templates+=o.templates.length}else n.push({name:o.name,alias:i,versions:[{version:o.version,alias:i}],templates:o.templates.length}),e[o.project_id]=n.length-1}})),this.templates=r,this.projects=Slickplan.helpers.sortString(n,"name"),this.tab=this.projects.length?"projects":"default"},loadDefaultTemplates:function(t){var e=t.content.map((function(t){return{name:t.value,value:t.key}}));this.defaultTemplates=Slickplan.helpers.sortString(e,"name")},onSelect:function(t,e){e&&"string"==typeof e&&(t.alias=e),this.currentSitemap=t.alias},onSubmit:function(){var t,e=this;if(this.formHelper.isSubmitting=!0,"projects"===this.tab){var n={};this.selected.forEach((function(t){var e=a(t.split("~"),2),r=e[0],i=e[1];n[r]||(n[r]=[]),n[r].push(i)})),t=i.default.sitemap.cloneContentTemplates(Object.keys(n).map((function(t){return{sitemap:t,templates:n[t]}})))}else t=i.default.sitemap.cloneDefaultTemplates(this.selected);return t.promise.then((function(t){e.$store.commit("content/addTemplate",t),e.$emit("close")})).finally((function(){e.formHelper.isSubmitting=!1})),t}},watch:{tab:function(t,e){t!==e&&(this.selected=[])}},mounted:function(){var t=this;Slickplan.helpers.requestSingle((function(){var e=i.default.sitemap.getAllContentTemplates(),n=i.default.project.getResourceTemplates("content");return e.promise.then(t.loadData).catch(Slickplan.catchAll),n.promise.then(t.loadDefaultTemplates).catch(Slickplan.catchAll),[e.promise,n.promise]}),this.$options.name)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},45168:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(71995),i=n(13828),o=n(42456),a=n(14580);const s={name:"modal-workflow",components:{"field-colorpicker":i.default},mixins:[o.formHelpers],props:{statusId:{type:[String,null],default:null},statuses:{type:Array,required:!0},clone:{type:Boolean,default:!1},onSave:{type:Function,default:null}},data:function(){return{formData:{name:"",description:"",readonly:!1,color:Slickplan.constants.DEFAULT_SITE_COLOR},previousColor:null}},computed:{canSubmit:function(){return!Slickplan.helpers.isBlank(this.formData.name)||!Slickplan.helpers.isHex(this.formData.color)},isEdit:function(){return this.statusId&&!this.clone},isUnassigned:function(){return this.statusId===a.constants.CONTENT_STATUS_UNASSIGNED}},methods:{onSubmit:function(){var t,e=this;t="function"==typeof this.onSave?{action:function(){return e.onSave(e.formData,e.statusId)},success:function(){return e.$emit("close")}}:{action:function(){return e.isEdit?r.default.sitemap.updateContentStatus(e.statusId,e.formData):r.default.sitemap.addContentStatus(e.formData)},success:function(t){t&&t.status&&Slickplan.websocket.storeDispatch("sitemap/setContentStatus",t.status),e.$emit("close")}},this.formSubmit(t)}},mounted:function(){var t=this;if(this.statusId){var e=this.statuses.find((function(e){return e.alias===t.statusId}));this.formData.name=e.name+(this.clone?" (Clone)":""),this.formData.description=e.description,this.formData.readonly=e.readonly,this.formData.color=e.color}this.previousColor=this.isEdit?this.formData.color:null}}},97784:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"account",computed:s(s({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),{},{menu:function(){var t=[];return this.$root.userCan(i.permissionsAccount.COMPANY_SETTINGS)&&t.push({name:this.$trans("company_settings"),link:"/account/company"}),this.$root.userCan(i.permissionsAccount.PAYMENTS)&&t.push({name:this.$trans("plans_and_billing"),link:"/account/billing"}),this.$root.userCan(i.permissionsAccount.VIEW_INVOICES)&&t.push({name:this.$trans("invoices"),link:"/account/invoices"}),this.$root.userCan(i.permissionsAccount.MESSAGE_TEMPLATES)&&t.push({name:this.$trans("message_templates"),link:"/account/messages"}),t.push({name:this.$trans("preferences"),link:"/account/preferences"}),t.push({name:"Workflow Templates",link:"/account/workflows"}),t}})}},56236:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(48416),i=n(71995),o=n(78216),a=n(73496),s=n(42456),l=n(14580),c=["user"];function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=null;const y={name:"account-billing",timerRecheck:null,fieldFocusValue:null,stripe:null,mixins:[s.formHelpers],data:function(){return{permissionsAccount:l.permissionsAccount,paymentForm:!1,plans:[],coupon:null,isSubmitting:!1,recheckCounter:0,billingPortalLoading:!1,selectedPlanToSubmit:{id:0,id_human_readable:null,name:null,interval:"monthly",currency:"USD"}}},computed:h(h({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),{},{priceOriginalKey:function(){return this.isAnnual?"price_annual_original":"price_original"},priceOriginalKeyFull:function(){return this.isAnnual?"price_annual_full_original":"price_original"},isAnnual:function(){return"yearly"===this.selectedPlanToSubmit.interval},isSuspendedAfterError:function(){return"card_expired"===this.billingDetails.is_suspended||"payment_error"===this.billingDetails.is_suspended},hasCouponDetails:function(){var t,e,n;return(null===(t=this.coupon)||void 0===t?void 0:t.header)||(null===(e=this.coupon)||void 0===e?void 0:e.text)||(null===(n=this.coupon)||void 0===n?void 0:n.coupon)},hasSomeDiscount:function(){var t=this;return this.plans.some((function(e){return e[t.priceOriginalKey]}))},currentPlan:function(){return this.plans.find((function(t){return t.is_current}))},currentPlanId:function(){return!this.currentPlanIdRegardlessOfInterval||!0!==this.currentPlan.is_current&&this.selectedPlanToSubmit.interval!==this.currentPlan.is_current?null:this.currentPlan.id},currentPlanIdRegardlessOfInterval:function(){var t;return null===(t=this.currentPlan)||void 0===t?void 0:t.id},recommendedPlanId:function(){var t;return this.currentPlanIdRegardlessOfInterval?null:null===(t=this.plans.find((function(t){return t.is_recommended})))||void 0===t?void 0:t.id},billingIntervals:function(){return[{label:this.$trans("monthly"),value:"monthly"},{label:this.$trans("yearly_with_discount"),value:"yearly"}]},canUpdateCurrency:function(){return!this.billingDetails.is_selected_currency},currentCurrencySign:function(){return"EUR"===this.selectedPlanToSubmit.currency?"€":"$"},currencies:function(){return[{key:"USD",value:"USD"},{key:"EUR",value:"EUR"}]},paymentTypes:function(){return[{key:"recurring",value:"Recurring"},{key:"onetime",value:"One-time"}]}}),methods:{formatPlanPrice:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Slickplan.helpers.formatPrice(t,this.selectedPlanToSubmit.currency,e)},selectPlan:function(t){this.isSubmitting||(this.selectedPlanToSubmit.id=t.id,this.selectedPlanToSubmit.id_human_readable=t.id_human_readable,this.selectedPlanToSubmit.name=t.name,t.is_free?this.downgradeToFree():this.onSubmit())},onSubmit:function(t){var e=this;this.formSubmit({before:function(){e.isSubmitting=e.selectedPlanToSubmit.id},after:function(){e.isSubmitting=!1},action:function(){var n={plan_interval:e.selectedPlanToSubmit.interval,currency:e.selectedPlanToSubmit.currency};return t&&(n.archive=t),e.coupon&&(n.coupon=e.coupon.id),e.gaClientId&&(n.ga4_client_id=e.gaClientId),i.default.payment.paymentForm(e.selectedPlanToSubmit.id_human_readable,n)},error:function(t){t&&t.errors&&t.errors.coupon&&e.$notify({text:t.errors.coupon[0],type:"error",duration:0}),t&&t.archive&&e.archiveModal(t.archive)}})},archiveModal:function(t){var e=this;this.$modal.show(a.default,{steps:t,callback:function(t){return e.onSubmit(t)}},{title:this.$trans("messages.downgrade_to",{plan:this.selectedPlanToSubmit.name}),width:815})},closeAccount:function(){this.$modal.show(o.default,{header:this.$trans("messages.delete_account"),description:this.$trans("messages.delete_account_warning"),checkboxes:[{label:this.$trans("messages.delete_account_projects")},{label:this.$trans("messages.delete_account_links")},{label:this.$trans("messages.delete_account_comments")}].map((function(t){return t.id=Slickplan.helpers.randomString(16),t})),buttonCancel:this.$trans("cancel_and_keep_account"),buttonSubmit:this.$trans("delete_account"),callback:function(){return i.default.account.closeAccount()}},{width:460,closeButton:!1})},onLogout:function(){i.default.auth.logout().promise.then((function(t){t&&t.redirect&&Slickplan.helpers.navigateTo(t.redirect,!0)}))},downgradeToFree:function(){var t=this;this.$modal.show(o.default,{header:this.$trans("messages.downgrade_account"),headerText:this.billingDetails.is_suspended||!this.billingDetails.days_left?null:this.$trans("messages.downgrade_account_current_plan_expire",{days:this.billingDetails.days_left,date:this.billingDetails.date_expire}),description:this.$trans("messages.downgrade_account_confirm"),checkboxes:[{label:this.$trans("messages.downgrade_account_projects")},{label:this.$trans("messages.downgrade_account_features")},{label:this.$trans("messages.downgrade_account_files",{days:60})}].map((function(t){return t.id=Slickplan.helpers.randomString(16),t})),buttonCancel:this.$trans("cancel_and_keep_account"),buttonSubmit:this.$trans("downgrade_account"),excludeUsers:["owner"],callback:function(){return i.default.payment.downgradeToFree().promise.then((function(e){e&&e.billing&&(t.billingDetails=e.billing,t.$notify({text:t.$trans("messages.downgrade_to_free",{old:e.old_plan,new:e.new_plan,days:e.billing.days_left}),duration:3e4}))}))}},{width:480,closeButton:!1})},setCurrentPlan:function(t){this.plans.forEach((function(e){e.is_current=e.id===t}))},setBillingDetails:function(t){var e,n=t.user,r=p(t,c);if(this.recheckCounter||(this.billingDetails=r),n&&(this.$store.commit("core/setPlanLimits",{limits:{branding:!!n.branding}}),this.$store.commit("user/set",n)),r.is_suspended&&this.$store.commit("user/append",{error_message:r.error_message||null}),r.plan_interval&&!this.recheckCounter&&(this.selectedPlanToSubmit.interval=r.plan_interval),null!==(e=r.pending)&&void 0!==e&&e.status){var i=r.plan_id;if("uncollectible"===r.pending.status)this.$notify({destroyAll:!0,type:"error",text:r.error_message||"Payment uncollectible",duration:0});else if("open"===r.pending.status)this.scheduleProcessingCheck(r.pending.session_id||this.$route.params.type);else if(r.pending){i=r.pending.plan_id;var o=this.plans.find((function(t){return t.id===r.pending.plan_id})).name,a=r.plan_interval||"monthly",s=this.$trans("messages.checkout_success_plan_with_interval",{plan:o,interval:a});this.$notify({destroyAll:!0,text:s,duration:0})}i&&this.setCurrentPlan(i)}else r.payment_method_updated?this.$notify({destroyAll:!0,text:"New payment information saved.",duration:0}):r.is_downgrading&&r.days_left&&this.$notify({title:"Reminder",text:this.$trans("messages.downgrade_to_free",{old:this.plans.find((function(t){return t.is_current})).name,new:"Free",days:r.days_left}),duration:3e4})},scheduleProcessingCheck:function(t){var e=this;this.recheckCounter>100||(this.recheckCounter||this.$notify({type:"processing",text:this.$trans("messages.payment_method_takes_longer"),note:this.$trans("messages.payment_method_takes_longer_note"),duration:0,buttons:[{label:"Open billing portal",onClick:this.openBillingPortal}]}),this.$options.timerRecheck=setTimeout((function(){e.recheckCounter+=1,i.default.payment.getBillingData(t).promise.then(e.setBillingDetails).catch(_noop)}),1e4))},openBillingPortal:function(){var t=this;this.billingPortalLoading||(this.$notify({destroyAll:!0}),this.billingPortalLoading=!0,Slickplan.helpers.requestSingle((function(){var e={};t.gaClientId&&(e.ga4_client_id=t.gaClientId);var n=i.default.payment.getBillingPortalUrl(e);return n.promise.then((function(t){window.location=t.url})).catch((function(){t.billingPortalLoading=!1})),n}),this.$options.name))}},created:function(){if(this.$store.dispatch("core/setMetaTitle",this.$trans("titles.billing")),b){var t=b,e=t.plans,n=t.billing,r=t.team;this.plans=null==e?void 0:e.plans,this.coupon=null==e?void 0:e.coupon,n&&this.setBillingDetails(n),r&&this.$store.dispatch("team/set",r),this.selectedPlanToSubmit.currency=this.billingDetails.currency||"USD"}},beforeDestroy:function(){var t=document.getElementById("paymentprocessed");t&&t.parentNode.removeChild(t)},beforeRouteEnter:function(t,e,n){var r;Promise.all([i.default.payment.getPlans().promise,i.default.payment.getBillingData(null===(r=t.params)||void 0===r?void 0:r.type).promise,i.default.team.getUsersList().promise]).then((function(t){var e=d(t,3),r=e[0],i=e[1],o=e[2];b={plans:r,billing:i,team:o},n((function(){b=null}))}))}}},77600:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var r=n(48416),i=n(71995),o=n(13828),a=n(65756),s=n(42456),l=n(84480),c=n(63780),u=n(14580);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b={name:"account-company",components:{"field-colorpicker":o.default},mixins:[a.branding,s.formHelpers,l.imageManipulation,c.mixinFileUploadHelpers],data:function(){return{currentSiteColor:null}},computed:h(h({},(0,r.mapState)({xPlanLimits:function(t){return t.core.planLimits},xAccountData:function(t){return t.user.user}})),{},{radios:function(){return[{label:"Use Company Name",value:"text"},{label:"Use Company Logo",value:"image"}]},brandingToolsClasses:function(){if(!this.xPlanLimits.branding)return{"pointer-events":"none",opacity:"0.5"}},siteColor:{get:function(){return this.xAccountData.site_color},set:function(t){t="#".concat(t.replace(/[^a-f0-9]+/gi,"")),Slickplan.helpers.isHex(t)&&Slickplan.websocket.storeCommit("user/set",{site_color:t.toLowerCase()})}},darkFont:{get:function(){return!!this.xAccountData.dark_font},set:function(t){Slickplan.websocket.storeCommit("user/set",{dark_font:t?1:0})}}}),methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){var e=[];return t.$el.querySelectorAll("input").forEach((function(t){t.name&&e.push(t.name)})),i.default.account.updateCompany(Slickplan.helpers.objectPick(t.xAccountData,e))},success:function(){t.currentSiteColor=t.xAccountData.site_color,t.$notify({text:"New settings saved"})}})},resetSiteColor:function(){this.siteColor=this.currentSiteColor}},watch:{"xAccountData.company_logo_type":function(t){"image"===t&&Slickplan.helpers.setSlideTransitionHeight(250)},siteColor:function(t){var e=f(Slickplan.helpers.hex2rgb(t),3),n=.299*e[0]+.587*e[1]+.114*e[2]>186;n!==this.darkFont&&(this.darkFont=n)}},created:function(){var t=this;this.$store.dispatch("core/setMetaTitle","Company Settings"),this.currentSiteColor=this.xAccountData.site_color,this.uploadFileInit({url:"branding",extensions:u.imageFormats,onError:function(e){var n=Slickplan.helpers.getValue(e,"errors.file.0",Slickplan.helpers.getValue(e,"error.msg"));n&&t.$notify({type:"error",text:n})},onSuccess:function(t,e){null!=e&&e.path&&Slickplan.websocket.storeCommit("user/set",{company_logo:e.path})}}),this.$store.watch((function(t){return t.user.user}),(function(){return t.formHelper.isDirty=!0}),{deep:!0})}}},94112:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(71995),o=n(71908),a=n(95164),s=n(42456);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=null;const h={name:"account-invoices",components:{"billing-address":o.default,"table-listing":a.default},mixins:[s.formHelpers],data:function(){return{sort:["timestamp","desc"],invoices:[],billingData:{billing_address:"",billing_email_invoices:[]}}},computed:f(f({},(0,r.mapState)({xBarIsVisible:function(t){return t.actionBar.isVisible},xBarSelectedIds:function(t){return t.actionBar.selected},xAccountData:function(t){return t.user.user}})),{},{actionBarButtons:function(){var t=this,e=[];return 1===this.xBarSelectedIds.length&&e.push({id:1,icon:"print",label:"Print",onClick:function(){return window.open("/account/invoice/".concat(t.xBarSelectedIds[0]))}}),e.push({id:2,icon:"download",label:"Download",onClick:function(){return t.onDownload(t.xBarSelectedIds)}}),e},sortedInvoices:function(){var t=c(this.sort,2),e=t[0],n=t[1],r=this.invoices.slice(0);return"name"===e?r.sort((function(t,e){return t.details.label.localeCompare(e.details.label)})):r.sort((function(t,n){return t[e]===n[e]?t.details.label.localeCompare(n.details.label):t[e]>n[e]?1:-1})),"desc"===n?r.reverse():r},sortedInvoicesRows:function(){var t=this;return this.sortedInvoices.map((function(e){return{id:e.alias,columns:[{label:e.details.label},{label:e.date},{label:e.transaction_id},{label:Slickplan.helpers.formatPrice(e.amount,e.details.currency)},{buttons:t.rowButtons(e)}]}}))}}),methods:{rowButtons:function(t){var e=this;return[{id:1,icon:"print",tooltip:"Print",onClick:function(){return window.open("/account/invoice/".concat(t.alias))}},{id:2,icon:"download",tooltip:"Download",onClick:function(){return e.onDownload(t.alias)}}]},onDownload:function(t){var e=i.default.account.downloadInvoices(t);return e.promise.then(Slickplan.helpers.downloadFromResponse),e},onBillingDataUpdated:function(t){var e,n;this.billingData.billing_address=null!==(e=null==t?void 0:t.billing_address)&&void 0!==e?e:"",this.billingData.billing_email_invoices=null!==(n=null==t?void 0:t.billing_email_invoices)&&void 0!==n?n:[]}},watch:{actionBarButtons:function(t){this.xBarIsVisible&&this.$store.commit("actionBar/update",{buttons:t})},xBarSelectedIds:function(t,e){var n=this;t.length&&!e.length?this.$store.commit("actionBar/set",{isVisible:!0,buttons:this.actionBarButtons,selectAll:function(){return n.invoices.map((function(t){return t.alias}))}}):!t.length&&e.length&&this.$store.commit("actionBar/reset")}},created:function(){this.$store.dispatch("core/setMetaTitle",this.$trans("titles.invoices"));var t=m,e=t.billing,n=t.invoices;this.invoices=n||[],this.onBillingDataUpdated(e)},beforeRouteEnter:function(t,e,n){Promise.all([i.default.account.getBillingData().promise,i.default.account.getInvoices().promise]).then((function(t){var e=c(t,2),r=e[0],i=e[1];m={billing:r,invoices:i},n((function(){m=null}))}))}}},95608:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(71995),i=n(42456);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const s={name:"account-invoices-billing-address",mixins:[i.formHelpers,i.validationHelpers],props:{address:{type:String,default:null},emails:{type:[String,Array],default:null}},data:function(){return{internalEmails:[],internalAddress:"",showForm:!1}},computed:{formattedEmails:function(){return("string"==typeof this.emails?this.emails.split(","):this.emails||[]).map((function(t){return t?"".concat(t).toLowerCase().trim():null})).filter((function(t){return t}))},formattedEmailsLabel:function(){return this.formattedEmails.length>4?[].concat(this.formattedEmails.slice(0,4),"+".concat(this.formattedEmails.length-4)).join(", "):this.formattedEmails.join(", ")}},methods:{onAddEmail:function(t){this.validateEmail(t)&&(this.internalEmails=o(new Set([].concat(this.internalEmails,t.toLowerCase()))))},onRemoveEmail:function(t){this.internalEmails=Slickplan.helpers.arrayDiff(this.internalEmails,t.toLowerCase())},onSubmit:function(t){var e=this,n="address"===t?{billing_address:this.internalAddress}:{billing_email_invoices:this.internalEmails};this.formSubmit({action:function(){return r.default.account.updateCompany(n)},success:function(t){e.$emit("update",t),e.showForm=!1}},t)}},watch:{showForm:function(t,e){t&&!e&&this.$nextTick((function(){var t=document.querySelector(".page-wrapper");t&&(t.scrollTop=Number.MAX_SAFE_INTEGER)}))}},mounted:function(){var t=this;this.internalAddress=this.address,this.internalEmails=this.formattedEmails.slice(0),this.$watch("internalEmails",(function(){t.formHelper.isDirty=!0}),{deep:!0}),this.$watch("internalAddress",(function(){t.formHelper.isDirty=!0}))}}},22012:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(71995),i=n(30160),o=n(42456),a=null;const s={name:"account-messages",components:{"link-help":i.default},mixins:[o.formHelpers],beforeRouteEnter:function(t,e,n){r.default.account.getEmailMessages().promise.then((function(t){a=t,n((function(){a=null}))}))},data:function(){return{messages:null,currentIndex:0}},methods:{changeToDefault:function(){this.messages[this.currentIndex].body!==this.messages[this.currentIndex].body_default&&(this.messages[this.currentIndex].body=this.messages[this.currentIndex].body_default,this.messages[this.currentIndex].touched=!0)},onMessageSelect:function(t){this.currentIndex=t},onSubmit:function(){var t=this;this.formHelper.isSubmitted=!1,this.formHelper.isSubmitting=!0;var e={};this.messages.forEach((function(t){t.touched&&(e[t.key]=t.body===t.body_default?"":t.body)})),r.default.account.updateEmailMessages(e).promise.then((function(){t.formHelper.isSubmitting=!1,t.formHelper.isSubmitted=!0,t.formHelper.isDirty=!1,t.messages.forEach((function(t){t.touched=!1})),t.$notify({text:t.$trans("messages.messages_saved")})}))}},created:function(){var t=this;this.$store.dispatch("core/setMetaTitle",this.$trans("titles.messages")),a&&(this.messages=a),this.$watch("messages",(function(){t.formHelper.isDirty=!0}),{deep:!0})}}},2328:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(71995),i=n(21080);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=null;const l={name:"account-preferences",components:{"preference-item":i.default},beforeRouteEnter:function(t,e,n){Promise.all([r.default.helper("preferences").promise,r.default.user.getPreferences().promise]).then((function(t){var e=o(t,2),r=e[0],i=e[1];s={fields:r,preferences:i},n((function(){s=null}))}))},data:function(){return{preferences:{},formFields:[]}},created:function(){this.$store.dispatch("core/setMetaTitle",this.$trans("titles.preferences")),s&&s.preferences&&(this.preferences=s.preferences),s&&s.fields&&(this.formFields=s.fields)}}},93300:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(71995),i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={name:"account-preferences-item",components:{SvgLoadingCircle:n(38764).default},props:{label:{type:String,required:!0},type:{type:String,required:!0},value:{type:[String,Number,Boolean],required:!0},options:{type:[Array,null],default:null}},timerId:null,data:function(){return{internalValue:!1,isSaving:!1}},methods:{onChange:function(){var t=this;clearTimeout(this.$options.timerId),this.isSaving=!0,Slickplan.helpers.requestSingle((function(){var e=r.default.user.updatePreferences(a({},t.type,t.internalValue));return e.promise.then((function(e){e&&(t.$store.commit("user/setGlobalPreferences",e),"boolean"==typeof e[t.type]&&t.internalValue!==e[t.type]&&(t.internalValue=e[t.type])),t.isSaving=i.constants.SAVING_STATUS_SUCCESS})).catch(_noop).finally((function(){t.$options.timerId=setTimeout((function(){t.isSaving=!1}),2e3)})),e}),this.type)}},mounted:function(){this.internalValue=this.value,this.$watch("internalValue",this.onChange)}}},42072:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>_});var r=n(48416),i=n(71995),o=n(67944),a=n(29036),s=n(14580),l=n(97152),c=n(85188),u=n(30160);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||b(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g=null;const _={name:"account-workflows",components:{"workflow-status-list":a.default,"page-listing":o.default,"link-help":u.default},provide:function(){return{onLoad:_noop,itemsRows:this.itemsRows,onForm:this.onStatusForm,onDelete:this.onStatusDelete,onUpdateOrder:this.onStatusUpdateOrder}},beforeRouteEnter:function(t,e,n){Promise.all([i.default.team.getUsersList().promise,i.default.account.getGlobalWorkflows().promise]).then((function(t){var e=v(t,2),r=e[0],i=e[1];g={team:r,workflow:i},n((function(){g=null}))}))},data:function(){return{sort:["name","asc"],workflowTemplates:[],statuses:[],selectedIndex:-1,changesMade:!1}},computed:m(m(m({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{isToolAvailable:function(){return this.$root.isAllowedFeature(s.constants.FEATURE_CONTENT)},items:function(){var t=this;return this.workflowTemplates.map((function(e){return m(m({},e),{},{user:t.xGetTeamMemberData(e.created_by,"name")})}))},currentWorkflow:function(){return this.selectedIndex>=0?this.workflowTemplates[this.selectedIndex]:null},buttons:function(){var t=this;return[{label:"New template",onClick:function(){t.showForm()}}]},actionBarButtons:function(){var t=this,e=[];return e.push({id:1,icon:"clone",label:"Clone",onClick:function(){return t.onClone(t.xBarSelectedIds)}}),1===this.xBarSelectedIds.length&&e.push({id:2,icon:"edit",label:"Edit",onClick:function(){return t.onEdit(t.xBarSelectedIds[0])}}),e},actionBarLinks:function(){var t=this;return[{id:3,icon:"trash",label:"Delete",onClick:function(){return t.onDelete(t.xBarSelectedIds)}}]},existingAliases:function(){var t=this.workflowTemplates.filter((function(t){return t.workflow.length})).map((function(t){return t.workflow.map((function(t){return t.alias}))})).reduce((function(t,e){return[].concat(e,t)}),[]);return f(new Set(t))}}),methods:{itemsRows:function(t){var e=this;return t.map((function(t){return{id:t.id,columns:[{label:t.name,onClick:e.onEdit},{label:t.user},{label:t.updated_at||""},{buttons:e.rowButtons}]}}))},rowButtons:function(){return this.isToolAvailable?[{id:1,icon:"clone",tooltip:"Clone",onClick:this.onClone},{id:2,icon:"edit",tooltip:"Edit",onClick:this.onEdit},{id:3,icon:"trash",tooltip:"Delete",onClick:this.onDelete}]:[]},showForm:function(t,e){var n=this;this.$modal.show(l.default,{buttonLabel:t?"Clone":"Add",inputs:[{id:"name",label:"Template name",value:e||""}],form:{action:function(e){var r=e.name,o=t?i.default.account.cloneGlobalWorkflows(t,r):i.default.account.addGlobalWorkflow(r);return o.promise.then(n.responseParse),o}}},{name:"confirm",title:t?"Clone workflow template":"Add workflow template"})},onNameEdit:function(){var t=this;this.$modal.show(l.default,{buttonLabel:"Save",inputs:[{id:"name",label:"Template name",value:this.currentWorkflow.name}],form:{action:function(e){var n=e.name;return i.default.account.updateGlobalWorkflow(t.currentWorkflow.id,{name:n})},success:this.responseParse}},{name:"confirm",title:"Edit workflow template"})},onEdit:function(t){t&&(this.selectedIndex=this.workflowTemplates.findIndex((function(e){return e.id===t})))},onClone:function(t){var e=this;this.$root.ifAllowedFeature(s.constants.FEATURE_CONTENT).then((function(){var n="";if(1===(t=[].concat(t)).length){var r=e.workflowTemplates.find((function(e){return e.id===t[0]}));n="".concat(r.name," (Clone)")}e.showForm(t,n)})).catch(_noop)},onDelete:function(t){var e=this;this.$root.ifAllowedFeature(s.constants.FEATURE_CONTENT).then((function(){t=[].concat(t);var n=Slickplan.helpers.sortString(e.workflowTemplates.filter((function(e){return t.includes(e.id)})).map((function(t){return t.name})));e.$modal.showConfirm({items:n,type:n.length>1?"templates":"template"},(function(){var n=i.default.account.deleteGlobalWorkflows(t);return n.promise.then(e.responseParse),n}))})).catch(_noop)},responseParse:function(t){t&&(this.workflowTemplates=t),this.$store.commit("actionBar/reset")},onStatusForm:function(t,e){var n=this;this.$root.ifAllowedFeature(s.constants.FEATURE_CONTENT).then((function(){t="string"==typeof t?t:null,n.$modal.show(c.default,{statusId:t,statuses:n.statuses,clone:Boolean(t&&e),onSave:function(r){var i=Slickplan.helpers.objectCloneDeep(r);if(t&&!e)i.alias=t;else do{i.alias=Slickplan.helpers.randomString(7)}while(n.existingAliases.includes(i.alias));var o=n.statuses.findIndex((function(t){return t.alias===i.alias}));o>=0?(n.statuses[o]=i,n.statuses=n.statuses.slice(0)):n.statuses.push(i),n.changesMade=!0}},{name:"workflow",title:t&&!e?"Edit status":"Add status"})})).catch(_noop)},onStatusDelete:function(t){t=Slickplan.helpers.castArray(t),this.currentWorkflow&&(this.statuses=this.statuses.filter((function(e){return!t.includes(e.alias)})),this.changesMade=!0),this.$store.commit("actionBar/reset")},onStatusUpdateOrder:function(t){var e=this;this.statuses=t.map((function(t){return e.statuses.find((function(e){return e.alias===t}))})).filter((function(t){return t})),this.changesMade=!0},onSaveWorkflow:function(){var t=this;this.changesMade&&i.default.account.updateGlobalWorkflow(this.currentWorkflow.id,{workflow:this.statuses}).promise.then((function(e){t.responseParse(e),t.selectedIndex=-1}))},onCancelEdit:function(){var t=this;this.changesMade?this.$modal.showConfirm({title:"Confirm changes",buttonLabel:"Yes, save",buttonCancel:{className:["-plain","-small"],label:"No, exit",onClick:function(){t.selectedIndex=-1}},text:"You have unsaved changes, do you want to save that workflow now?"},this.onSaveWorkflow):this.selectedIndex=-1}},watch:{currentWorkflow:function(t,e){t&&!e?(this.statuses=t.workflow.slice(0),this.changesMade=!1,document.getElementById("app-submenu").style.display="none"):!t&&e&&(this.statuses=[],document.getElementById("app-submenu").style.display=null)},selectedIndex:function(t,e){t<0&&e>=0&&this.$store.commit("actionBar/reset")}},created:function(){if(this.$store.dispatch("core/setMetaTitle",this.$trans("titles.workflows")),g){var t=g,e=t.team,n=t.workflow;e&&this.$store.dispatch("team/set",e),this.workflowTemplates=n}}}},83768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(71995),i=n(42456),o=n(63780),a=n(14580);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}var u=null,d=null;const f={name:"api-register",mixins:[i.formHelpers,o.mixinFileUploadHelpers],beforeRouteEnter:function(t,e,n){t.params&&t.params.client?r.default.api.getDetails(t.params.client).promise.then((function(t){t&&(d=t.data||t),n((function(){d=null}))})):n()},data:function(){return{mode:"register",formData:{client_id:null,client_secret:null,name:"",url:"",redirect_uri:"",logo:null}}},computed:{pageTitle:function(){return this.$trans("messages.api_".concat(this.mode,"_application"))}},methods:{loadFormData:function(t){"object"===c(t.redirect_uri)&&(t.redirect_uri=t.redirect_uri.join("\n")),this.formData=t},onSubmit:function(){var t=this;this.formSubmit({action:function(){return t.formData.client_secret?r.default.api.update(t.formData.client_secret,t.formData):r.default.api.register(t.formData)},success:function(e){e&&(t.loadFormData(e),e.client_secret&&t.$router.push("/api/register/".concat(e.client_secret)).catch(_noop)),t.mode="about"}})},onEdit:function(){u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.formData),this.mode="update"},onCancelEdit:function(){Object.assign(this.formData,u),this.mode="about"},onDeleteApp:function(){var t=this;this.$modal.showConfirm({items:["".concat(this.formData.name," app")]},(function(){var e=r.default.api.delete(t.formData);return e.promise.then((function(e){e&&e.client_id&&(t.formData={client_id:null,client_secret:null,name:"",url:"",redirect_uri:"",logo:null},t.mode="register",t.$router.push("/api/register").catch(_noop),t.$notify({text:t.$trans("messages.api_application_deleted")}))})),e}))}},watch:{mode:function(){this.$store.dispatch("core/setMetaTitle","API: ".concat(this.pageTitle))}},created:function(){var t=this;this.$store.dispatch("core/setMetaTitle",this.pageTitle),this.uploadFileInit({url:"guest/api",extensions:a.imageFormats,onSuccess:function(e,n){null!=n&&n.path&&(t.formData.logo=n.path)}}),d&&(this.loadFormData(d),this.mode="about")}}},93552:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={name:"account-closed",debounceTimer:null,sheet:null,dialogHeight:0,components:{"header-branding":n(72601).default},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xWindowSizeHeight:function(t){return t.core.windowSize.height}})),methods:{updateIframeSize:function(){if(this.$options.sheet){var t=this.xWindowSizeHeight-128-40-this.$options.dialogHeight;this.$options.sheet.innerText="#login-dialog .smcx-embed, #login-dialog .smcx-embed.smcx-hide-branding>.smcx-iframe-container { max-width: 100% !important; height: ".concat(t,"px !important; }")}}},watch:{xWindowSizeHeight:function(){clearTimeout(this.$options.debounceTimer),this.$options.debounceTimer=setTimeout(this.updateIframeSize,125)}},mounted:function(){var t=document.getElementById("survey"),e=document.createElement("script");e.type="text/javascript",e.async=!0,e.id="smcx-sdk",e.src="https://widget.surveymonkey.com/collect/website/js/dhulbiQQtduCPPdoDHxFGMmLG88x6rSiTW5E3tEl8cwkzp5Pbcm6rU38rZK3MwaB.js",t.appendChild(e),this.$options.sheet=document.createElement("style"),t.appendChild(this.$options.sheet),this.$options.dialogHeight=document.getElementById("login-dialog").offsetHeight,this.$nextTick(this.updateIframeSize)}}},35720:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>_});var r=n(48416),i=n(71995),o=n(72601),a=n(13828),s=n(42456),l=n(84480),c=n(63780),u=n(14580),d=n(38180);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=null;const _={name:"login",components:{FieldTurnstile:d.default,"header-branding":o.default,"field-colorpicker":a.default},mixins:[s.formHelpers,l.imageManipulation,c.mixinFileUploadHelpers],data:function(){return{formData:{username:"",email:"",password:"",subdomain:"",remember:!0,first_name:"",last_name:"",token:null,newsletter:!0,site_color:Slickplan.constants.DEFAULT_SITE_COLOR,company_name:"",company_logo:null,dark_font:!1,turnstile_token:null,totp_token:"",utms:""},resourceTemplate:null,resourceTemplateData:null,accounts:[],formType:"",formTypePrev:[],hasSso:!1,transitionHeight:0,subdomainEntered:!1,subdomainFieldVisible:!1,hasSignupStep2:!1,dialogClassNames:""}},computed:b(b({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),{},{canSubmitRegister:function(){var t=this;return!this.formHelper.isSubmitting&&["first_name","last_name","email","password","company_name","subdomain"].every((function(e){return t.formData[e]}))},ssoAccountsMaxHeight:function(){return this.xWindowSize.height-128-40-130},ssoAccountsStyles:function(){return{maxHeight:"".concat(this.ssoAccountsMaxHeight,"px")}},currentAccount:function(){if("register"===this.formType||"configure"===this.formType)return{branding:!0,company_logo_type:"image",company_logo:this.formData.company_logo,site_color:this.formData.site_color,dark_font:this.formData.dark_font};var t=Slickplan.helpers.hasSubdomain();if(t&&this.accounts.length){var e=this.accounts.find((function(e){return e.subdomain===t}));if(e)return e}return{}},isDefaultBranding:function(){return this.formData.site_color===Slickplan.constants.DEFAULT_SITE_COLOR&&!this.formData.dark_font},siteColor:{get:function(){return this.formData.site_color},set:function(t){t="#".concat(t.replace(/[^a-f0-9]+/gi,"")),Slickplan.helpers.isHex(t)&&(this.formData.site_color=t.toLowerCase())}},cssBrandingStyle:function(){return{background:this.formData.site_color,color:this.formData.dark_font?"#222":"#fff"}}}),methods:{onAccountClick:function(t,e){if(t.target.closest(".remove"))return this.onAccountRemove(e);if(e.subdomain){var n={username:e.email};this.resourceTemplate&&(n.template=this.resourceTemplate),Slickplan.helpers.navigateTo("".concat(e.url,"login?").concat(new URLSearchParams(n).toString()),!0)}else this.formData.username=e.email,this.switchToLogin()},transitionBeforeEnter:function(){Slickplan.helpers.setSlideTransitionHeight(this.transitionHeight),this.dialogClassNames="-".concat(this.formType)},transitionAfterEnter:function(){this.focusField()},focusField:function(){var t=this,e=!1;["username","password","email"].forEach((function(n){if(!e&&t.$refs[n]&&t.$refs[n].$el){var r=t.$refs[n].$el.querySelector("input");r&&""===r.value&&(r.focus(),e=!0)}}))},onSubmit:function(t){var e=this;this.formHelper.isSubmitting=t,this.formValidate(t).then((function(n){var r;n?("password"===t?(r=i.default.auth.passwordSend(e.formData.email)).promise.then((function(){e.onCancelPasswordReset(),e.formData.username=e.formData.email,e.$notify({text:e.$trans("messages.password_reset_sent")})})):"reset"===t?(r=i.default.auth.passwordReset(e.formData.token,e.formData.password)).promise.then((function(t){e.onCancelPasswordReset(),t&&t.email&&(e.formData.email=t.email,e.formData.username=t.email),e.$notify({text:e.$trans("messages.password_changed_sign_in")})})):"register"===t||"configure"===t?"configure"!==t&&e.hasSignupStep2?(r=i.default.auth.register(e.formData,{},!0)).promise.then((function(){e.switchToRegister("configure")})):r=i.default.auth.register(e.formData,{template:e.resourceTemplate}):r=i.default.auth.login(e.formData.username,e.formData.password,e.formData.remember,e.formData.totp_token,{template:e.resourceTemplate}),r.promise.catch((function(n){n&&n.errors&&(n.errors.totp_token&&!0===n.errors.totp_token[0]?e.switchToLogin("totp"):(n.errors.token&&!n.errors.password&&(n.errors.password=n.errors.token),e.formSetErrors(n.errors,t),n.errors.turnstile_token&&e.$notify({type:"error",text:n.errors.turnstile_token[0]})))})).finally((function(){e.formHelper.isSubmitting=!1}))):e.formHelper.isSubmitting=!1}))},onCancelPasswordReset:function(){this.formData.password="",this.formData.token=null,this.switchToLogin()},onAccountRemove:function(t){var e=this;this.$modal.showConfirm({title:"Confirm",buttonLabel:"Remove",text:"Are you sure you want to remove this account from this list?"},(function(){var n=i.default.auth.removeSsoAccount(t.id);return n.promise.then((function(t){e.onLoad(t,!0)})).catch(_noop),n}))},onLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.accounts=Slickplan.helpers.castArray(null==t?void 0:t.accounts,[]),this.hasSso=!!t&&!t.is_single,e||"register"!==this.$route.name){if(!e&&this.$route.params.token)this.formData.token=this.$route.params.token,this.switchToLogin("reset");else if(this.hasSso&&this.accounts.length)this.switchToLogin("sso");else if(this.switchToLogin(),this.accounts.length){var n=p(this.accounts,1)[0];this.$store.commit("core/setPlanLimits",{limits:{branding:Boolean(n.branding)}}),this.$store.commit("user/set",n)}}else this.switchToRegister()},switchToLogin:function(t){this.switchToRoute("login","string"==typeof t?t:void 0)},switchToRegister:function(t){Slickplan.helpers.hasSubdomain()?Slickplan.helpers.navigateTo("/register",!1):this.switchToRoute("register","string"==typeof t?t:void 0)},switchToRoute:function(t,e){this.formType=e||("register"===t?t:"single"),this.formData.totp_token="",this.$router.push("/".concat(t)).catch(_noop)},openTerms:function(){Slickplan.helpers.navigateTo("/terms-conditions",!1,!0)},onCompanyNameChange:function(t){this.subdomainEntered||("function"==typeof t.normalize&&(t=t.normalize("NFD").replace(/[^\w]/g,"")),(t=t.toLowerCase().replace(/[^a-z0-9]/g,""))&&(this.formData.subdomain=t))},onSubdomainChange:function(t){this.subdomainEntered=!Slickplan.helpers.isBlank(t)},brandingReset:function(){this.formData.site_color=Slickplan.constants.DEFAULT_SITE_COLOR,this.formData.dark_font=!1},logoRemove:function(){this.formData.company_logo=null},goBack:function(){var t=this,e=this.formTypePrev.pop();"register"===e||"configure"===e?this.switchToRegister(e,e):this.switchToLogin(e,e),this.$nextTick((function(){return t.formTypePrev.pop()}))}},watch:{formType:function(t,e){if(t!==e){e&&this.formTypePrev.push(e),"register"===t&&"configure"!==e&&(this.formData.password="");this.$store.dispatch("core/setMetaTitle",{register:"Register",sso:"Login",password:"Forgot Password",forgot:"Forgot Password",configure:"Register"}[t]||"Login");this.transitionHeight="sso"===t?Math.min(94*this.accounts.length+135-16,this.ssoAccountsMaxHeight):{register:530,password:301,forgot:300,configure:490}[t]||415}},"formData.subdomain":function(t){t&&!this.subdomainFieldVisible&&(this.subdomainFieldVisible=!0)}},created:function(){var t=this;this.hasSignupStep2=!!Slickplan.constants.SIGNUP_STEP2;try{var e=new URL(document.location).searchParams,n={utm_source:null,utm_medium:null,utm_campaign:null};if(!Object.keys(n).some((function(t){return!e.get(t)}))){var r,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.entries());try{for(i.s();!(r=i.n()).done;){var o=p(r.value,2),a=o[0],s=o[1];a.startsWith("utm_")&&(n[a]=s)}}catch(t){i.e(t)}finally{i.f()}window.localStorage.setItem("SlickplanUtmsTimestamp",Math.floor(Date.now()/1e3)),window.localStorage.setItem("SlickplanUtms",JSON.stringify(n))}var l=window.localStorage.getItem("SlickplanUtmsTimestamp");if(l&&l+5184e3>Math.floor(Date.now()/1e3)){var c=window.localStorage.getItem("SlickplanUtms");c&&(this.formData.utms=c)}}catch(t){}if(this.$route.query.username&&(this.formData.username=this.$route.query.username),this.$route.query.email&&(this.formData.email=this.$route.query.email),this.$route.query.template&&/^(sitemap|diagram|content)-[a-z0-9]{7,16}$/.test(this.$route.query.template)){this.resourceTemplate=this.$route.query.template;var d=this.$route.query,f=d.template_title,h=d.template_image;f&&h&&(this.resourceTemplateData={title:f,image:h&&h.indexOf("//")<0&&h.indexOf("..")<0?"https://cdn-do.slickplan.com/cdn/wp-uploads/".concat(h):null})}this.onLoad(g),this.uploadFileInit({url:"guest/register",extensions:u.imageFormats,onSuccess:function(e,n){null!=n&&n.path&&(t.formData.company_logo=n.path)}})},mounted:function(){this.focusField()},beforeRouteEnter:function(t,e,n){null===g?i.default.auth.getAccountsList().promise.then((function(t){g=t,n((function(){g=!1}))})):n()}}},40016:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"login-branding",props:{account:null},computed:{hasBranding:function(){return this.account&&this.account.branding}}}},24240:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(71995),o=n(86180),a=n(68540),s=n(54048),l=n(92704);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"content-activity-log",components:{"component-loading":o.default,"log-item":s.default,pagination:a.default},mixins:[l.mixinContentGlobalComputed],data:function(){return{logs:[],currentPage:1,itemsPerPage:20}},computed:d(d({},(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{paginatedLog:function(){var t=(this.currentPage-1)*this.itemsPerPage;return this.logs.slice(t,t+this.itemsPerPage)}}),methods:{onPaginationChange:function(t){t&&this.currentPage!==t&&(this.currentPage=t,this.$el.closest(".ps-container").scrollTop=0)}},created:function(){var t=this;this.$store.dispatch("core/setLoading",!0),document.body.style.pointerEvents="none",Slickplan.helpers.requestSingle((function(){var e=i.default.sitemap.getContentLog();return e.promise.then((function(e){t.logs=e})).finally((function(){t.$store.dispatch("core/setLoading",!1),document.body.style.pointerEvents=""})),e}),this.$options.name)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},84048:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>w});var r=n(59040),i=n(34424),o=(n(17720),n(48416)),a=n(6856),s=n(27672),l=n(10916),c=n(11720),u=n(42930),d=n(97152),f=n(73272),p=n(47324),m=n(95960),h=n(93736),v=n(78612),b=n(14580),y=n(75464),g=n.n(y),_=n(42456);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){var r;return r=function(t,e){if("object"!=S(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==S(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const w={name:"content-builder-block-item",components:{"block-table":m.default,"block-file":f.default,"block-form":p.default,"field-textarea":l.default,"field-wysiwyg":c.default,"buttons-list":s.default,"prism-editor":r.PrismEditor,"blocked-by":h.default},mixins:[_.mixinReorderHelpers],provide:function(){return{blockContentUpdate:this.blockContentUpdate}},inject:["saveOnBlocksReorder","saveOnBlocksAdd","saveOnBlocksDelete","onFocusChanged"],tempElement:null,props:{id:{type:String,required:!0},index:{type:Number,required:!0},editable:{type:Boolean,default:!0},deletable:{type:Boolean,default:!0},movable:{type:Boolean,default:!0},isTemplate:{type:Boolean,default:!1}},data:function(){return{blockNoteHeight:49,isCommentClicked:!1}},computed:k(k(k({},(0,o.mapState)({xAccountData:function(t){return t.user.user},xContentBlocks:function(t){return t.content.builderBlocks},xContentBlocksRevision:function(t){return t.content.builderBlocksRevision},xContentBlocksLock:function(t){return t.content.builderBlocksLocks[this.id]},xContentPageId:function(t){return t.content.builderPageId},xContentPageData:function(t){return t.content.builderPageData},xContentPageCommentsCount:function(t){var e="".concat(t.content.builderPageId,"-").concat(this.id,"-").concat(t.content.currentLanguage);return t.comments.counter[b.constants.COMMENTS_TYPE_CONTENT_BLOCK][e]||{total:0,unread:0}},xContentTemplate:function(t){var e=this;return this.$route.params.template?t.content.templates.find((function(t){return t.alias===e.$route.params.template})):null},xPanelVisible:function(t){return t.panel.visible},xCommentsModuleId:function(t){return t.comments.currentModuleId},xContentLanguage:function(t){return t.content.currentLanguage},xCommentsFromGlobals:function(t){return t.comments.fromGlobalComments}})),(0,o.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{isFirst:function(){return this.index<=0},isLast:function(){return this.index>=this.xContentBlocks.length-1},isRevisionView:function(){return!this.editable&&"revision"===this.xContentPageData.editBlocked},isBlockContentHtml:function(){return"wysiwyg"===this.blockData.type},hasTemplateAssigned:function(){return this.xContentPageId&&this.xContentPageData.template},canManageBlocks:function(){return this.$root.userCan(b.permissionsProject.MANAGE_CONTENT)},blockData:function(){var t=this;return this.xContentBlocks.find((function(e){return e.id===t.id}))},blockRevisionData:function(){var t=this;return this.xContentBlocksRevision.find((function(e){return e.id===t.id}))},blockLabelDiff:function(){return g()(this.blockRevisionData?Slickplan.helpers.escapeHtml(this.blockRevisionData.options.label||""):"",Slickplan.helpers.escapeHtml(this.blockData.options.label||""))||"&nbsp;"},blockContent:{get:function(){return this.blockData.content||""},set:function(t){this.blockContentUpdate(t)}},blockContentHtml:function(){return this.isBlockContentHtml?(0,a.autop)(this.blockContent):Slickplan.helpers.escapeHtml(this.blockContent)},blockContentDiff:function(){return g()(this.blockRevisionData?this.isBlockContentHtml?(0,a.autop)(this.blockRevisionData.content):Slickplan.helpers.escapeHtml(this.blockRevisionData.content||""):"",this.blockContentHtml)},blockNote:{get:function(){return this.blockData.note||""},set:function(t){this.blockUpdate({note:t})}},blockNoteDiff:function(){return g()(this.blockRevisionData?Slickplan.helpers.escapeHtml(this.blockRevisionData.note||""):"",Slickplan.helpers.escapeHtml(this.blockNote||""))},isUploadBlock:function(){return["file","image","video"].indexOf(this.blockData.type)>=0},blockOptions:function(){var t=this.isUploadBlock?"file":"text"===this.blockData.type?"wysiwyg":this.blockData.type;return b.contentPlannerBlocks.find((function(e){return e.id===t}))},headerText:function(){return Slickplan.helpers.ucFirst(this.blockData.type)},hasLimits:function(){var t=this.blockData.options;if(this.isUploadBlock&&(!t.multiple||"fixed"===t.multiple_type&&t.multiple_value)){var e=t.multiple?t.multiple_value:1;return{count:this.blockContent.length,of:e,label:this.$plural(Slickplan.helpers.ucFirst(this.blockData.type),e)}}if(["text","wysiwyg"].indexOf(this.blockData.type)>=0&&t.limit&&t.limit_value>0){var n=String("wysiwyg"===this.blockData.type?Slickplan.helpers.stripHtml(this.blockContent).trim():this.blockContent);return"words"===t.limit_type&&(n=n.split(/\s+/).filter((function(t){return""!==t}))),{count:n.length,of:t.limit_value,label:this.$plural("chars"===t.limit_type?"Character":"Word",t.limit_value)}}return!1},buttons:function(){var t=this,e=[];if(!this.isTemplate){var n=this.xContentPageCommentsCount,r=n.total,i=n.unread;e.push({id:4,icon:"comments",iconBadge:r,tooltip:"Comments".concat(r?" (".concat(r,")"):""),className:"icon-comment".concat(r>9?" -v2":r>0?" -v1":"").concat(i>0?" -new":""),onClick:function(){t.isCommentClicked=!0,t.openComments()}})}return!this.editable||this.hasTemplateAssigned||this.xContentBlocksLock||(e.push({id:1,icon:"clone",tooltip:"Clone",onClick:function(){var e=Slickplan.helpers.objectCloneDeep(t.blockData);e.id=Slickplan.helpers.randomString(9),e.options.label&&(e.options.label+=" (Clone)"),e.content&&Array.isArray(e.content)&&(e.content=e.content.map((function(t){return"object"===S(t)&&!Array.isArray(t)&&t.id&&(t.id=Slickplan.helpers.randomString(t.id.length)),t}))),t.$store.commit("content/addBuilderBlockAndBroadcast",{index:t.index+1,data:e}),t.saveOnBlocksAdd(e.id)}}),["table","file","image","video","text","wysiwyg","form"].indexOf(this.blockData.type)>=0&&e.push({id:2,icon:"gear",tooltip:"Settings",onClick:function(){t.onFocusChanged(!0,t.id),t.$modal.show(u.default,{blockId:t.id},{title:"Block settings"},{update:function(){t.triggerChange()},closed:function(){t.onFocusChanged(!1,t.id)}})}}),this.editable&&this.deletable&&e.push({id:3,icon:"trash",tooltip:"Delete",onClick:function(){t.onFocusChanged(!0,t.id);var e="Are you sure you want to delete this block?";t.xContentTemplate&&t.xContentTemplate.pages_count&&(e+=" It’s being used on ".concat(t.$plural("page",t.xContentTemplate.pages_count,!0),". Content served on these pages will be deleted. The action cannot be undone.")),t.$modal.showConfirm({title:"Delete Block",text:e},(function(){t.$store.commit("content/deleteBuilderBlockAndBroadcast",t.id),t.saveOnBlocksDelete(t.id)}),{closed:function(){t.onFocusChanged(!1,t.id)}})}})),e},canReorder:function(){return this.editable&&this.movable&&!this.hasTemplateAssigned&&!this.xContentBlocksLock&&this.xContentBlocks.length>1},itemClasses:function(){var t=["-".concat(this.blockData.type)];return this.isRevisionView&&(this.blockRevisionData?this.blockData.revisionDeleted&&t.push("-revision-deleted"):t.push("-revision-new")),this.xPanelVisible&&this.xCommentsModuleId===this.commentModuleId&&t.push("-active"),t},blockClasses:function(){return this.xContentBlocksLock?"-locked":null},commentModuleId:function(){return"content-".concat(this.xContentPageId,"-").concat(this.id,"-").concat(this.xContentLanguage)}}),methods:{highlighter:function(t){return(0,i.highlight)(t,i.languages.html,"html")},triggerBlur:function(t){this.editable&&t.target.blur()},triggerChange:function(){this.editable&&this.$emit("change")},onWysiwygFocus:function(){this.onFocusChanged(!0,this.id)},onWysiwygBlur:function(){this.triggerChange(),this.onFocusChanged(!1,this.id)},onLabelEdit:function(){var t=this;this.onFocusChanged(!0,this.id),this.$modal.show(d.default,{inputs:[{id:"label",label:"Label name",value:this.blockData.options.label||"",validate:"min:1"}],form:{action:function(e){var n=e.label;"string"!=typeof n&&null!==n||(t.$store.commit("content/updateBuilderBlockAndBroadcast",{id:t.id,data:{options:{label:n}}}),t.triggerChange())}}},{name:"confirm",title:"Label name"},{closed:function(){return t.onFocusChanged(!1,t.id)}})},blockUpdate:function(t){this.editable&&this.$store.commit("content/updateBuilderBlockAndBroadcast",{id:this.id,data:t})},blockContentUpdate:function(t){this.blockUpdate({content:t})},onReorder:function(t,e,n){var r=t.target.closest("li.ui-content");if(r&&this.xContentBlocks.length){var i=this.xContentBlocks.findIndex((function(t){return t.id===e}));i>=0&&(n>0&&i+1<this.xContentBlocks.length?(r.parentNode.insertBefore(r.nextSibling,r),this.onChangedOrder(e)):n<0&&i>0&&(r.parentNode.insertBefore(r,r.previousSibling),this.onChangedOrder(e)))}},onChangedOrder:function(t){var e=[];this.$el.closest("ul").childNodes.forEach((function(t){"li"===t.tagName.toLowerCase()&&t.dataset.id&&e.push(t.dataset.id)})),this.$store.commit("content/reorderBuilderBlocksAndBroadcast",{id:t,ids:e}),this.saveOnBlocksReorder(e)},openComments:function(){this.$store.dispatch("panel/set",{id:"content-comment",visibility:!0,title:this.blockData.options&&this.blockData.options.label?this.blockData.options.label:"Comments",tabs:[{id:"comments",component:v.default,props:{type:b.constants.COMMENTS_TYPE_CONTENT_BLOCK,id:this.id}}]})},scrollToView:function(){this.$el&&this.$el.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},watch:{xCommentsModuleId:function(t,e){t!==this.commentModuleId||t===e||this.isCommentClicked||this.$nextTick(this.scrollToView),this.isCommentClicked=!1},xCommentsFromGlobals:{handler:function(t,e){var n=this;t===this.id&&t!==e&&(this.$store.commit("comments/fromGlobalComments",!0),this.$nextTick((function(){n.openComments(),n.scrollToView()})))},immediate:!0}}}},40680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(90572),o=n(93736),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"content-builder-block-metadata",components:{"field-variables":i.default,"blocked-by":o.default},tags:{title:{"%page_name%":"Page name","%separator%":"Separator","%project_name%":"Project name"},slug:{"%page_name%":"Page name","%separator%":"Separator"}},defaultSeo:{meta_title:"%page_name% %separator% %project_name%",url_slug:"%page_name%",meta_description:"",meta_focus_keyword:""},props:{cellId:{type:String,default:null},editable:{type:Boolean,default:!0}},data:function(){return{originalValue:null,isHidden:!0,seo:{meta_title:"",url_slug:"",meta_description:"",meta_focus_keyword:""},limits:{title:0,description:0}}},computed:c(c(c({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details},xSitemapSiteSettings:function(t){return t.sitemap.siteSettings},xContentPageData:function(t){return t.content.builderPageData},xCell:function(t){return this.cellId&&t.sitemapCell[this.cellId]||{}},xContentBlocksLock:function(t){return t.content.builderBlocksLocks.meta}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{pageName:function(){return this.xCell[a.constants.CELL_DATA_KEY_LABEL]||"Page name"},websiteUrl:function(){var t="".concat(this.xSitemapSiteSettings.url?this.xSitemapSiteSettings.url.replace(/[\/]+$/,""):"","/");return this.xSitemapSiteSettings.include_parent_slug&&this.xContentPageData.url_slug_full&&this.xContentPageData.url_slug_full.length&&(t+="".concat(this.xContentPageData.url_slug_full.join("/"),"/")),t},seoTitle:function(){var t;return"".concat(null!==(t=this.seo.meta_title)&&void 0!==t?t:"").replace(/%page_name%/g,this.pageName).replace(/%separator%/g,"|").replace(/%project_name%/g,this.xSitemapData.title)},seoDescription:function(){return this.seo.meta_description.length>160?"".concat(this.seo.meta_description.substring(0,157),"..."):this.seo.meta_description},seoSlug:function(){var t,e="-",n="".concat(null!==(t=this.seo.url_slug)&&void 0!==t?t:"").replace(/([\s]+%|%[\s]+)/g,"%").replace(/%separator%/g,e).replace(/%page_name%/g,Slickplan.helpers.normalizeKeywords(this.pageName,0).join(e)).replace(new RegExp("_","g"),e).toLowerCase().replace(new RegExp("[^a-z0-9".concat(e,"\\s]"),"g"),"").replace(new RegExp("[".concat(e,"\\s]+"),"g"),e).replace(new RegExp("^[".concat(e,"\\s]+|[").concat(e,"\\s]+$"),"g"),"");return encodeURIComponent(n)}}),methods:{calcTitleWidth:function(){var t=this.$el.querySelector("._title > span").getBoundingClientRect();this.limits.title=Math.ceil(t.width)},calcDescriptionSize:function(){this.limits.description=this.seo.meta_description.length},onFocus:function(t,e){this.originalValue=e},onBlur:function(t,e){var n="".concat(e).trim();if(n!==this.originalValue){this.$options.defaultSeo[t]===n&&(n=null),this.$emit("change",{key:t,value:n,field:u({},{meta_title:"title",url_slug:"slug",meta_description:"description",meta_focus_keyword:"keywords"}[t],n)})}},doBlur:function(t){t.target.blur()},updateFromWebsocket:function(t,e){var n=this;if(void 0!==this.seo[t]){var r=this.originalValue;this.originalValue=e,this.seo[t]=e,setTimeout((function(){n.originalValue=r}),1)}}},watch:{isHidden:function(t){var e=this;t||this.$nextTick((function(){e.calcTitleWidth(),e.calcDescriptionSize()}))},seoTitle:function(){setTimeout(this.calcTitleWidth,1)},"seo.meta_description":function(){setTimeout(this.calcDescriptionSize,1)}},mounted:function(){var t=this;Object.keys(this.$options.defaultSeo).forEach((function(e){t.seo[e]=["string","number"].indexOf(s(t.xContentPageData[e]))>=0?t.xContentPageData[e]:t.$options.defaultSeo[e]})),this.isHidden||this.$nextTick((function(){t.calcTitleWidth(),t.calcDescriptionSize()})),this.$watch("seo.meta_title",(function(e){return t.onBlur("meta_title",e)})),this.$watch("seo.url_slug",(function(e){return t.onBlur("url_slug",e)}))}}},86296:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"content-builder-blocks-menu",inject:["saveOnBlocksAdd"],mouseEventData:{},activeBefore:"-active-before",activeAfter:"-active-after",data:function(){return{isDragging:!1,currentBlock:null,dropIndex:-1}},computed:s(s({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),{},{availableContentBlocks:function(){return i.contentPlannerBlocks}}),methods:{onMouseDown:function(t,e){var n=t.target,r=n.closest(".ps-container"),i=r.getBoundingClientRect();this.currentBlock=e,this.dropIndex=-1,this.$options.mouseEventData={target:t.target,x:t.clientX,y:t.clientY,el:n,elBBox:n.getBoundingClientRect(),scrollable:r,scrollableBBox:i,maxScroll:r.scrollHeight-i.height},document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseMove:function(t){var e=this.$options.mouseEventData;if(this.isDragging){var n=document.elementFromPoint(this.xWindowSize.width/2,t.clientY);if(n){var r=n.closest(".ui-content");if(r){var i=r.getBoundingClientRect(),o=t.clientY-i.top>i.height/2,a=o?this.$options.activeAfter:this.$options.activeBefore;r.classList.contains(a)||(this.clearActiveClasses(),r.classList.add(a),this.dropIndex=r.classList.contains("-empty")?0:parseInt(r.dataset.index,10)+(o?1:0))}}var s=Math.max(t.clientX-e.x,0);e.el.style.transform="translate(".concat(s,"px, ").concat(t.clientY-e.y,"px) rotate(3deg)"),this.updateScrolling(t)}else{if(Math.max(Math.abs(e.x-t.clientX),Math.abs(e.y-t.clientY))<=3)return;t.preventDefault(),t.stopPropagation(),document.body.style.cursor="move",this.isDragging=this.currentBlock,e.y=t.clientY,e.el.style.pointerEvents="none",this.$el.parentNode.querySelector(".content-editor").classList.add("is-dragging")}},onMouseUp:function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp);var t=this.$options.mouseEventData,e={type:this.currentBlock,id:Slickplan.helpers.randomString(9)};this.isDragging?(document.body.style.cursor="",this.$el.parentNode.querySelector(".content-editor").classList.remove("is-dragging"),this.clearActiveClasses(),this.isDragging=!1,this.dropIndex>=0&&(this.$store.commit("content/addBuilderBlockAndBroadcast",{index:this.dropIndex,data:e}),this.saveOnBlocksAdd(e.id))):t.target&&(this.$store.commit("content/addBuilderBlockAndBroadcast",{data:e}),this.saveOnBlocksAdd(e.id)),t.el.removeAttribute("style"),this.$options.mouseEventData=null},updateScrolling:function(t){var e=this.$options.mouseEventData;t.clientY-e.scrollableBBox.top<=100?e.scrollable.scrollTop=Math.max(0,e.scrollable.scrollTop-8):e.scrollableBBox.bottom-t.clientY<=100&&(e.scrollable.scrollTop=Math.min(e.maxScroll,e.scrollable.scrollTop+8))},clearActiveClasses:function(){var t=this,e=this.$options.mouseEventData;e&&e.scrollable&&e.scrollable.querySelectorAll(".ui-content").forEach((function(e){e.classList.remove(t.$options.activeAfter),e.classList.remove(t.$options.activeBefore)}))}}}},21452:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"content-builder-block-file-item",emitTimer:null,props:{blockData:{type:Object,required:!0},content:{type:Object,required:!0},editable:{type:Boolean,default:!0}},data:function(){return{row:{type:null,url:"",alt:"",title:"",description:"",file_id:null},fileData:{filename:null,url_thumb:null,url_download:null},imageUrl:null}},computed:{previewBlockStyle:function(){if(this.imageUrl)return{backgroundImage:"url(".concat(this.imageUrl,")")};if(this.content.progress){var t=this.content.progress.progress;return{background:"linear-gradient(to right, rgba(52, 119, 249, 0.12) ".concat(t,"%, rgba(52, 119, 249, 0.06) ").concat(Math.min(100,t+1),"%)")}}return null},shouldHaveImageUrl:function(){return this.fileData.url_thumb||"url"===this.row.type&&("image"===this.blockData.type||/\.jpe?g|gif|png$/i.test(this.row.url))},isUploading:function(){return!this.imageUrl&&this.content.progress},originalImageUrl:function(){return"url"===this.row.type?this.row.url:this.fileData.url_thumb},originalFileName:function(){if(this.isValidUrl){var t=document.createElement("a");t.href=this.row.url.split("#")[0];var e=t.pathname.replace(/^\/|\/$/g,"").split("/").pop();if(/\.[a-z0-9]{1,5}$/i.test(e))return decodeURIComponent(e)}return this.fileData.filename||""},filenameIcon:function(){return this.originalFileName?Slickplan.helpers.getIconByFile(this.originalFileName):("".concat(this.row.url).match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))/),RegExp.$3.indexOf("youtu")>-1?"fa-youtube":RegExp.$3.indexOf("vimeo")>-1?"fa-vimeo":["video","image"].includes(this.blockData.type)?"file-".concat(this.blockData.type,"-o"):"file-o")},isValidUrl:function(){return"url"===this.row.type&&/^https?:\/\//i.test(this.row.url)}},methods:{onInputBlur:function(){this.$emit("blur",this.row)},reloadContent:function(t){var e=this;t||(t=this.content),Object.keys(this.row).forEach((function(n){void 0!==t[n]&&e.row[n]!==t[n]&&(e.row[n]=t[n])})),t.file_data&&Object.keys(this.fileData).forEach((function(n){void 0!==t.file_data[n]&&e.fileData[n]!==t.file_data[n]&&(e.fileData[n]=t.file_data[n])}))},reloadImageUrl:function(){var t=this;this.imageUrl=null,this.shouldHaveImageUrl&&this.originalImageUrl&&/^(http|\/)/.test(this.originalImageUrl)&&Slickplan.helpers.checkImageUrl(this.originalImageUrl).then((function(e){t.imageUrl=e.src})).catch((function(){t.imageUrl=!1}))},openInNewWindow:function(){this.isValidUrl&&window.open(this.row.url)},onDownload:function(){Slickplan.helpers.downloadLinkTrigger(this.fileData.url_download)}},watch:{content:{handler:function(t){this.reloadContent(t)},deep:!0},shouldHaveImageUrl:function(){this.reloadImageUrl()},originalImageUrl:function(){this.reloadImageUrl()}},mounted:function(){var t=this;this.reloadContent(),this.reloadImageUrl(),this.$watch("row",(function(e){clearTimeout(t.$options.emitTimer),t.$options.emitTimer=setTimeout((function(){t.$emit("input",e)}),500)}),{deep:!0})}}},70784:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(89908),o=n(24832),a=n(15052),s=n(22164),l=["alias"];function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"content-builder-block-file",components:{"block-file-item":i.default},mixins:[a.mixinDropzone],inject:["onFocusChanged"],props:{id:{type:String,required:!0},editable:{type:Boolean,default:!0}},data:function(){return{isChoosing:!1,showUpload:!1}},computed:f(f({},(0,r.mapState)({xPanelVisible:function(t){return t.panel.visible}})),{},{blockData:function(){return this.$parent.blockData},blockContent:function(){var t;return Slickplan.helpers.castArray(null===(t=this.$parent)||void 0===t?void 0:t.blockContent,[]).map((function(t){return t.id||(t.id=Slickplan.helpers.randomString()),t}))},totalFilesCount:function(){return this.blockContent.length},imageIcon:function(){return"file"===this.blockData.type?"img-upload":"img-".concat(this.blockData.type)},howManyMoreCanUpload:function(){var t=this.blockData.options;return t&&t.multiple?"unlimited"===t.multiple_type?999:Math.max(0,t.multiple_value-this.totalFilesCount):0},canAddMoreRows:function(){return this.editable&&this.totalFilesCount&&this.howManyMoreCanUpload>0&&!this.showUpload},allowedMime:function(){return["image","video"].indexOf(this.blockData.type)>=0?"".concat(this.blockData.type,"/*"):null}}),methods:{onAddRowUrl:function(){this.blockContentUpdate(this.blockContent.concat({type:"url"}),!0),this.showUpload=!1},onAddFromDisk:function(){this.isChoosing=!0,this.onFocusChanged(!0,this.id),this.dropzoneTriggerUpload()},dropzoneTriggerUploadClosed:function(){this.isChoosing=!1,this.onFocusChanged(!1,this.id)},onAddFromLibrary:function(){var t=this;this.isChoosing=!0,this.onFocusChanged(!0,this.id),this.$store.dispatch("panel/set",{id:"library",visibility:!0,title:"File library",standalone:!0,tabs:[{id:"library",component:o.default,props:{selectable:["image","video"].indexOf(this.blockData.type)>=0?this.blockData.type:"all",cancelButton:!0,onSubmit:function(e,n){!t.blockData.options.multiple&&(e.length>1||e.length&&t.blockContent.length)&&t.$store.commit("content/updateBuilderBlockAndBroadcast",{id:t.$parent.id,data:{options:{multiple:!0,multiple_type:"unlimited"}}}),t.blockContentUpdate(t.blockContent.concat(n.map((function(t){var e=t.filename,n=t.url_thumb,r=t.url_download;return{type:"library",file_id:t.alias,file_data:{filename:e,url_thumb:n,url_download:r}}}))),!0),s.EventBus.$emit("panel-close")}}}]}),this.showUpload=!1},onDeleteRow:function(t){t.progress&&this.dropzoneRemoveFile({uploadId:t.id},!0),this.blockContentUpdate(this.blockContent.filter((function(e){return e.id!==t.id})),!0),this.showUpload=!1},onUploadSuccess:function(t,e){var n=this.blockContent.slice(0),r=n.findIndex((function(t){return t.id===e.uploadId}));if(r>=0){var i=t.alias,o=u(t,l);n[r].progress=null,n[r].file_id=i,n[r].file_data=o,this.dropzoneFiles=this.dropzoneFiles.filter((function(t){return t.uploadId!==e.uploadId})),this.blockContentUpdate(n,!0)}},onUploadError:function(t,e){this.onDeleteRow({id:e.uploadId})},onContentRowBlur:function(t,e){this.onContentRowUpdate(t,e),this.$emit("update")},onContentRowUpdate:function(t,e){var n=this.blockContent.slice(0),r=n.findIndex((function(e){return e.id===t.id}));r>=0&&(Object.keys(e).forEach((function(t){n[r][t]=e[t]})),this.blockContentUpdate(n))},blockContentUpdate:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$parent.blockContentUpdate(t),e&&this.$emit("update")},updateUploadFieldAttr:function(t,e){var n=this.$options.dropzoneInstance.hiddenFileInput;n&&("boolean"==typeof e?n[t]=e:null!==e&&["string","number"].indexOf(c(e))>=0?n.setAttribute(t,e):n.removeAttribute(t))}},watch:{dropzoneFiles:{handler:function(t){var e=this;t.forEach((function(t){var n=e.blockContent.slice(0),r=n.findIndex((function(e){return e.id===t.uploadId})),i=t.progress,o=t.progressText;r>=0?n[r].progress={progress:i,progressText:o}:n=e.blockContent.concat({id:t.uploadId,type:"library",progress:{progress:i,progressText:o}}),e.blockContentUpdate(n)})),this.showUpload=!1},deep:!0},xPanelVisible:function(t){this.isChoosing&&!t&&(this.onFocusChanged(!1,this.id),this.isChoosing=!1)}},mounted:function(){var t=this;this.dropzoneInit({dropzone:this.$el,extensions:this.allowedMime,maxFilesize:1024,clickable:this.$refs.clickable}),this.$watch("allowedMime",(function(e,n){e!==n&&t.updateUploadFieldAttr("accept",e)})),this.$watch("howManyMoreCanUpload",(function(e,n){e!==n&&t.updateUploadFieldAttr("multiple",e>1)}))}}},39812:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(90948),i=n.n(r),o=n(48416),a=n(42456);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"content-builder-block-form",components:{"form-preview":n(77032).default},mixins:[a.mixinReorderHelpers],inject:["blockContentUpdate"],props:{id:{type:String,required:!0},editable:{type:Boolean,default:!0}},data:function(){return{isChoosing:!1,showUpload:!1,showDropdown:!1,internalValue:[],hiddenFields:[],incOptIndex:0}},computed:d(d({},(0,o.mapState)({xPanelVisible:function(t){return t.panel.visible}})),{},{canReorder:function(){return this.editable},blockData:function(){return this.$parent.blockData},blockContent:{get:function(){var t;return Slickplan.helpers.castArray(null===(t=this.blockData)||void 0===t?void 0:t.content,[])},set:function(t){this.blockContentUpdate(t),this.$emit("update")}},componentsList:function(){return[{key:"text",value:"Text input"},{key:"textarea",value:"Text area"},{key:"file",value:"File/image upload"},{key:"select",value:"Dropdown"},{key:"radio",value:"Radio button"},{key:"checkbox",value:"Checkbox"}]},componentsListObject:function(){return Slickplan.helpers.arrayToKeyValue(this.componentsList)}}),methods:{showingDropdown:function(t){this.showDropdown=t;var e=this.$el.closest("li.ui-content");e&&(e.style.zIndex=t?999:null)},addFormComponent:function(t){var e=Slickplan.helpers.objectCloneDeep(this.internalValue);e.push({type:t,id:Slickplan.helpers.randomString(6)}),this.internalValue=e},deleteField:function(t){var e=this,n=t.target.closest("li._field");n&&n.dataset.type&&this.$modal.showConfirm({title:"Delete form component",text:"Are you sure you want to delete this ".concat(this.componentsListObject[n.dataset.type]||"form"," component?")},(function(){n.remove(),e.reloadData()}))},reorderFields:function(t,e,n){var r=e.target.closest("li._field");if(r&&this.internalValue.length){var i=this.internalValue.findIndex((function(e){return e.id===t}));i>=0&&(n>0&&i+1<this.internalValue.length?(r.parentNode.insertBefore(r.nextSibling,r),this.reloadData()):n<0&&i>0&&(r.parentNode.insertBefore(r,r.previousSibling),this.reloadData()))}},onChangedOrder:function(t,e){var n=this;if(e&&e.dataset.id&&!e.dataset.type){var r=t.split("-")[0],i=this.internalValue.findIndex((function(t){return t.id===r&&n.canHaveOptions(t)}));if(i>=0){var o=Slickplan.helpers.objectCloneDeep(this.internalValue);o[i].options=l(e.parentNode.querySelectorAll('li > input[type="text"]')).map((function(t){return{id:Slickplan.helpers.randomString(6),value:t.value||""}})),this.internalValue=o}}this.$nextTick(this.reloadData)},canHaveOptions:function(t){return"checkbox"===t.type||"radio"===t.type||"select"===t.type},modifyFieldOption:function(t,e){if(this.internalValue.length&&this.internalValue[t]&&this.canHaveOptions(this.internalValue[t])){var n=Slickplan.helpers.objectCloneDeep(this.internalValue);return n[t].options=n[t].options||[],"number"==typeof e&&e>=0?n[t].options.splice(e,1):n[t].options.push({id:Slickplan.helpers.randomString(6),value:""}),this.internalValue=n,n[t].id}},addFieldOption:function(t){var e=this,n=this.modifyFieldOption(t);n&&this.$nextTick((function(){var t=e.$el.querySelector('li[data-id="'.concat(n,'"] li.field:last-of-type > input[type="text"]'));t&&t.focus()}))},removeFieldOption:function(t,e){this.modifyFieldOption(t,e)},reloadData:function(){var t=this;this.internalValue=Slickplan.helpers.objectCloneDeep(l(this.$el.querySelectorAll("li._field")).map((function(e){return t.internalValue.find((function(t){return t.id===e.dataset.id}))})).filter((function(t){return t})))},toggleVisible:function(t,e){var n=t.ctrlKey||t.shiftKey||t.metaKey||t.altKey;this.hiddenFields.includes(e)?this.hiddenFields=n?[]:this.hiddenFields.filter((function(t){return t!==e})):n?this.hiddenFields=this.internalValue.map((function(t){return t.id})).slice(0):this.hiddenFields.push(e)}},mounted:function(){var t=this;this.$watch("blockContent",(function(e){i()(t.internalValue,e)||(t.internalValue=Slickplan.helpers.objectCloneDeep(e))}),{deep:!0,immediate:!0}),this.$watch("internalValue",(function(e){i()(t.blockContent,e)||(t.blockContent=Slickplan.helpers.objectCloneDeep(e))}),{deep:!0})}}},90628:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(75464),o=n.n(i);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"content-builder-block-table",mixins:[n(92704).mixinContentTable],inject:["blockContentUpdate"],isTablePaste:!1,mouseEventData:null,props:{id:{type:String,required:!0},editable:{type:Boolean,default:!0},isRevisionView:{type:Boolean,default:!1},blockData:{type:Object,required:!0}},data:function(){return{isLoaded:!1,newTable:{cols:3,rows:2},uniqueId:null,selectedRecord:[0,0],highlight:null,mergeHighlight:null,classArray:null,canMerge:!1}},computed:f(f({},(0,r.mapState)({xContentBlocksLock:function(t){return t.content.builderBlocksLocks[this.id]}})),{},{blockContent:{get:function(){return this.blockData.content||{cols:0,rows:0,data:[]}},set:function(t){this.resetMergeHighlight(),this.blockContentUpdate(t),this.$emit("update")}},canUnmerge:function(){return!this.canMerge&&!this.mergeHighlight&&this.selectedRecord&&this.blockContent.merge&&this.blockContent.merge[this.selectedRecord.join(this.$options.spanSeparator)]},tableControls:function(){var t=this,e=[{className:"-top -plus",tooltip:"Insert row before",onClick:function(){return t.onAdd("rows",0)}},{className:"-bottom -plus",tooltip:"Insert row after",onClick:function(){return t.onAdd("rows",1)}},{className:"-bottom -x",tooltip:"Remove selected row",onClick:function(){return t.onRemove("rows")}},{className:"-left -plus",tooltip:"Insert column before",onClick:function(){return t.onAdd("cols",0)}},{className:"-right -plus",tooltip:"Insert column after",onClick:function(){return t.onAdd("cols",1)}},{className:"-left -x",tooltip:"Remove selected column",onClick:function(){return t.onRemove("cols")}}];return this.canMerge?e.push({className:"-merge",tooltip:"Merge cells",label:!0,onClick:this.onMergeCells}):this.canUnmerge&&e.push({className:"-unmerge",tooltip:"Unmerge cells",label:!0,onClick:this.onUnmergeCells}),e.map((function(t,e){return f({id:e+1},t)}))},hasContent:function(){return!(!this.blockContent.merge||!Object.keys(this.blockContent.merge).length)||!(!this.blockContent.data||!Array.isArray(this.blockContent.data))&&this.blockContent.data.some((function(t){return t.some((function(t){return!Slickplan.helpers.isBlank(t)}))}))}}),methods:{onButtonMouseEnter:function(t){if(this.$refs.table&&this.blockContent&&this.blockContent.rows&&this.blockContent.cols){var e=this.$refs.table.parentNode.getBoundingClientRect(),n=null,r=t.split(" "),i=r.includes("-bottom")||r.includes("-top"),o=r.includes("-plus"),a=this.$refs.table.querySelectorAll(i?'*[data-row="'.concat(this.selectedRecord[0],'"]'):'*[data-col="'.concat(this.selectedRecord[1],'"]'));if(a){var s=l(a).map((function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height,o=n.x,a=n.y;return{left:o-e.x,top:a-e.y,width:r,height:i}}));if(i){var c=Math.floor(Math.min.apply(Math,l(s.map((function(t){return t.height}))))),u=Math.floor(Math.min.apply(Math,l(s.map((function(t){return t.top})))));n={type:t,style:{width:"100%",height:o?"3px":"".concat(c,"px"),top:o&&r.includes("-bottom")?"".concat(u+c,"px"):"".concat(u,"px")}}}else{var d=Math.floor(Math.min.apply(Math,l(s.map((function(t){return t.width}))))),f=Math.floor(Math.min.apply(Math,l(s.map((function(t){return t.left})))));n={type:t,style:{width:o?"3px":"".concat(d,"px"),height:"100%",left:o&&r.includes("-right")?"".concat(f+d,"px"):"".concat(f,"px")}}}}this.highlight=n}},onButtonMouseLeave:function(){this.highlight&&(this.highlight=null)},onTableCreate:function(){var t=this.newTable,e=t.cols,n=t.rows;this.blockContent=f(f({},this.newTable),{},{data:Array(n).fill(Array(e).fill(""))}),this.fixTableHtml()},onRecordFocus:function(t,e,n){this.editable&&(this.selectedRecord=[e,n])},onRecordUpdate:function(t,e,n,r){if(this.editable&&this.blockContent&&!this.$options.isTablePaste&&(void 0===r&&(r=t.target.innerText),this.blockContent.data[e][n]!==r)){t.target.innerText=r;var i=Slickplan.helpers.objectCloneDeep(this.blockContent.data);i[e]&&(i[e][n]=r,this.blockContent=f(f({},this.blockContent),{},{data:i}))}},onRecordPaste:function(t,e,n){var r,i=this;t.preventDefault(),t.stopPropagation(),t.clipboardData&&t.clipboardData.getData?r=t.clipboardData.getData("text/plain"):window.clipboardData&&window.clipboardData.getData&&(r=window.clipboardData.getData("Text")),r="string"==typeof r?r.trim():"";var o=!this.blockContent.merge||!Object.keys(this.blockContent.merge).length?r.split("\n").map((function(t){return t.split("\t").map((function(t){return"".concat(t).trim()}))})):[];if(o.length>1&&!o.some((function(t){return t.length!==o[0].length}))){this.$options.isTablePaste=!0;for(var a=this.blockContent,s=a.rows,l=a.cols,c=Slickplan.helpers.objectCloneDeep(this.blockContent.data),u=0,d=e;d<s;d+=1){for(var p=0,m=n;m<l;m+=1)void 0!==c[d]&&Array.isArray(c[d])||(c[d]=[]),void 0!==c[d][m]&&""!==String(c[d][m]).trim()||void 0===o[u]||!Array.isArray(o[u])||void 0===o[u][p]||(c[d][m]="".concat(o[u][p])),p+=1;u+=1}this.blockContent=f(f({},this.blockContent),{},{data:c}),this.$nextTick((function(){i.$options.isTablePaste=!1}))}else{var h=t.target.innerText;"string"==typeof h&&""!==(h=h.trim())&&(r="".concat(h," ").concat(r)),this.onRecordUpdate(t,e,n,r)}},onRecordMouseDown:function(t,e,n){this.editable&&(this.resetMergeHighlight(),this.mouseEventData={row:e,col:n},document.addEventListener("mousemove",this.onTableMouseMove),document.addEventListener("mouseup",this.onRecordMouseUp))},onTableMouseMove:function(t){if(this.editable){var e=t&&t.target?t.target:document.elementFromPoint(t.clientX,t.clientY);if(e&&e.dataset&&e.dataset.row&&e.dataset.col){this.mouseEventData.moved=!0;var n=this.mouseEventData,r=n.row,i=n.col,o=parseInt(e.dataset.row,10),a=parseInt(e.dataset.col,10);if(r!==o||i!==a){var s=[[Math.min(r,o),Math.min(i,a)],[Math.max(r,o),Math.max(i,a,a)]];this.mergeHighlight&&this.mergeHighlight.map((function(t){return t.join("-")})).join("-")===s.map((function(t){return t.join("-")})).join("-")||this.resetMergeHighlight(s)}else this.resetMergeHighlight()}}},onRecordMouseUp:function(){var t;this.editable&&(document.removeEventListener("mousemove",this.onTableMouseMove),document.removeEventListener("mouseup",this.onRecordMouseUp),null!==(t=this.mouseEventData)&&void 0!==t&&t.moved||this.resetMergeHighlight(),this.mouseEventData=null)},resetMergeHighlight:function(t){if(this.canMerge=!1,this.mergeHighlight||t){if(this.mergeHighlight=t||null,this.mergeHighlight){var e=[],n=s(this.mergeHighlight,2),r=n[0],i=n[1];r[0]===i[0]&&i[1]>r[1]?e=this.tableStructure.flat().filter((function(t){return t.row<=r[0]&&t.rowEnd>=r[0]&&(t.col>=r[1]&&t.col<=i[1]||t.colEnd>=r[1]&&t.colEnd<=i[1])})):r[1]===i[1]&&i[0]>r[0]&&(e=this.tableStructure.flat().filter((function(t){return t.col<=r[1]&&t.colEnd>=r[1]&&(t.row>=r[0]&&t.row<=i[0]||t.rowEnd>=r[0]&&t.rowEnd<=i[0])}))),this.canMerge=e.length&&!e.some((function(t){return t.colspan>1||t.rowspan>1}))}this.recalculateTableClasses()}},manipulate:function(t,e,n){var r=this,i=Slickplan.helpers.objectMergeDeep(this.blockContent,p({},e,this.blockContent[e]+(t?1:-1)));if(this.hasContent){var o=this.$options.spanSeparator,a=this.blockContent.merge?Slickplan.helpers.objectCloneDeep(this.blockContent.merge):{},s={};i.merge=null;var l="rows"===e?0:1,c=Math.min(this.selectedRecord[l],this.blockContent[e]-1)+n;"rows"===e?t?i.data=Slickplan.helpers.arrayInsert(i.data,c,Array(i.cols).fill("")):(i.data=Slickplan.helpers.objectCloneDeep(i.data),i.data.splice(c,1)):i.data=t?i.data.map((function(t){return Slickplan.helpers.arrayInsert(t,c,"")})):i.data.map((function(t){var e=t.slice(0);return e.splice(c,1),e})),Object.keys(a).forEach((function(n){var i=n.split(o).map((function(t){return parseInt(t,10)})),u=a[n];t?(i[l]>=c?i[l]+=1:i[l]+u[e]>c&&(u[e]+=1),s[i.join(o)]=u):i[l]>r.selectedRecord[l]?(i[l]-=1,s[i.join(o)]=u):i[l]===r.selectedRecord[l]&&1===u[e]||(u[e]>1&&r.selectedRecord[l]>=i[l]&&r.selectedRecord[l]<i[l]+u[e]&&(u[e]-=1),(u.rows>1||u.cols>1)&&(s[i.join(o)]=u))})),Object.keys(s).length&&(i.merge=s),this.selectedRecord[l]=t?this.selectedRecord[l]>c?c+1:c:Math.max(0,this.selectedRecord[l]-1)}this.blockContent=i},onAdd:function(t,e){this.manipulate(!0,t,e)},onRemove:function(t){this.blockContent[t]<=1||this.manipulate(!1,t,0)},onMergeCells:function(){if(this.mergeHighlight){var t=Slickplan.helpers.objectMergeDeep(this.blockContent),e=s(this.mergeHighlight,2),n=e[0],r=e[1];t.merge||(t.merge={});var i={rows:r[0]-n[0]+1,cols:r[1]-n[1]+1};if(t.merge[n.join(this.$options.spanSeparator)]=i,t.data){for(var o=[],a=n[0];a<n[0]+i.rows;a+=1)for(var l=n[1];l<n[1]+i.cols;l+=1)o.push(t.data[a][l]),t.data[a][l]="";t.data[n[0]][n[1]]=o.filter((function(t){return!Slickplan.helpers.isBlank(t)})).join(" ")}this.blockContent=t,this.generateUniqueId()}},onUnmergeCells:function(){var t=this.selectedRecord.join(this.$options.spanSeparator);if(this.blockContent.merge&&this.blockContent.merge[t]){var e=Slickplan.helpers.objectCloneDeep(this.blockContent);delete e.merge[t],this.blockContent=e,this.generateUniqueId()}},getTableRecord:function(t,e,n){return n=n||this.blockContent.data,Array.isArray(n)&&"object"===a(n[t])&&void 0!==n[t][e]?n[t][e]:""},getRevisionRecord:function(t,e){var n=(this.blockRevisionData?this.blockRevisionData.content:{}).data;return o()(n?Slickplan.helpers.escapeHtml(this.getTableRecord(t,e,n)):"",Slickplan.helpers.escapeHtml(this.getTableRecord(t,e)))},recalculateTableClasses:function(){var t=[];if(this.mergeHighlight)for(var e=s(this.mergeHighlight,2),n=e[0],r=e[1],i=0;i<this.blockContent.rows;i+=1){t[i]=[];for(var o=0;o<this.blockContent.cols;o+=1)t[i][o]=i>=n[0]&&i<=r[0]&&o>=n[1]&&o<=r[1]?"-highlight -merge":null}this.classArray=t.length?t:null},fixTableHtml:function(){var t=this.$refs.table?this.$refs.table.querySelectorAll("th, td"):null;t&&t.forEach((function(t){var e=t.innerText;t.innerHTML="",t.innerText=e}))},generateUniqueId:function(){this.uniqueId=Slickplan.helpers.randomString()}},watch:{blockContent:{handler:function(t,e){t&&e&&(t.rows!==e.rows||t.cols!==e.cols)&&this.generateUniqueId()},deep:!0},xContentBlocksLock:function(t,e){e&&!t&&this.generateUniqueId()},tableStructure:{handler:function(){var t=this;this.$nextTick((function(){t.highlight&&t.editable&&t.onButtonMouseEnter(t.highlight.type)}))},deep:!0}},mounted:function(){this.generateUniqueId(),this.isRevisionView||this.$nextTick(this.fixTableHtml)}}},5224:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>x});var r=n(48416),i=n(62264),o=n.n(i),a=n(22164),s=n(71995),l=n(58532),c=n(1020),u=n(8228),d=n(86180),f=n(65056),p=n(70992),m=n(42456),h=n(14580),v=["body","comments"];function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){k(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e,n){var r;return r=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==b(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const x={name:"content-builder-page",components:{"block-item":l.default,"blocks-menu":c.default,"block-metadata":u.default,"component-loading":d.default},mixins:[f.mixinProjectStatus,p.mixinContentPage,m.mixinThrottledSave],provide:function(){return{saveOnBlocksReorder:this.saveOnBlocksReorder,saveOnBlocksAdd:this.saveOnBlocksAdd,saveOnBlocksDelete:this.saveOnBlocksDelete,onFocusChanged:this.onFocusChanged}},focusTimerId:null,wsRoom:null,wsKeys:{add:"content/addBuilderBlock",update:"content/updateBuilderBlock",delete:"content/deleteBuilderBlock",reorder:"content/reorderBuilderBlocks",lock:"content/setLockBuilderBlock",data:"content/setCurrentBuilderPageData"},data:function(){return{cellId:null,updatedAt:null,permissionsProject:h.permissionsProject}},computed:C(C(C({},(0,r.mapState)({xPanelCurrentTab:function(t){return t.panel.currentTab},xContentBlocks:function(t){return t.content.builderBlocks},xContentPageData:function(t){return t.content.builderPageData},xContentLanguage:function(t){return t.content.currentLanguage},xCell:function(t){return this.cellId&&t.sitemapCell[this.cellId]||{}}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{isRevisionViewer:function(){return"revision"===this.xContentPageData.editBlocked},hasTemplate:function(){return this.xContentPageData.template},cellLabel:function(){return this.xCell[h.constants.CELL_DATA_KEY_LABEL]},dueDate:function(){return this.xContentPageData.due_date_timestamp?o().unix(this.xContentPageData.due_date_timestamp).format(h.constants.DATE_FORMAT_LONG):null}}),methods:{onLoad:function(){var t=this;this.onWebsocketLeave(),this.$store.dispatch("core/setLoading",!0),this.$store.commit("content/resetCurrentBuilderPageData"),Slickplan.helpers.requestSingle((function(){var e=s.default.sitemapCell.getContent(t.cellId,t.xContentLanguage,"full");return e.promise.then((function(e){var n=e.body,r=e.comments,i=_(e,v);t.throttledSaveReset(),t.$store.commit("content/setCurrentBuilderPageData",i),t.$store.commit("content/setBuilderBlocks",n||[]),r&&Object.keys(r).forEach((function(e){r[e]&&t.$store.commit("comments/setCounter",C(C({},r[e]),{},{type:h.constants.COMMENTS_TYPE_CONTENT_BLOCK,id:"".concat(t.cellId,"-").concat(e,"-").concat(t.xContentLanguage)}))})),t.onWebsocketJoin()})).catch(_noop).finally((function(){t.$store.dispatch("core/setLoading",!1)})),e}),this.$options.name)},onTemplateClick:function(){var t=this;this.ifProjectEditable(void 0,h.permissionsProject.MANAGE_CONTENT,h.constants.FEATURE_CONTENT).then((function(){t.$router.push({name:"sitemap-content-template-builder",params:{sitemap:Slickplan.globalVars.sitemapAlias,template:t.xContentPageData.template}}).catch(_noop)})).catch(_noop)},onBack:function(){var t;null!==(t=window.history)&&void 0!==t&&t.length?this.$router.back():this.$router.push({name:"sitemap-content"}).catch(_noop),a.EventBus.$emit("panel-close")},onWebsocketJoin:function(){var t=this;this.onWebsocketLeave(),this.$options.wsRoom=["content",this.cellId,this.xContentLanguage];var e=Slickplan.websocket.room(this.$options.wsRoom);e.listenForWhisper("content.revision",this.onLoad),e.listenForWhisper("content.meta",(function(e){var n=e.data;t.$refs.meta&&t.$refs.meta.updateFromWebsocket(n.key,n.value)})),Object.keys(this.$options.wsKeys).forEach((function(n){e.listenForWhisper("content.".concat(n),(function(e){var r=e.user,i=e.id,o=e.data;t.$options.wsKeys[n]&&t.$store.commit(t.$options.wsKeys[n],"lock"===n?{user:r,id:i,data:o}:o)}))}))},onWebsocketLeave:function(){this.$options.wsRoom&&(Slickplan.websocket.leaveRoom(this.$options.wsRoom),this.$options.wsRoom=null)},onFocusChanged:function(t,e){var n=this;if("boolean"==typeof t&&e||t.target&&this.$refs.blocks&&(["input","select","textarea"].includes(t.target.tagName.toLowerCase())||t.target.isContentEditable)&&this.$refs.blocks.contains(t.target)){var r,i="boolean"==typeof t?t:"focusin"===t.type;if(!e)e=null===(r=t.target.closest("li.ui-content[data-id]"))||void 0===r||null===(r=r.dataset)||void 0===r?void 0:r.id;clearTimeout(this.$options.focusTimerId),e&&(this.$options.focusTimerId=setTimeout((function(){Slickplan.websocket.pushContent(n.cellId,n.xContentLanguage,{id:e,key:"lock",data:i})}),i?1:100))}},onMetaChange:function(t){var e=t.key,n=t.value;Slickplan.websocket.pushContent(this.cellId,this.xContentLanguage,{key:"meta",data:{key:e,value:n}}),this.throttledSave(k({},e,{data:n}),"meta")},onBlockContentChange:function(t){var e=this.xContentBlocks.find((function(e){return e.id===t}));e&&this.throttledSave(k({},t,{data:e}),"update")},saveOnBlocksReorder:function(t){this.throttledSave({data:{data:t}},"reorder")},saveOnBlocksAdd:function(t){var e=this;[].concat(t).forEach((function(t){var n=e.xContentBlocks.findIndex((function(e){return e.id===t}));if(n>=0){var r=e.xContentBlocks.length-1>n&&e.xContentBlocks[n+1]?e.xContentBlocks[n+1].id:null;e.throttledSave({data:{mode:"append",data:{data:e.xContentBlocks[n],position:r?"before":null,position_id:r}}},"create")}}))},saveOnBlocksDelete:function(t){this.throttledSave({data:{mode:"merge",data:t}},"delete")},updateSavedAt:function(t){var e=t.date,n=t.timestamp;this.$store.commit("content/setCurrentBuilderPageData",{updated_at:e,updated_at_timestamp:n})},throttledSaveRequest:function(t,e){var n=this,r=null;switch(a.EventBus.$once("sitemap-updated-at-post",this.updateSavedAt),e){case"meta":return s.default.sitemapCell.massSaveData(Object.keys(t).map((function(e){return{cell_id:n.cellId,key:"content_".concat(e),data:(!Slickplan.helpers.isBlank(t[e])||""===t[e])&&t[e],language:n.xContentLanguage}})),{type:"content",action:"meta",meta:{keys:Object.keys(t),cell_id:this.cellId}});case"reorder":return s.default.sitemap.reorderPageContentBlocks(this.cellId,t.data,this.xContentLanguage);case"create":return 1===t.data.length?(r=y(t.data,1)[0],s.default.sitemap.addPageContentBlock(this.cellId,r.element||r.data,this.xContentLanguage,r.position,r.position_id)):s.default.sitemap.addPageContentBlocks(this.cellId,t.data,this.xContentLanguage);case"update":return 1===Object.keys(t).length?(r=y(Object.values(t),1)[0],s.default.sitemap.updatePageContentBlock(this.cellId,r.id,r,this.xContentLanguage)):s.default.sitemap.updatePageContentBlocks(this.cellId,Object.values(t),this.xContentLanguage);case"delete":if(Array.isArray(t.data)&&t.data.length>1)return s.default.sitemap.deletePageContentBlocks(this.cellId,t.data,this.xContentLanguage);if("string"==typeof(r=Array.isArray(t.data)?[].concat(t.data).shift():t.data)&&r)return s.default.sitemap.deletePageContentBlock(this.cellId,r,this.xContentLanguage)}}},watch:{"$route.params.cell":function(t){t&&t!==this.cellId&&(this.cellId=t,this.onLoad())},xPanelCurrentTab:function(t,e){var n="panel-content-revisions";t!==n&&e===n&&this.onLoad()}},created:function(){this.throttledSaveSetDataGroups(["create","update","reorder","delete","meta"]),document.addEventListener("focusin",this.onFocusChanged),document.addEventListener("focusout",this.onFocusChanged),this.cellId=this.$route.params.cell,this.$store.commit("content/setCurrentBuilderPage",this.cellId),this.onLoad()},mounted:function(){a.EventBus.$on("content-reload",this.onLoad),this.$watch("xContentLanguage",this.onLoad),this.updatedAt=this.xContentPageData.updated_at},beforeDestroy:function(){a.EventBus.$off("content-reload",this.onLoad),a.EventBus.$off("sitemap-updated-at-post",this.updateSavedAt),this.onWebsocketLeave(),Slickplan.helpers.requestCancel(this.$options.name),this.$store.commit("actionBar/reset"),this.$store.commit("content/resetCurrentBuilderPageData"),document.removeEventListener("focusin",this.onFocusChanged),document.removeEventListener("focusout",this.onFocusChanged)}}},98908:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(71995),o=n(58532),a=n(1020),s=n(8228),l=n(86180),c=n(42456);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"content-builder-template",components:{"block-item":o.default,"blocks-menu":a.default,"block-metadata":s.default,"component-loading":l.default},mixins:[c.mixinThrottledSave],provide:function(){return{saveOnBlocksReorder:this.onBlocksChange,saveOnBlocksAdd:this.onBlocksChange,saveOnBlocksDelete:this.onBlocksChange,onFocusChanged:_noop}},lastJson:null,data:function(){return{templateId:null}},computed:m(m(m({},(0,r.mapState)({xContentBlocks:function(t){return t.content.builderBlocks},xContentTemplate:function(t){var e=this;return t.content.templates.find((function(t){return t.alias===e.$route.params.template}))}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{formattedContentBlocksJson:function(){return this.xContentBlocks.map((function(t){var e=Slickplan.helpers.objectCloneDeep(t);return e.options&&Object.keys(e.options).forEach((function(t){Slickplan.helpers.isBlank(e.options[t])&&delete e.options[t]})),Object.keys(e).forEach((function(t){Slickplan.helpers.isBlank(e[t])&&delete e[t]})),e}))}}),methods:{onBlocksChange:function(){var t=JSON.stringify(this.formattedContentBlocksJson);this.$options.lastJson!==t&&(this.$options.lastJson=t,this.throttledSave({elements:{data:this.formattedContentBlocksJson}}))},throttledSaveRequest:function(t){var e=this,n=i.default.sitemap.updateContentTemplate(this.templateId,t);return n.promise.then((function(t){var n=t.name,r=t.timestamp,i=t.updated_at;e.$store.commit("content/updateTemplateData",{alias:e.templateId,data:{name:n,timestamp:r,updated_at:i}})})),n},onLoad:function(){var t=this;this.throttledSaveSetDataGroups(["default"]),this.$store.dispatch("core/setLoading",!0),this.templateId=this.$route.params.template,Slickplan.helpers.requestSingle((function(){var e=i.default.sitemap.getContentTemplates(),n=i.default.sitemap.getContentTemplate(t.templateId);return Promise.all([e.promise,n.promise]).then((function(e){var n=d(e,2),r=n[0],i=n[1];t.throttledSaveReset(),t.$store.commit("content/setTemplates",r),t.$store.commit("content/setBuilderBlocks",Slickplan.helpers.castArray(null==i?void 0:i.elements)),t.$store.commit("content/setCurrentBuilderPageData",i?i.metadata:null),t.$options.lastJson=JSON.stringify(t.formattedContentBlocksJson),t.xContentTemplate&&t.xContentTemplate.pages_count&&t.$notify({type:"warning",text:"Any changes you make will apply to all pages using this template.",note:"For example, if you removed an element it will be removed from all pages using this template.",duration:9999})})).catch(_noop).finally((function(){t.$store.dispatch("core/setLoading",!1)})),[e,n]}),this.$options.name)}},watch:{"$route.params.template":{handler:function(t,e){t&&t!==e&&this.onLoad()},immediate:!0}},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name),this.$store.commit("actionBar/reset")}}},58380:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var r=n(48416),i=n(71995),o=n(86180),a=n(65576),s=n(23962),l=n(48728),c=n(54048),u=n(65056),d=n(14580),f=n(92704);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const g={name:"content-dashboard",components:{"log-item":c.default,"component-loading":o.default,"pages-table":a.default,"partial-workflow":s.default},mixins:[u.mixinProjectStatus,f.mixinContentGlobalComputed],data:function(){return{lastActivity:[],permissionsProject:d.permissionsProject}},computed:b(b({},(0,r.mapState)({xSectionsIds:function(t){return t.sitemapSection.ids},xContentSectionId:function(t){return t.content.currentSectionId},xContentFilters:function(t){return t.content.filters},xContentLanguage:function(t){return t.content.currentLanguage},xSitemapCells:function(t){return t.sitemapCell.cells},xOnboard:function(t){return t.core.onboard}})),(0,r.mapGetters)({xActiveLanguages:"sitemap/languages",xIsPageLoading:"core/isPageLoading"})),methods:{changeRoute:function(t){this.$root.routeSwitchTool("sitemap".concat(t?"-content-".concat(t):""))},onboard:function(){this.xOnboard.includes("content")&&this.$modal.show(l.default,{type:"content"},{width:550,closeButton:!1})}},created:function(){var t=this;this.$store.dispatch("core/setLoading",!0),this.xContentSectionId&&this.xSectionsIds.some((function(e){return e===t.xContentSectionId}))||this.$store.commit("content/setCurrentSection",d.constants.SITEMAP_SECTION_MAIN_ID),this.xContentLanguage&&this.xActiveLanguages.some((function(e){return e.code===t.xContentLanguage}))||this.$store.commit("content/resetFilters",this.xContentLanguage),Slickplan.helpers.requestSingle((function(){var e=i.default.sitemap.getContentSummary(),n=i.default.sitemap.getContentTemplates(),r=[e.promise,n.promise];if(t.isContentToolAvailable){var o=i.default.sitemap.getContentLog({compact:1,limit:6});r.push(o.promise)}return Promise.all(r).then((function(e){var n=m(e,3),r=n[0],i=n[1],o=n[2];t.lastActivity=o,t.$store.commit("content/setTemplates",i),t.$store.commit("sitemapCell/resetContentData"),Object.keys(r).forEach((function(e){Object.keys(r[e]).forEach((function(n){"object"===p(r[e][n])?Object.keys(r[e][n]).forEach((function(i){t.$store.dispatch("sitemapCell/updateData",{cell_id:e,key:n,value:r[e][n][i],language:i})})):t.$store.dispatch("sitemapCell/updateData",{cell_id:e,key:n,value:r[e][n]})}))}))})).catch(_noop).finally((function(){t.$store.dispatch("core/setLoading",!1),document.body.style.pointerEvents="",t.onboard()})),[e,n]}),this.$options.name)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},28904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"content-builder-form-preview",components:{"field-textarea":n(10916).default},props:{field:{type:Object,required:!0},readonly:{type:Boolean,default:!1}},computed:{fieldOptions:function(){return"select"===this.field.type&&this.field.options?this.field.options.map((function(t){return{label:t.value,value:t.value}})):[]}}}},44648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"content-activity-log-item",props:{log:{type:Object,required:!0}},computed:s(s(s({},(0,r.mapState)({xTeam:function(t){return t.team.team},xContentTemplates:function(t){return t.content.templates}})),(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses",xGetCellData:"sitemapCell/getData"})),{},{isValidLog:function(){return this.parsedLog.text&&Array.isArray(this.parsedLog.text)&&this.parsedLog.text.length},logUser:function(){var t=this;return this.xTeam.find((function(e){return e.id===parseInt(t.log.user_id,10)}))},contentTemplates:function(){return Slickplan.helpers.arrayToKeyValue(this.xContentTemplates,"alias","name")},parsedLog:function(){var t=this.log,e=this.xGetCellData(t.cell_id,i.constants.CELL_DATA_KEY_LABEL),n=t.meta.status_id||t.meta.cell_data_id,r=n?this.xContentStatuses.find((function(t){return t.alias===n})):null,o=[];switch(t.action){case i.constants.LOG_CONTENT_STATUS_ADD:o=[":user","added a new workflow status:",":status"];break;case i.constants.LOG_CONTENT_STATUS_DELETE:o=[":user","removed the",":status","workflow status"];break;case i.constants.LOG_CONTENT_STATUS_UPDATE:o=[":user","updated the",":status","workflow status"];break;case i.constants.LOG_CONTENT_STATUS_REORDER:o=[":user","reordered workflow statuses"];break;case i.constants.LOG_PAGE_CONTENT_STATUS_UPDATE:o=[":user","changed the status of",":page","to",":status"];break;case i.constants.LOG_PAGE_CONTENT_STATUS_DELETE:o=[":user","removed the",":status","status from",":page"];break;case i.constants.LOG_CONTENT_TEMPLATE_ADD:o=[":user","added a new template:",":template"];break;case i.constants.LOG_CONTENT_TEMPLATE_DELETE:o=[":user","removed the",":template","template"];break;case i.constants.LOG_PAGE_CONTENT_BODY_UPDATE:o=[":user","updated the content of",":page"];break;case i.constants.LOG_PAGE_CONTENT_BODY_REORDER:o=[":user","reordered blocks in",":page"];break;case i.constants.LOG_PAGE_CONTENT_BODY_REVISION_RESTORE:o=[":user","restored older revision of",":page"];break;case i.constants.LOG_PAGE_CONTENT_META_DESCRIPTION_UPDATE:o=[":user",'updated "description" metadata of',":page"];break;case i.constants.LOG_PAGE_CONTENT_META_DESCRIPTION_DELETE:o=[":user",'removed "description" metadata of',":page"];break;case i.constants.LOG_PAGE_CONTENT_META_KEYWORDS_UPDATE:o=[":user",'updated "keywords" metadata of',":page"];break;case i.constants.LOG_PAGE_CONTENT_META_KEYWORDS_DELETE:o=[":user",'removed "keywords" metadata of',":page"];break;case i.constants.LOG_PAGE_CONTENT_META_TITLE_UPDATE:o=[":user",'updated "title" metadata of',":page"];break;case i.constants.LOG_PAGE_CONTENT_META_TITLE_DELETE:o=[":user",'removed "title" metadata of',":page"];break;case i.constants.LOG_PAGE_BATCH_EDIT:o=[":user","updated",t.meta&&t.meta.key?Slickplan.helpers.ucFirst(t.meta.key.replace("content_","").replace("_"," ")):null,"on multiple pages"];break;case"meta":e&&(o=[":user","updated metadata of",":page"])}return Object.assign(t,{text:o,cell:e,status:r})}}),methods:{onPageClick:function(t){var e=this;t.cell_id&&t.cell&&this.$root.ifAllowedFeatureThen(i.constants.FEATURE_CONTENT,(function(){e.$router.push({name:"sitemap-content-page-builder",params:{sitemap:Slickplan.globalVars.sitemapAlias,cell:t.cell_id}}).catch(_noop)}))}}}},73996:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(6580),o=n(14580),a=n(65056);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"content-table-row",components:{"user-avatars":i.default},mixins:[a.mixinProjectStatus],inject:["getChildPages","unassignedColor"],props:{level:{type:Number,required:!0},page:{type:Object,required:!0},breadcrumbs:{type:Boolean,default:!1},expandOnInit:{type:Boolean,default:!1}},data:function(){return{subpagesVisible:!1,isSelected:!1,permissionsProject:o.permissionsProject}},computed:c(c(c({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected},xContentLanguage:function(t){return t.content.currentLanguage}})),(0,r.mapGetters)({xGetServerTime:"core/getServerTime",xGetAllChildCells:"sitemapCell/getAllChilds"})),{},{isToolAvailable:function(){return this.$root.isAllowedFeature(o.constants.FEATURE_CONTENT)&&(this.$root.userCan(o.permissionsProject.MODIFY_ASSIGNED_CONTENT_PAGES)||this.$root.userCan(o.permissionsProject.MANAGE_CONTENT))},assignee:function(){return Slickplan.helpers.castArray(this.page[o.constants.CELL_DATA_KEY_CONTENT_ASSIGNEE])},isOverdue:function(){var t=this.page["".concat(o.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,"_timestamp")];return t&&t<this.xGetServerTime()},hasBreadcrumbs:function(){return this.breadcrumbs&&this.page.breadcrumbs&&this.page.breadcrumbs.length},subpages:function(){return!this.breadcrumbs&&this.page.childs&&this.subpagesVisible?this.getChildPages(this.page.id):[]}}),methods:{toggleSelection:function(t){this.page.childs&&(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)?this.$store.commit(this.isSelected?"actionBar/deselect":"actionBar/select",[this.page.id].concat(this.xGetAllChildCells(this.page.id))):this.$store.commit("actionBar/selectToggle",this.page.id)},onClick:function(){var t=this;this.$root.ifAllowedFeatureThen(o.constants.FEATURE_CONTENT,(function(){t.$router.push({name:"sitemap-content-page-builder",params:{sitemap:Slickplan.globalVars.sitemapAlias,cell:t.page.id},query:{language:t.xContentLanguage}}).catch(_noop)}))},onClickExpandCollapse:function(){this.subpagesVisible=!this.subpagesVisible},onClickExpandCollapseAll:function(){"all"!==this.subpagesVisible?this.subpagesVisible="all":this.onClickExpandCollapse()},onTemplateClick:function(){var t=this,e=this.page[o.constants.CELL_DATA_KEY_CONTENT_TEMPLATE];e&&this.$root.userCan(o.permissionsProject.MANAGE_CONTENT)&&this.$root.ifAllowedFeatureThen(o.constants.FEATURE_CONTENT,(function(){t.$router.push({name:"sitemap-content-template-builder",params:{sitemap:Slickplan.globalVars.sitemapAlias,template:e}}).catch(_noop)}))}},watch:{xBarSelectedIds:function(t){var e=t.includes(this.page.id);this.isSelected!==e&&(this.isSelected=e)}},created:function(){this.expandOnInit&&(this.subpagesVisible="all")},mounted:function(){this.$route.query.template_content===this.page.id&&Slickplan.helpers.onboard(this.$el.querySelector("._name"),["Click here to edit content","To edit the content, click on the name of the page."],["below","right"],{buttons:[{label:"Got it"}]})}}},60352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(2376),o=n.n(i),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"content-dashboard-workflow",data:function(){return{excludeStatuses:[]}},computed:c(c(c({},(0,r.mapState)({xCellsBySection:function(t){return t.sitemapCell.cellsBySectionsWithHidden},xContentSectionId:function(t){return t.content.currentSectionId},xContentLanguage:function(t){return t.content.currentLanguage}})),(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses",xGetCellData:"sitemapCell/getData"})),{},{pages:function(){return this.xCellsBySection[this.xContentSectionId]||[]},statusesCount:function(){var t=this;return Slickplan.helpers.arrayToKeyValue(this.xContentStatuses.map((function(e){return{alias:e.alias,pages:t.pages.filter((function(n){var r=t.xGetCellData(n,a.constants.CELL_DATA_KEY_CONTENT_STATUS);return r=r?r[t.xContentLanguage]:null,e.alias===t.unassignedStatus.alias?!r:r===e.alias})).length}})),"alias","pages")},unassignedStatus:function(){return this.xContentStatuses.find((function(t){return t.alias===a.constants.CONTENT_STATUS_UNASSIGNED}))},workflowBarBackground:function(){var t=this,e=this.pages.length,n=this.xContentStatuses.filter((function(n){var r=t.statusesCount[n.alias]||0,i=r>0&&!t.excludeStatuses.includes(n.alias);return!i&&r>0&&(e-=r),i})),r=n.length;if(1===r)return{backgroundColor:n[0].color};if(0===r)return null;var i=[],o=0;return n.forEach((function(n,a){i.length&&i.push("".concat(n.color," ").concat(o,"%")),a+1!==r&&(o=Math.min(o+Math.round(t.statusesCount[n.alias]/e*100),100),i.push("".concat(n.color," ").concat(o,"%")))})),i.length?{backgroundImage:"linear-gradient(90deg, ".concat(i.join(","),")")}:void 0}}),methods:{filterStatus:function(t){this.statusesCount[t]>0&&(this.excludeStatuses.includes(t)?this.excludeStatuses=this.excludeStatuses.filter((function(e){return e!==t})):this.excludeStatuses.push(t))}},mounted:function(){if(this.xContentStatuses.length>2){var t=0,e=0;o()(this.statusesCount,(function(n,r){r===a.constants.CONTENT_STATUS_UNASSIGNED?t+=n:e+=n})),t/t+e>.5&&this.excludeStatuses.push(a.constants.CONTENT_STATUS_UNASSIGNED)}}}},69760:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var r=n(6856),i=n(8228),o=n(27672),a=n(78612),s=n(85984),l=n(77032),c=n(81584),u=n(48416),d=n(59040),f=n(14580),p=n(65056),m=(n(97248),n(34424));n(17720);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==h(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const g={name:"content-preview",components:{"buttons-list":o.default,"block-metadata":i.default,"prism-editor":d.PrismEditor,"form-preview":l.default,"content-table-preview":s.default},mixins:[p.mixinProjectStatus],props:{externalWarning:{type:Boolean,default:!1}},computed:b(b({},(0,u.mapState)({xContentBlocks:function(t){return t.content.builderBlocks},xContentPageData:function(t){return t.content.builderPageData},xContentLanguage:function(t){return t.content.currentLanguage},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xContentPagesCommentsCount:function(t){return t.comments.counter[f.constants.COMMENTS_TYPE_CONTENT_BLOCK]},xCommentsModuleId:function(t){return t.comments.currentModuleId},xSitemapData:function(t){return t.sitemap.details},xCommentsFromGlobals:function(t){return t.comments.fromGlobalComments}})),{},{activeBlock:function(){var t=(this.xCommentsModuleId||"").split("-");return 4===t.length&&t[1]===this.xCurrentCellAlias&&t[3]===this.xContentLanguage?t[2]:null},preprocessedBlocks:function(){var t=this;return Slickplan.helpers.objectCloneDeep(this.xContentBlocks).map((function(e){return e.options||(e.options={}),"text"!==e.type&&e.options.tag&&"html"!==e.options.tag&&(e.options.tag_html_before="<".concat(e.options.tag).concat(e.options.tag_id?' id="'.concat(e.options.tag_id,'"'):"").concat(e.options.tag_class?' class="'.concat(e.options.tag_class,'"'):"",">"),e.options.tag_html_after="</".concat(e.options.tag,">")),"table"!==e.type||e.content&&"object"===h(e.content)?!["image","video","file"].includes(e.type)||e.content&&Array.isArray(e.content)?e.content||(e.content=""):e.content=Slickplan.helpers.castArray(null==e?void 0:e.content):e.content={},"text"===e.type&&(e.content=(0,r.autop)(Slickplan.helpers.escapeHtml(e.content))),e.buttons="none"===t.xSitemapData.meta.comments?[]:t.blockButtons(e),e}))},isBlocksMode:function(){var t;return"block"===(null===(t=this.xSitemapData.meta)||void 0===t||null===(t=t.share_options)||void 0===t?void 0:t.content_view_mode)}}),methods:{highlighter:function(t){return(0,m.highlight)(t,m.languages.html)},clickListener:function(t){var e=t.target.closest('a[href^="slickplan:"]');if(e)return t.preventDefault(),t.stopPropagation(),this.$root.routerSitemapPush(this.isProjectShared?"sitemap-shared-content":"sitemap-content-page-builder",{cell:e.href.split(":").pop()},null,{language:this.xContentLanguage}),!1;this.externalWarning&&(e=t.target.closest('a[href^="http"], a[href^="ftp"]'))&&e.origin!==window.location.origin&&(t.preventDefault(),t.stopPropagation(),this.$modal.show(c.default,{url:e.href},{width:608,name:this.$options.name,closeButton:!1,containerClassName:"-blurred"}))},mousemoveListener:function(t){if(t.target&&t.target.closest("._block")){this.$el.querySelectorAll("._tagged").forEach((function(t){t.classList.remove("_tagged")}));var e=t.target.closest("h1, h2, h3, h4, h5, h6, p, blockquote, pre, dl, ol, ul, table, .field[data-tag], ._block");!e||e.classList.contains("_block")||e.classList.contains("_tag")||(e.dataset.tag||(e.dataset.tag=e.tagName.toUpperCase()),e.classList.add("_tagged"))}},blockButtons:function(t){var e=this,n="".concat(this.xCurrentCellAlias,"-").concat(t.id,"-").concat(this.xContentLanguage),r=this.xContentPagesCommentsCount[n]||{total:0,unread:0},i=r.total,o=r.unread;return[{id:1,icon:"comments",iconBadge:i,tooltip:"Comments".concat(i?" (".concat(i,")"):""),className:"icon-comment".concat(i>9?" -v2":i>0?" -v1":"").concat(o>0?" -new":""),onClick:function(){e.openComments(t.id)}}]},isEmpty:function(t){return"table"===t.type?!t.content.rows&&!t.content.cols:!t.content},blockLabel:function(t){return t.options.label?t.options.label:"wysiwyg"===t.type?"Rich text":"text"===t.type?"Plain text":Slickplan.helpers.ucFirst(t.type)},openComments:function(t){this.$store.commit("sitemap/setData",{meta:{share_options:{content_view_mode:"block"}}}),this.$store.dispatch("panel/set",{id:"content-comment",visibility:!0,title:"Comments",tabs:[{id:"comments",component:a.default,props:{type:f.constants.COMMENTS_TYPE_CONTENT_BLOCK,id:t}}]})},scrollToActive:function(){if(this.$el){var t=this.$el.querySelector("._block-wrap.-active");t&&t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}}},watch:{activeBlock:function(t,e){t&&t!==e&&this.$nextTick(this.scrollToActive)},xCommentsFromGlobals:{handler:function(t,e){var n=this;t&&t!==e&&!0!==t&&(this.$nextTick((function(){n.openComments(t),n.scrollToActive()})),this.$store.commit("comments/fromGlobalComments",!0))},immediate:!0}},mounted:function(){this.$el.addEventListener("click",this.clickListener,!0),this.$el.addEventListener("auxclick",this.clickListener,!0),this.$el.addEventListener("mousemove",this.mousemoveListener,!0)},beforeDestroy:function(){this.$el.removeEventListener("click",this.clickListener),this.$el.removeEventListener("auxclick",this.clickListener),this.$el.removeEventListener("mousemove",this.mousemoveListener)}}},58372:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>k});var r=n(48416),i=n(2376),o=n.n(i),a=n(62264),s=n.n(a),l=n(71995),c=n(12988),u=n(5712),d=n(72944),f=n(25204),p=n(70660),m=n(14580),h=n(65056),v=n(70992);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){var r;return r=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==b(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const k={name:"content-dashboard-table",components:{FiltersReset:n(23076).default,"listing-head":c.default},mixins:[h.mixinProjectStatus,v.mixinSitemapPagesList,v.mixinSitemapSectionsList],provide:function(){var t=this;return{getChildPages:this.getChildPages,unassignedColor:function(){return t.unassignedStatus.color}}},data:function(){return{sort:[null,"asc"],currentSavingData:null,searchQuery:""}},computed:S(S(S({},(0,r.mapState)({xContentSectionId:function(t){return t.content.currentSectionId},xContentFilters:function(t){return t.content.filters},xTeam:function(t){return t.team.team},xBarIsVisible:function(t){return t.actionBar.isVisible},xBarSelectedIds:function(t){return t.actionBar.selected},xContentTemplates:function(t){return t.content.templates},xContentLanguage:function(t){return t.content.currentLanguage},xProjectContributors:function(t){return t.project.contributors}})),(0,r.mapGetters)({xActiveLanguages:"sitemap/languages",xGetCellsHierarchy:"sitemapCell/getCellsHierarchy",xGetCellBreadcrumb:"sitemapCell/getBreadcrumbs",xContentStatuses:"sitemap/contentStatuses",xContentTemplateNames:"content/getTemplateNames",xGetServerTime:"core/getServerTime",xGetCellData:"sitemapCell/getData"})),{},{projectContributors:function(){var t=this;return this.xProjectContributors.map((function(e){var n=e.id;return t.xTeam.find((function(t){return t.id===n}))})).filter((function(t){return t}))},dateRanges:function(){return[]},hasSearch:function(){return Boolean(this.xContentFilters.search.length)},hasFilters:function(){return!!this.countFilters},countFilters:function(){return(this.xContentFilters.assignee.length?1:0)+(this.xContentFilters.status.length?1:0)+("all"!==this.xContentFilters.type?1:0)},headers:function(){return[{id:"name",label:"Page name",grid:"auto",className:"col-name"},{id:"template_name",label:"Template",grid:"auto",className:"col-data"},{id:"".concat(m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,"_timestamp"),label:"Due date",grid:"auto",className:"col-data"},{id:"".concat(m.constants.CELL_DATA_KEY_CONTENT_UPDATED_AT,"_timestamp"),label:"Updated",grid:"auto",className:"col-data"},{id:"assignee",label:"Assignee",grid:"auto",className:"col-data",sort:!1}]},unassignedStatus:function(){return this.xContentStatuses.find((function(t){return t.alias===m.constants.CONTENT_STATUS_UNASSIGNED}))},availableFilters:function(){var t=[];return this.sectionsListWithMain.length>1&&t.push({id:"section",label:"Section",selectBy:{key:"id",value:"name"},filters:this.sectionsListWithMain}),this.xActiveLanguages.length>1&&t.push({id:"language",label:"Language",selectBy:{key:"code",value:"name"},filters:this.xActiveLanguages}),this.projectContributors.length>1&&t.push({id:"assignee",label:"Assigned to",multiple:{all:!1,none:"All"},selectBy:{key:"id",value:"name"},filters:this.projectContributors}),this.xContentStatuses.length>1&&t.push({id:"status",label:"Status",multiple:{all:!1,none:"All"},selectBy:{key:"alias",value:"name"},filters:this.xContentStatuses}),t.concat({id:"type",label:"Show",filters:{all:"All pages",overdue:"Overdue pages"}})},pages:function(){var t=this,e=C(C(C(C(C(C({},m.constants.CELL_DATA_KEY_CONTENT_UPDATED_AT,""),"".concat(m.constants.CELL_DATA_KEY_CONTENT_UPDATED_AT,"_timestamp"),0),m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,""),"".concat(m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,"_timestamp"),0),m.constants.CELL_DATA_KEY_CONTENT_TEMPLATE,""),m.constants.CELL_DATA_KEY_CONTENT_ASSIGNEE,[]),n=this.xGetCellsHierarchy(this.xContentSectionId,!1,!0,!1,[].concat(Object.keys(e).concat(m.constants.CELL_DATA_KEY_CONTENT_STATUS).map((function(e){return[e,t.xContentLanguage]})),[m.constants.CELL_DATA_KEY_PARENT_ID,m.constants.CELL_DATA_KEY_SUBSECTION]));return o()(n,(function(r,i){n[i]=r.map((function(n){var a=n,s=a[m.constants.CELL_DATA_KEY_ID];return a.has_section=a[m.constants.CELL_DATA_KEY_SUBSECTION]&&"link"!==a[m.constants.CELL_DATA_KEY_SUBSECTION].split(":")[0],a.normalized_title=String(a[m.constants.CELL_DATA_KEY_LABEL]).toLowerCase(),a.status_color=a[m.constants.CELL_DATA_KEY_CONTENT_STATUS]?Slickplan.helpers.getValue(t.xContentStatuses.find((function(t){return t.alias===a[m.constants.CELL_DATA_KEY_CONTENT_STATUS]})),"color"):null,a.childs="main"===i&&r.filter((function(t){return t[m.constants.CELL_DATA_KEY_PARENT_ID]===s})).length,a.breadcrumbs=t.xGetCellBreadcrumb(s),o()(e,(function(e,n){a[n]||(a[n]=e),n===m.constants.CELL_DATA_KEY_CONTENT_TEMPLATE&&(a.template_name=a[n]?Slickplan.helpers.getValue(t.xContentTemplateNames,a[n],e):e)})),a}))})),n},filteredPages:function(){var t=this.xContentFilters,e=Slickplan.helpers.objectCloneDeep(this.pages);if(this.hasSearch||this.hasFilters){var n=this.xGetServerTime(),r=t.assignee.map((function(t){return Number(t)}));o()(e,(function(i,o){e[o]=i.filter((function(e){return(!t.status.length||t.status.includes(e[m.constants.CELL_DATA_KEY_CONTENT_STATUS]||m.constants.CONTENT_STATUS_UNASSIGNED))&&("all"===t.type||e["".concat(m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,"_timestamp")]&&e["".concat(m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,"_timestamp")]<n)&&(!r.length||e[m.constants.CELL_DATA_KEY_CONTENT_ASSIGNEE].length&&Slickplan.helpers.arrayIntersection(e[m.constants.CELL_DATA_KEY_CONTENT_ASSIGNEE],r).length)&&(!t.search.length||t.search.every((function(t){return~e.normalized_title.indexOf(t)})))}))}))}return e},allFilteredPages:function(){return[].concat(this.filteredPages.home).concat(this.filteredPages.util).concat(this.filteredPages.main).concat(this.filteredPages.foot)},allSortedFilteredPages:function(){var t=this.allFilteredPages,e=y(this.sort,2),n=e[0],r=e[1];return n&&t.sort((function(t,e){var i="desc"===r?e:t,o="desc"===r?t:e;return"name"===n||i[n]===o[n]?i.normalized_title.localeCompare(o.normalized_title):i[n]?o[n]?"template_name"===n?i[n].localeCompare(o[n]):i[n]>o[n]?1:-1:"desc"===r?1:-1:"desc"===r?-1:1})),t},topLevelPages:function(){return this.hasSearch||this.hasFilters?this.allSortedFilteredPages:this.allSortedFilteredPages.filter((function(t){return!t[m.constants.CELL_DATA_KEY_PARENT_ID]}))},actionBarButtons:function(){var t=this.$root.userCan(m.permissionsProject.MODIFY_ASSIGNED_CONTENT_PAGES),e=[];return t&&this.xContentStatuses.length>1&&e.push({id:"status",icon:"clock",label:"Status"}),this.projectContributors.length&&this.$root.userCan(m.permissionsProject.MANAGE_CONTENT)&&e.push({id:"assignee",icon:"person",label:"Assign"}),t&&(e.push({id:"templates",icon:"components",label:"Template"}),e.push({id:"due",icon:"calendar",label:"Due date"})),e}}),methods:{calculateFiltersPosition:function(){var t=Math.floor(this.$refs.table.offsetWidth)-Math.ceil(this.$el.querySelector(".toolbar-search").offsetWidth)-30,e=0;this.$refs.filters.querySelectorAll(".ui-dropdown").forEach((function(t){e+=Math.ceil(t.offsetWidth)+20})),e>t?this.xContentFilters.bar_full||this.$store.commit("content/setFilter",{key:"bar_full",value:!0}):this.xContentFilters.bar_full&&this.$store.commit("content/setFilter",{key:"bar_full",value:!1})},getChildPages:function(t){return this.allSortedFilteredPages.filter((function(e){return e[m.constants.CELL_DATA_KEY_PARENT_ID]===t}))},filterChange:function(t,e){"section"===t?this.$store.commit("content/setCurrentSection",e):this.$store.commit("content/setFilter",{key:t,value:e}),this.$nextTick(this.calculateFiltersPosition)},resetFilters:function(){this.sort=[null,"asc"],this.$nextTick(this.calculateFiltersPosition)},openPopover:function(t,e){var n=this;this.$root.ifAllowedFeature(m.constants.FEATURE_CONTENT).then((function(){if("due"===e)return n.openDatepicker(t);var r,i,o={},a={},s=u.default;"status"===e?(s=d.default,o.submit=function(t){n.closePopover(),n.batchEditSubmit(e,m.constants.CELL_DATA_KEY_CONTENT_STATUS,t===m.constants.CONTENT_STATUS_UNASSIGNED?null:t)}):"templates"===e?((i=n.batchEditItems(n.xContentTemplates,"alias","name")).length?i.push({label:"Unassigned",value:"-"}):r="No templates to assign",o.submit=function(t){var r="-"===t?null:t;n.$popover.hide(),r&&n.xBarSelectedIds.some((function(t){var e=n.xGetCellData(t,m.constants.CELL_DATA_HAS_CONTENT);return e&&"object"===b(e)&&e[n.xContentLanguage]}))?n.$modal.showConfirm({title:"Confirm content replace",buttonLabel:"Assign",text:"All custom content will be removed when you assign a template."},(function(){return n.batchEditSubmit(e,m.constants.CELL_DATA_KEY_CONTENT_TEMPLATE,r)})):n.batchEditSubmit(e,m.constants.CELL_DATA_KEY_CONTENT_TEMPLATE,r)}):"assignee"===e&&(s=f.default,a.cancelLabel="Clear assignee",o.submit=function(t){n.$popover.hide(),n.batchEditSubmit(e,m.constants.CELL_DATA_KEY_CONTENT_ASSIGNEE,Array.isArray(t)&&t.length?t:null)},o.clear=function(){return o.submit()}),o.overlay=function(){return n.closePopover()},n.$popover.show({component:s,props:S({multiple:"assignee"===e,items:i,emptyMessage:r},a),options:{maxWidth:400},position:{of:t.target.querySelector(".nc-icon")},events:o})})).catch(_noop)},openDatepicker:function(t){var e=this;this.$popover.show({component:p.default,props:{calendars:1,singleDatePicker:!0,showRangeText:!1,dateRange:{startDate:s()(),endDate:s()()},cancelButtonLabel:"Clear due date",onCancel:function(){e.batchEditSubmit("due",m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE),e.closePopover()}},options:{width:252,height:303,className:"no-padding no-drp-border"},position:{of:t.target.querySelector(".nc-icon")},events:{overlay:function(){return e.closePopover()},update:function(t){s().isDayjs(t)&&e.batchEditSubmit("due",m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,t.format(m.constants.DATE_FORMAT_YMD),(function(){Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:e.xBarSelectedIds,key:m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,value:t.format(m.constants.DATE_FORMAT_LONG),language:e.xContentLanguage}),Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:e.xBarSelectedIds,key:"".concat(m.constants.CELL_DATA_KEY_CONTENT_DUE_DATE,"_timestamp"),value:t.unix(),language:e.xContentLanguage})}))}}})},closePopover:function(){this.$popover.hide()},batchEditSubmit:function(t,e,n,r){var i=this;this.currentSavingData=t;var o={type:"content",action:"batch_edit",meta:{key:e,data:n}};Slickplan.helpers.requestSingle((function(){var t=null==n?l.default.sitemapCell.massRemoveData({cell_id:i.xBarSelectedIds,keys:[e],language:i.xContentLanguage},o):l.default.sitemapCell.massSaveData({cell_id:i.xBarSelectedIds,key:e,data:n,language:i.xContentLanguage},o);return t.promise.then((function(){"function"==typeof r?r():n?Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:i.xBarSelectedIds,key:e,value:n,language:i.xContentLanguage}):Slickplan.websocket.storeDispatch("sitemapCell/removeData",{cell_id:i.xBarSelectedIds,keys:[e],language:i.xContentLanguage})})).catch(_noop).finally((function(){i.currentSavingData=null})),t}),t)},batchEditItems:function(t,e,n){var r=t.map((function(t){return{value:t[e],label:t[n]}}));return r.sort((function(t,e){return t.label.toLowerCase().localeCompare(e.label.toLowerCase())})),r},parseFilterName:function(t,e){if("language"===t)return e.split("(")[0];if("Main sitemap"===e)return"Main";var n=e;if("assignee"===t||"type"===t){var r=n.split(" ");n=y(r,1)[0]}return n.length>12?"".concat(n.substring(0,10),"..."):n}},watch:{searchQuery:function(t){this.filterChange("search",t||"")},xBarSelectedIds:function(t,e){var n=this;t.length&&!e.length?this.$store.commit("actionBar/set",{isVisible:!0,selectAll:function(){return n.allFilteredPages.map((function(t){return t.id}))}}):!t.length&&e.length&&this.$store.commit("actionBar/reset")}}}},86456:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(67944),a=n(51144),s=n(65056),l=n(14580),c=n(92704);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"content-templates",components:{"page-listing":o.default},mixins:[s.mixinProjectStatus,c.mixinTemplatesMethods,c.mixinContentGlobalComputed],provide:function(){return{onLoad:this.onLoad,itemsRows:this.itemsRows}},computed:f(f({},(0,r.mapState)({xBarSelectedIds:function(t){return t.actionBar.selected}})),{},{buttons:function(){return this.isProjectEditable?[{label:"Import templates",onClick:this.onImport},{label:"New template",onClick:this.onTemplateForm}]:[]},rowButtons:function(){return this.isProjectEditable&&this.isContentToolAvailable?[{id:1,icon:"clone",tooltip:"Clone",onClick:this.onTemplateForm},{id:2,icon:"edit",tooltip:"Edit",onClick:this.onTemplateClick},{id:3,icon:"trash",tooltip:"Delete",onClick:this.onTemplateDelete}]:[]},actionBarLinks:function(){var t=this;return this.isProjectEditable&&this.isContentToolAvailable?[{id:1,icon:"trash",label:"Delete",onClick:function(){return t.onTemplateDelete(t.xBarSelectedIds)}}]:[]}}),methods:{itemsRows:function(t){var e=this;return t.map((function(t){return{id:t.alias,columns:[{label:t.name,onClick:function(){return e.onTemplateClick(t.alias)}},{label:e.$plural("page",t.pages_count,!0),className:{"text-gray-darkest":0===t.pages_count}},{label:t.updated_at||""},{buttons:e.rowButtons}]}}))},onLoad:function(){var t=this,e=i.default.sitemap.getContentTemplates();return e.promise.then((function(e){t.$store.commit("content/setTemplates",e)})).catch(_noop),e},onImport:function(){var t=this;this.$root.ifAllowedFeature(l.constants.FEATURE_CONTENT).then((function(){t.$modal.show(a.default,{},{name:"templates",title:"Import templates",width:770})})).catch(_noop)}}}},4544:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var r=n(48416),i=n(71995),o=n(29036),a=n(85188),s=n(86180),l=n(30160),c=n(97152),u=n(14580),d=n(65056),f=n(92704);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b={name:"content-workflow",components:{"component-loading":s.default,"workflow-status-list":o.default,"link-help":l.default},mixins:[d.mixinProjectStatus,f.mixinContentGlobalComputed],provide:function(){return{onForm:this.onForm,onDelete:this.onDelete,onUpdateOrder:this.onUpdateOrder}},data:function(){return{reassign:!1,reassignTo:"",keysToDelete:[],globalWorkflows:[]}},computed:h(h({},(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses",xIsPageLoading:"core/isPageLoading"})),{},{allStatusIds:function(){return this.xContentStatuses.map((function(t){return t.alias})).filter((function(t){return t!==u.constants.CONTENT_STATUS_UNASSIGNED}))},statusesDropdown:function(){var t=this;return this.xContentStatuses.filter((function(e){return e.alias!==u.constants.CONTENT_STATUS_UNASSIGNED&&!t.keysToDelete.includes(e.alias)})).map((function(t){return{value:t.alias,label:t.name}}))}}),methods:{onForm:function(t,e){var n=this;this.$root.ifAllowedFeature(u.constants.FEATURE_CONTENT).then((function(){t="string"==typeof t?t:null,n.$modal.show(a.default,{statusId:t,statuses:n.xContentStatuses,clone:Boolean(t&&e)},{name:"workflow",title:t&&!e?"Edit status":"Add status"})})).catch(_noop)},onDelete:function(t){var e=this;this.$root.ifAllowedFeature(u.constants.FEATURE_CONTENT).then((function(){e.keysToDelete=[].concat(t),e.reassign=!1,e.reassignTo=e.statusesDropdown.length?e.statusesDropdown[0].value:"";var n=e.keysToDelete.map((function(t){return e.xContentStatuses.find((function(e){return e.alias===t})).name}));e.$modal.showConfirm({items:n,type:e.$plural("status",n.length)},(function(){var t=i.default.sitemap.deleteContentStatus({keys:e.keysToDelete,reassign:e.reassign&&e.reassignTo?e.reassignTo:null});return t.promise.then((function(t){Slickplan.websocket.storeDispatch("sitemapCell/updateDataWhere",{key:[u.constants.CELL_DATA_KEY_CONTENT_STATUS,"*"],value:t.keys,set:!(!e.reassign||!e.reassignTo)&&e.reassignTo}),t&&t.keys&&(Slickplan.websocket.storeDispatch("sitemap/deleteContentStatus",t.keys),e.$store.commit("actionBar/reset"))})),t}))})).catch(_noop)},onUpdateOrder:function(t){Slickplan.helpers.requestSingle((function(){var e=i.default.sitemap.updateContentStatusOrder(t);return e.promise.then((function(t){Slickplan.websocket.storeCommit("sitemap/updateContentStatusOrder",t)})),e}),this.$options.name)},onImportGlobal:function(){this.$modal.show(c.default,{buttonLabel:"Import",inputs:[{id:"id",placeholder:"Select workflow",type:"select",options:this.globalWorkflows,optionLabel:"name",optionValue:"id"}],html:'<div class="text-red mb-5">Warning! Import will overwrite your current workflow.</div>',form:{action:function(t){var e=t.id;return i.default.sitemap.importGlobalWorkflow(e)},success:function(t){t&&t.workflow&&(Slickplan.websocket.storeCommit("sitemap/clearWorkflow"),t.workflow.forEach((function(t){Slickplan.websocket.storeDispatch("sitemap/setContentStatus",t)})))}}},{name:"confirm",title:"Import workflow template"})}},created:function(){var t=this;this.$store.dispatch("core/setLoading",!0),Slickplan.helpers.requestSingle((function(){var e=i.default.account.getGlobalWorkflows();return e.promise.then((function(e){t.globalWorkflows=e.map((function(t){return{id:t.id,name:t.name}}))})).finally((function(){t.$store.dispatch("core/setLoading",!1)})),e}),this.$options.name)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},83672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(71995),o=n(26908),a=n(96424),s=n(82552),l=n(14580);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=null;const v={name:"dashboard",components:{"dashboard-filters":a.default,"projects-listing":s.default},provide:function(){return{createProject:this.createProject}},pageWrapper:null,data:function(){return{lazyLoad:!1}},computed:p(p(p({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xProjects:function(t){return t.dashboard.projects},xProjectsPerPage:function(t){return t.dashboard.projectsPerPage},xProjectsToDisplay:function(t){return t.dashboard.projectsToDisplay}})),(0,r.mapGetters)({xHasFilters:"dashboard/hasFilters",xFilters:"dashboard/getFilters",xProjectsFiltered:"dashboard/filteredProjects"})),{},{projectsCount:function(){return Object.keys(this.xProjects).length},canCreateProjects:function(){return this.$root.userCan(l.permissionsAccount.CREATE_SITEMAPS)},hasFiltersNoResults:function(){return!this.xProjectsFiltered.length&&this.xHasFilters&&this.projectsCount}}),methods:p(p({},(0,r.mapActions)({xLoadDashboardProjects:"dashboard/loadProjects",xResetFilters:"dashboard/resetFilters",xSetTeam:"team/set",xIncreaseProjectsToDisplay:"dashboard/increaseProjectsToDisplay"})),{},{handleScroll:function(t){var e=this;!this.lazyLoad&&this.xProjectsPerPage>0&&this.xProjectsFiltered.length>this.xProjectsToDisplay&&Math.floor(t.target.scrollHeight-t.target.scrollTop-10)<=t.target.offsetHeight&&(this.lazyLoad=setTimeout((function(){e.xIncreaseProjectsToDisplay(),e.lazyLoad=!1}),Math.floor(750*Math.random())))},createProject:function(){this.canCreateProjects?this.$modal.show(o.default,null,{closeButton:!1,width:650}):this.$notify({type:"warning",text:this.$trans("errors.create_project_permission"),note:this.$trans("messages.contact_owner_for_permissions")})}}),created:function(){this.$store.dispatch("core/setMetaTitle",this.$trans("titles.dashboard"));var t=h,e=t.team,n=t.projects;e&&this.xSetTeam(e),n&&this.xLoadDashboardProjects(n)},mounted:function(){var t=this,e=this.$el.closest(".page-wrapper");e&&(e.addEventListener("scroll",this.handleScroll),this.$options.pageWrapper=e),this.$nextTick((function(){if(!t.$root.isSuspendedEmailActivation){var e=null,n=Slickplan.constants.IMPORTED_TEMPLATE;if(n&&n.project&&(e=document.getElementById("project-".concat(n.project))),e&&t.projectsCount){var r=e.querySelector(".column-name .label .name"),i="content"===n.type?"Here’s your template!":"Here’s your first template!";Slickplan.helpers.onboard(r,["👋🏻&nbsp;&nbsp;&nbsp;".concat(i),"You will find it inside. Open the project to edit your ".concat(n.type,".")],["below","right"],{buttons:[{label:"Edit ".concat(n.type),onClick:function(){return r.click()}}]})}else t.projectsCount||Slickplan.helpers.onboard(t.$refs.createButton,["👋🏻&nbsp;&nbsp;&nbsp;Create your first project!","Explore what you can do within a project and all the features Slickplan has to offer."],["below","left"])}}))},beforeDestroy:function(){this.$options.pageWrapper&&this.$options.pageWrapper.removeEventListener("scroll",this.handleScroll),Slickplan.helpers.onboard(!1)},beforeRouteEnter:function(t,e,n){Promise.all([i.default.project.getProjects().promise,i.default.team.getUsersList().promise]).then((function(t){var e=u(t,2),r=e[0],i=e[1];h={projects:r,team:i},n((function(){h=null}))}))}}},43044:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(2376),o=n.n(i),a=n(18088),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"dashboard-filters",components:{"buttons-view":a.default},computed:u(u(u({},(0,r.mapState)({xFilters:function(t){return t.dashboard.filter}})),(0,r.mapGetters)({xHasFilters:"dashboard/hasFilters"})),{},{availableFilters:function(){return{type:{label:this.$trans("show"),filters:{all:this.$trans("all_projects"),sitemap:"Site Planning",diagram:"Diagram"}},sort:{label:this.$trans("sort_by"),filters:{"timestamp-desc":"Recent","timestamp-asc":"Oldest","title-asc":"Name A-Z","title-desc":"Name Z-A"}},status:{label:this.$trans("status"),filters:d(d(d({},s.constants.STATUS_ACTIVE,this.$trans("active")),s.constants.STATUS_ARCHIVED,this.$trans("archived")),s.constants.STATUS_LOCKED,"Locked")}}}}),methods:u(u({},(0,r.mapActions)({xResetFilters:"dashboard/resetFilters",xSetFilters:"dashboard/setFilters"})),{},{filterChange:function(t,e){this.xSetFilters({key:t,value:e})},setSearchFieldValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];document.getElementById("field-filter-search").value=t,e&&this.filterChange("search",t)}}),mounted:function(){var t=this;this.$route.query&&Object.keys(this.$route.query).length&&o()(this.$route.query,(function(e,n){t.xSetFilters({key:n,value:e}),"search"===n&&e&&t.setSearchFieldValue(e)}))}}},18292:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(27672),o=n(49998),a=n(6580),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"dashboard-projects-listing",components:{"buttons-list":i.default,"user-avatars":a.default},inject:["deleteProject","deleteRequest"],props:{project:{type:Object,required:!0}},data:function(){return{isHovering:!1}},computed:u(u(u({},(0,r.mapState)({xFilters:function(t){return t.dashboard.filter},xAccountData:function(t){return t.user.user},xBarSelectedIds:function(t){return t.actionBar.selected}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData"})),{},{defaultLogo:function(){return"/images/tool-".concat(this.project.type,"-logo.png")},isSelected:function(){var t=this;return!!this.xBarSelectedIds.length&&("sitemap"===this.project.type?this.xBarSelectedIds.some((function(e){return t.project.versions.find((function(t){return t.alias===e}))})):this.xBarSelectedIds.includes(this.project.alias))},isAvailableOnPlan:function(){return"sitemap"===this.project.type||this.$root.isAllowedFeature(s.constants.FEATURE_STANDALONE_DIAGRAMS)},canLockProject:function(){return"archived"!==this.project.status},projectButtons:function(){var t=[];if("archived"!==this.project.status&&this.isAvailableOnPlan&&t.push({id:"share",icon:"share",tooltip:this.$trans("share"),onClick:this.shareProject}),this.canLockProject){var e="locked"===this.project.status,n=e?"unlock":"lock";t.push({id:n,icon:e?"lock-open":"lock",tooltip:this.$trans(n),onClick:this.updateLockStatus})}if(this.$parent.canCreateProjects){var r="archived"===this.project.status?"archived":"unarchived";t.push({id:r,icon:"archived"===this.project.status?"pulse":"archive",tooltip:this.$trans("archived"===r?"activate":"archive"),onClick:this.updateArchiveStatus})}return"active"===this.project.status&&this.isAvailableOnPlan&&t.push({id:"edit",icon:"edit",tooltip:this.$trans("edit"),onClick:this.editProject}),this.$root.userCan(s.permissionsAccount.CREATE_SITEMAPS)&&t.push({id:"delete",icon:"trash",tooltip:this.$trans("delete"),onClick:this.deleteThisProject}),t}}),methods:u(u({},(0,r.mapActions)({xUpdateDashboardProject:"dashboard/updateProject",xSwitchDashboardProjectVersion:"dashboard/switchVersion"})),{},{onVersionSelect:function(t){this.xSwitchDashboardProjectVersion({from:this.project.alias,to:t})},shareProject:function(){this.$modal.show(o.default,{project:this.project,type:"simple"},{name:"share",title:this.$trans("share_".concat(this.project.type)),width:450})},rowSelected:function(){this.isAvailableOnPlan&&(this.isSelected?"sitemap"===this.project.type?this.$store.commit("actionBar/deselect",this.project.versions.map((function(t){return t.alias}))):this.$store.commit("actionBar/deselect",this.project.alias):this.$store.commit("actionBar/select",this.project.alias))},editProject:function(){"archived"!==this.project.status&&("diagram"===this.project.type?this.$root.ifAllowedFeatureThen(s.constants.FEATURE_STANDALONE_DIAGRAMS,this.navigateToProject):this.navigateToProject())},updateStatus:function(t){return this.$parent.updateProjectsStatus([this.project.alias],t,this.project.status!==t)},updateLockStatus:function(){return this.updateStatus("locked")},updateArchiveStatus:function(){return this.updateStatus("archived")},deleteThisProject:function(){this.deleteProject(this.project)},navigateToProject:function(){var t={},e=Slickplan.constants.IMPORTED_TEMPLATE;e&&e.project===this.project.alias&&e.cell_id&&(t.template_content=e.cell_id),Slickplan.helpers.navigateTo(this.$router.resolve({name:this.project.type,params:d({},this.project.type,this.project.alias),query:t}).href,!0)}})}},67344:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(2376),o=n.n(i),a=n(71995),s=n(62200),l=n(72976),c=n(25204),u=n(14580);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"dashboard-projects-listing",components:{"listing-item":s.default},provide:function(){return{deleteProject:this.deleteProject,deleteRequest:this.deleteRequest}},inject:["createProject"],props:{isLoading:!1},computed:p(p(p({},(0,r.mapState)({xTeam:function(t){return t.team.team},xAccountData:function(t){return t.user.user},xProjects:function(t){return t.dashboard.projects},xFilters:function(t){return t.dashboard.filter},xProjectsToDisplay:function(t){return t.dashboard.projectsToDisplay},xBarIsVisible:function(t){return t.actionBar.isVisible},xBarSelectedIds:function(t){return t.actionBar.selected}})),(0,r.mapGetters)({xProjectsFiltered:"dashboard/filteredProjects"})),{},{filteredProjects:function(){return this.xProjectsFiltered.length>this.xProjectsToDisplay?this.xProjectsFiltered.slice(0,this.xProjectsToDisplay):this.xProjectsFiltered},filteredSelectedProjects:function(){var t=this.xProjectsFiltered.map((function(t){return t.alias}));return this.xBarSelectedIds.filter((function(e){return t.includes(e)}))},containerClass:function(){return"projects-listing-".concat(this.xFilters.view)},blocksFill:function(){if("grid"===this.xFilters.view){var t=this.xProjectsFiltered.length+(this.isLoading?2:1);return 4*Math.ceil(t/4)-t}return[]},actionBarButtons:function(){var t=this,e=[],n=this.filteredSelectedProjects.length;if(!n)return e;if(n>1&&this.$root.userCan(u.permissionsAccount.MANAGE_TEAM)){var r=this.xTeam.filter((function(t){return t.is_active&&t.type===u.constants.USER_TYPE_CONTRIBUTOR}));r&&r.length&&e.push({id:4,icon:"person",label:"Assign",onClick:function(e){t.$popover.show({component:c.default,props:{multiple:!0,users:r,cancelLabel:"Cancel",submitLabel:"Add"},options:{maxWidth:400},position:{of:e.target.querySelector(".nc-icon")},events:{submit:function(e){a.default.project.massAssignContributors(t.filteredSelectedProjects,e).promise.then((function(e){Array.isArray(e)&&e.forEach((function(e){t.$store.dispatch("dashboard/updateProjectContributors",e)}))})).catch(Slickplan.catchAll),t.$popover.hide()},clear:function(){t.$popover.hide()}}})}})}return"active"===this.xFilters.status?e.push({id:1,icon:"archive",label:"Archive",onClick:function(){return t.updateProjectsStatus(t.filteredSelectedProjects,"archived",!0)}}):e.push({id:2,icon:"pulse",label:"Activate",onClick:function(){return t.updateProjectsStatus(t.filteredSelectedProjects,"archived",!1)}}),this.$root.userCan(u.permissionsAccount.CREATE_SITEMAPS)&&e.push({id:3,icon:"trash",label:"Delete",onClick:this.deleteSelected}),e},canCreateProjects:function(){return this.$root.userCan(u.permissionsAccount.CREATE_SITEMAPS)}}),methods:p(p({},(0,r.mapActions)({xUpdateDashboardProject:"dashboard/updateProject",xLoadDashboardProjects:"dashboard/loadProjects"})),{},{deleteSelected:function(){for(var t,e=this,n=[],r=function(t){var r=e.xProjectsFiltered.find((function(n){return n.alias===e.filteredSelectedProjects[t]}));if(1===o)return{v:e.deleteProject(r)};r&&e.xProjects[e.filteredSelectedProjects[t]]&&(r.versions?r.versions.forEach((function(t){n.push(t.alias)})):n.push(r.alias))},i=0,o=this.filteredSelectedProjects.length;i<o;++i)if(t=r(i))return t.v;return this.deleteProjects(n)},deleteProject:function(t){"sitemap"===t.type&&t.versions.length>1?this.$modal.show(l.default,{sitemap:t.title,versions:t.versions,callback:this.deleteRequest},{name:"confirm",title:this.$trans("confirm_deletion"),width:450}):this.deleteProjects([t.alias])},deleteProjects:function(t){var e=this,n=[];t.forEach((function(t){var r=e.xProjectsFiltered.find((function(e){return e.alias===t})),i=r?e.xProjects[t]:null;r&&i&&n.push(i.title)})),this.$modal.showConfirm({items:n.sort((function(t,e){return t.localeCompare(e)})),type:this.$trans("projects",n.length),htmlAppend:t.length>n.length?this.$trans("messages.delete_multiple_versions"):""},(function(){return e.deleteRequest(t)}))},deleteRequest:function(t){var e=this,n=a.default.project.delete(t);return n.promise.then((function(t){t&&e.xLoadDashboardProjects(t),e.$store.commit("actionBar/reset")})),n},updateProjectsStatus:function(t,e,n){var r=this,i=a.default.project.setStatus(t,e,n);return i.promise.then((function(t){t&&t.updated&&o()(t.updated,(function(t,e){r.xUpdateDashboardProject({alias:e,data:t})})),r.$store.commit("actionBar/reset")})),i}}),watch:{actionBarButtons:function(t){this.xBarIsVisible&&this.$store.commit("actionBar/update",{buttons:t})},xBarSelectedIds:function(t,e){var n=this;t.length&&!e.length?this.$store.commit("actionBar/set",{isVisible:!0,buttons:this.actionBarButtons,selectAll:function(){return n.xProjectsFiltered.map((function(t){return t.alias}))}}):!t.length&&e.length&&this.$store.commit("actionBar/reset")}}}},78404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r,i=n(48416),o=n(71995),a=n(45780),s=n(33229),l=n(14580);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"diagram-shared",components:{"project-header":a.default,"diagram-header":s.default},computed:p(p({},(0,i.mapState)({xWindowSize:function(t){return t.core.windowSize},xPanelVisible:function(t){return t.panel.visible},xPanelVisibleStatus:function(t){return t.panel.visibleStatus}})),{},{projectWidth:function(){return this.xWindowSize.width-(this.xPanelVisible&&"visible"===this.xPanelVisibleStatus?l.constants.DEFAULT_PANEL_WIDTH:0)},projectHeight:function(){return this.xWindowSize.scrollableHeight}}),watch:{projectWidth:function(t,e){t!==e&&this.$store.commit("project/setContainerSize",{width:t})},projectHeight:function(t,e){t!==e&&this.$store.commit("project/setContainerSize",{height:t})}},beforeRouteEnter:function(t,e,n){Promise.all([o.default.diagram.getDetails(t.params.diagram,null,!1).promise,o.default.team.getUsersList().promise]).then((function(t){var e=u(t,2),i=e[0],o=e[1];r={diagram:i,team:o},n((function(){r=null}))})).catch(_noop)},created:function(){this.$store.commit("project/setCurrentProjectType",{project:"diagram",sitemap:!1,diagram:!0,content:!1,mockup:!1});var t=r,e=t.team,n=t.diagram;this.$store.dispatch("team/set",e),n.status=l.constants.STATUS_SHARED,this.$store.commit("diagram/add",n),this.$store.commit("diagram/setCurrent",n.alias),this.$store.commit("diagram/setWorkflow",n.workflow||[]),this.$store.commit("diagramItem/processElement",n.elements||[]),this.$store.commit("diagramItem/processConnector",n.connections||[]),this.$store.commit("diagramItemData/load",n.items_data||{}),n.contributors&&this.$store.dispatch("project/setContributors",n.contributors),this.$store.commit("comments/setCounter",{type:l.constants.COMMENTS_TYPE_DIAGRAM,id:n.alias,total:n.comments}),this.$store.commit("project/setHeaderVisibility",72),this.$store.dispatch("core/setMetaTitle",this.$trans("titles.diagram",{title:n.title||n.name}))}}},42080:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(71995),o=n(48728),a=n(66512),s=n(86180),l=n(68044),c=n(70992);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"diagram-dashboard",components:{"component-loading":s.default,"diagrams-listing":a.default,"diagrams-empty":l.default},mixins:[c.mixinCurrentCellDiagramsMethods],provide:function(){return{onLoad:this.onLoad,onDiagramOpen:this.onDiagramOpen,onDiagramForm:this.onDiagramForm}},computed:f(f({},(0,r.mapState)({xOnboard:function(t){return t.core.onboard}})),(0,r.mapGetters)({xDiagramsList:"diagram/getList",xIsPageLoading:"core/isPageLoading"})),methods:{onLoad:function(){var t=this;this.$store.dispatch("project/loadPredefinedTemplates");var e=i.default.sitemap.getDiagramsList(null,!0,!0);return e.promise.then((function(e){e&&Array.isArray(e)&&e.forEach((function(e){t.$store.commit("diagram/add",e)}))})).catch(_noop).finally(this.onboard),e},onboard:function(){this.xOnboard.includes("diagram")&&this.$modal.show(o.default,{type:"diagram"},{width:550,closeButton:!1})}},mounted:function(){var t=this;this.$store.dispatch("core/setLoading",!0),Slickplan.helpers.requestSingle((function(){var e=t.onLoad();return e.promise.finally((function(){t.$store.dispatch("core/setLoading",!1)})),e}),this.$options.name)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},65568:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(1e3),i=n(17676),o=n(22916),a=n(57868),s=n(28906),l=n(65056);const c={name:"diagram-helper",components:{"diagram-batch-edit":r.default,"diagram-sidebar":i.default,"project-toolbar":o.default,"websocket-chat":a.default,panel:s.default},mixins:[l.mixinProjectStatus]}},62832:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(14580),o=n(65056),a=n(70992),s=n(49998);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"diagram-buttons",mixins:[o.mixinProjectStatus,a.mixinCurrentCellDiagramsMethods],inject:["onLoad"],props:{diagram:{type:Object,required:!0}},computed:u(u({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details}})),{},{isToolAvailable:function(){return this.$root.isAllowedFeature(i.constants.FEATURE_CELL_DIAGRAMS)},buttons:function(){var t=this;if(!this.isToolAvailable)return[];var e=this.diagram.alias,n=[{icon:"eye",tooltip:"Open",onClick:function(){return t.onDiagramOpen(e)}},{icon:"share",tooltip:"Share",onClick:this.onShareClick}];return this.isProjectEditable&&this.$root.userCan(i.permissionsProject.MANAGE_DIAGRAMS)&&n.push({icon:"trash",tooltip:"Delete",onClick:function(){return t.onDiagramDelete(e,t.onLoad)}}),n},projectShareLink:function(){return Slickplan.helpers.getLink("".concat(this.xSitemapData.alias,"/diagram/").concat(this.diagram.alias),!0)}}),methods:{onShareClick:function(){var t=this.diagram.title;this.$modal.show(s.default,{type:"normal",project:this.xSitemapData,link:this.projectShareLink,titleAppend:t,subject:"".concat(this.xSitemapData.title," > ").concat(t),text:this.$trans("messages.share_message_html",{type:"diagram",title:t,url:this.projectShareLink})},{name:"share",title:"Share diagram",width:550,titleClassName:"no-border"})}}}},24856:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(30160),o=n(65056),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"diagram-empty",components:{"link-help":i.default},mixins:[o.mixinProjectStatus],inject:["onDiagramForm"],computed:c(c({},(0,r.mapState)({xSitemapCells:function(t){return t.sitemapCell.cells}})),{},{buttons:function(){var t=this;return this.isProjectEditable&&this.$root.userCan(a.permissionsProject.MANAGE_DIAGRAMS)?this.xSitemapCells.length?[{label:"Upload diagram",onClick:function(){return t.onDiagramForm("upload")}},{label:"New diagram",onClick:function(){return t.onDiagramForm()}}]:[{label:"Add Pages",onClick:function(){return t.$root.routeSwitchTool("sitemap")}}]:[]}})}},29340:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(6580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"diagrams-listing-grid",components:{DiagramButtons:n(51042).default,UserAvatars:i.default},inject:["onDiagramOpen"],computed:s(s(s({},(0,r.mapState)({xFilters:function(t){return t.diagram.filters},xSitemapData:function(t){return t.sitemap.details}})),(0,r.mapGetters)({xFilteredSortedDiagrams:"diagram/getFilteredSortedDiagrams",xDiagramWorkflow:"diagram/getWorkflowStatuses",xGetTeamMemberData:"team/getData"})),{},{workflowStatuses:function(){return Slickplan.helpers.arrayToKeyValue(this.xDiagramWorkflow,"alias",null)},avatarsLimit:function(){return this.xFilters.columns>4?5:this.xFilters.columns>3?7:11}})}},61664:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(65056),o=n(70992),a=n(61412),s=n(11072),l=n(7356),c=n(14580);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"diagrams-listing",components:{"filters-bar":l.default,"listing-grid":a.default,"listing-list":s.default},mixins:[i.mixinProjectStatus,o.mixinCurrentCellDiagrams,o.mixinCurrentCellDiagramsMethods],computed:m(m(m({},(0,r.mapState)({xFilters:function(t){return t.diagram.filters},xSitemapCells:function(t){return t.sitemapCell.cells}})),(0,r.mapGetters)({xDiagramsList:"diagram/getList"})),{},{filtersData:function(){return{statuses:d(new Set(this.xDiagramsList.map((function(t){return t.workflow_status})).filter((function(t){return t}))))}},buttons:function(){var t=this;return this.isProjectEditable&&this.xSitemapCells.length&&this.$root.userCan(c.permissionsProject.MANAGE_DIAGRAMS)?[{label:"Upload diagram",onClick:function(){return t.onDiagramForm("upload")}},{label:"+ New diagram",onClick:function(){return t.onDiagramForm()}}]:[]}})}},28120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416),i=n(6580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"diagrams-listing-list",components:{DiagramButtons:n(51042).default,UserAvatars:i.default},inject:["onDiagramOpen"],computed:s(s(s({},(0,r.mapState)({xFilters:function(t){return t.diagram.filters},xSitemapData:function(t){return t.sitemap.details}})),(0,r.mapGetters)({xFilteredSortedDiagrams:"diagram/getFilteredSortedDiagrams",xDiagramWorkflow:"diagram/getWorkflowStatuses",xGetTeamMemberData:"team/getData"})),{},{workflowStatuses:function(){return Slickplan.helpers.arrayToKeyValue(this.xDiagramWorkflow,"alias",null)}})}},42564:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(71995),o=n(86180),a=n(92764),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"diagram-diagram",components:{"component-loading":o.default,"diagram-structure":a.default},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),methods:{load:function(){var t=this;this.$store.dispatch("core/setLoading",!0),this.$store.commit("diagram/setCurrent"),Slickplan.helpers.requestSingle((function(){return i.default.diagram.getDetails(t.$route.params.diagram,t.$route.params.sitemap).promise.then((function(e){/shared/.test(t.$route.name)&&(e.status=s.constants.STATUS_SHARED),t.$store.commit("diagram/add",e),t.$store.commit("diagram/setCurrent",e.alias),t.$store.commit("diagramItem/cleanLoad",{elements:e.elements||[],connectors:e.connections||[]}),t.$store.commit("diagramItemData/clean"),t.$store.commit("diagramItemData/load",e.items_data||{}),t.$store.commit("comments/setCounter",{type:s.constants.COMMENTS_TYPE_DIAGRAM,id:e.alias,total:e.comments}),t.$store.dispatch("core/setLoading",!1)})).catch(_noop)}),this.$options.name)}},watch:{"$route.params.diagram":function(){this.load()}},created:function(){this.load()},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},12520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>x});var r=n(48416),i=n(76772),o=n(11952),a=n(12568),s=n(48728),l=n(14580),c=n(22164),u=n(66404),d=n(9736),f=n(52728),p=n(69988),m=n(71995),h=n(42456);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function b(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){k(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e,n){var r;return r=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==v(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const x={name:"diagram-structure",components:{"diagram-connector":i.default,"diagram-element":o.default,"diagram-swimlane":a.default,"floating-pins":p.default,"floating-comments":d.default,"floating-comment-introduction":f.default},mixins:[u.mixinFloatingComments,h.mixinSpaceGrab],toolbarHeight:55,mouseEventData:{},ghostRect:null,magnetizedTimer:null,mounts:!1,wsRoom:null,scrollableEl:null,data:function(){return{commentsType:l.constants.COMMENTS_TYPE_DIAGRAM}},computed:C(C(C({},(0,r.mapState)({xSelectedItems:function(t){return t.diagramItem.selectedItems},xSelectedItemsType:function(t){return t.diagramItem.selectedItemsType},xDiagramGhostSelect:function(t){return t.diagram.ghostSelect},xDiagramConnectors:function(t){return t.diagramItem.connectors},xDiagramStandaloneConnectors:function(t){return t.diagramItem.standaloneConnectors},xDiagramConnectorsColors:function(t){return t.diagramItemData.connectorsColors},xScrollableContainerSize:function(t){return t.project.containerSize},xWindowSize:function(t){return t.core.windowSize},xProjectHeaderHeight:function(t){return t.project.headerHeight},xOnboard:function(t){return t.core.onboard},xDiagramGrid:function(t){return t.diagram.grid},xDiagramScale:function(t){return t.diagram.scale},xDiagramMode:function(t){return t.diagram.mode},xIsMockupVisible:function(t){return t.mockup.isPreviewVisible}})),(0,r.mapGetters)({xDiagramElements:"diagramItem/sortedElements",xGetConnectorData:"diagramItem/getConnectorData",xGetElementData:"diagramItem/getElementData",xGetElementDataArray:"diagramItemData/getItemDataArray",xCurrentDiagramData:"diagram/getCurrentData"})),{},{isCommentMode:function(){return"comment"===this.xDiagramMode[0]&&(this.isStandaloneDiagram||!this.xIsMockupVisible)},floatingCommentId:function(){var t;return!(!this.isCommentMode||!this.isFloatingCommentVisible)&&(!!this.commentIntroduce||((null===(t=this.pin)||void 0===t?void 0:t.refId)||!1))},loadedComments:function(){return this.xComments.filter((function(t){return!t.parent_id&&!t.resolved_at}))},commentPins:function(){var t=this;if(!this.isCommentMode||this.isPanelSliding)return[];var e=[];return this.loadedComments.map((function(n){var r=n.coords,i=y(n.coords.split(":").map((function(t){return parseInt(t,10)})),2),o=i[0],a=i[1];return e.push(r),{x:Math.round(o*t.xDiagramScale)+t.workareaMargins[3]-24,y:Math.round(a*t.xDiagramScale)+t.workareaMargins[0]-24,origX:o,origY:a,id:n.id,user_id:n.user_id,guest_data:null==n?void 0:n.guest_data}}))},diagramElements:function(){var t=this;return this.xDiagramElements.map((function(e){var n=t.xGetElementData(e);return{id:e,component:n&&l.diagramElementsSwimlanes.includes(n.type)?"diagram-swimlane":"diagram-element"}}))},workareaMargins:function(){if(this.isProjectShared){var t=l.diagramStructure.workareaMargins[4];return this.isStandaloneDiagram?[t,t,t,t]:[this.$options.toolbarHeight+t,t,t,t]}return l.diagramStructure.workareaMargins},grid:function(){var t=20*this.xDiagramScale;return{size:t,width:t,points:"0,".concat(t," ").concat(t,",").concat(t," ").concat(t,",0")}},gWrapperAttrs:function(){return{id:"diagram-items",transform:"matrix(".concat(this.xDiagramScale," 0 0 ").concat(this.xDiagramScale," ").concat(this.workareaMargins[3]," ").concat(this.workareaMargins[0],")"),class:this.isCommentMode?"non-editable":null,"pointer-events":this.isSpaceGrabbing?"none":null}},svgContainerStyleAttr:function(){var t=Math.floor(this.xCurrentDiagramData.bbox.width*this.xDiagramScale+this.xCurrentDiagramData.bbox.x+this.workareaMargins[1]+this.workareaMargins[3]),e=Math.floor(this.xCurrentDiagramData.bbox.height*this.xDiagramScale+this.xCurrentDiagramData.bbox.y+this.workareaMargins[0]+this.workareaMargins[2]);return{width:"".concat(Math.max(t,this.xScrollableContainerSize.width),"px"),height:"".concat(Math.max(e,this.xScrollableContainerSize.height),"px"),cursor:this.isSpaceGrabbing?"grab":this.isGrabbing?"grabbing":null}},svgContainerClassAttr:function(){return{"cursor-comment":this.isCommentMode&&this.canWriteComments&&!this.isSpaceGrabbing&&!this.isGrabbing}},markersList:function(){var t=[],e=b(new Set([l.diagramStructure.colorNormal.substring(1),l.diagramStructure.colorActive.substring(1)].concat(this.xDiagramConnectorsColors)));return Object.values(l.diagramConnectors.markers).forEach((function(n){n.svg&&e.forEach((function(e){var r=Slickplan.helpers.objectCloneDeep(n.svg);r.id+="-".concat(e),["fill","stroke"].forEach((function(t){"boolean"==typeof r.attrs[t]&&(r.attrs[t]=r.attrs[t]?"#".concat(e):"none")})),t.push(r)}))})),t.push({id:"double",width:3,height:3,x:.5,y:1.5,type:"rect",attrs:{width:3,height:3,fill:"#f7f7f9","stroke-width":"0"}}),t},pinCoords:function(){return this.pin.visible?[this.pin.x*this.xDiagramScale+this.workareaMargins[3]-24,this.pin.y*this.xDiagramScale+this.workareaMargins[0]-24]:null}}),methods:{onMouseDownComment:function(t){var e;if(!(!this.isCommentMode||this.isFloatingCommentVisible&&this.pin.hasContent)){var n=this.isPinElement(t.target)?parseInt(null===(e=t.target.dataset)||void 0===e?void 0:e.id,10):null;if(!this.isFloatingCommentVisible||n>0&&this.pin.id!==n&&!this.pin.hasContent){var r=document.getElementById("diagram-svg"),i=Slickplan.helpers.getMousePositionSvg(t,r,this.xDiagramScale);if(this.$options.mouseEventData={x:i.x,y:i.y,svg:r,relative:[],moved:!1},n>0){var o=this.loadedComments.find((function(t){return t.id===n}));if(o){var a=y(o.coords.split(":").map((function(t){return parseInt(t,10)})),2),s=a[0],l=a[1];this.$options.mouseEventData.pin={id:n,x:s,y:l},document.addEventListener("mousemove",this.onMouseMove)}}document.addEventListener("mouseup",this.onMouseUp)}else this.isFloatingCommentVisible&&(t.target instanceof SVGElement||"diagram-structure"===t.target.id)&&(this.$options.mouseEventData.moved=!1,this.onMouseUp())}},onMouseDown:function(t){if(this.isSpaceGrabbing){var e=this.$options.scrollableEl,n=e.scrollTop,r=e.scrollLeft;this.$options.mouseEventData={moved:!1,clientX:t.clientX,clientY:t.clientY,scrollTop:n,scrollLeft:r}}else if(!this.isCommentMode){var i=document.getElementById("diagram-svg"),o=Slickplan.helpers.getMousePositionSvg(t,i);this.$options.mouseEventData={x:o.x,y:o.y,svg:i,relative:document.querySelectorAll("#diagram-connectors, #diagram-elements"),moved:!1};var a=void 0!==i.getEnclosureList?"getEnclosureList":void 0!==i.getIntersectionList?"getIntersectionList":null;a&&(this.$options.mouseEventData.svgFunc=a)}this.$options.mouseEventData&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),this.$store.commit("diagramItem/deselectAll"))},onMouseMove:function(t){var e=this,n=this.$options.mouseEventData;if(this.isSpaceGrabbing){this.isGrabbing||(this.isGrabbing=!0,this.$options.mouseEventData.moved=!0);var r=n.clientX,i=n.clientY,o=n.scrollTop,a=n.scrollLeft;this.$options.scrollableEl.scrollTo(a+(r-t.clientX),o+(i-t.clientY))}else{c.EventBus.$on("keypress-escape",this.onMouseUp);var s=Slickplan.helpers.getMousePositionSvg(t,n.svg,this.isCommentMode?this.xDiagramScale:1),l=Math.abs(s.x-n.x),u=Math.abs(s.y-n.y),d=s.x<n.x,f=s.y<n.y;if(this.isCommentMode&&this.isProjectEditable){var p=n.pin;return!n.moved&&(l>2||u>2)&&(this.isGrabbing=!0,this.$options.mouseEventData.moved=!0),void(p&&this.$options.mouseEventData.moved&&(p.coords=[p.x+(d?-l:l),p.y+(f?-u:u)].map((function(t){return parseInt(t,10)})),this.$store.commit("comments/updateComments",{id:p.id,coords:p.coords.join(":")})))}this.xDiagramGhostSelect.visible||(this.$options.ghostRect=n.svg.createSVGRect(),this.$options.ghostRect["pointer-events"]="fill",n.lastStack=[],this.$store.commit("diagram/showGhostSelect"));var m={},h=[];m.x=n.x,m.y=n.y,d&&(m.x-=l),f&&(m.y-=u),m.width=l,m.height=u,this.$store.commit("diagram/showGhostSelect",m),["x","y","width","height"].forEach((function(t){e.$options.ghostRect[t]=m[t]})),n.relative.forEach((function(t){var r=n.svg[n.svgFunc](e.$options.ghostRect,t);r.length&&r.forEach((function(n){n.parentNode.parentNode.id!==t.id||"diagram-connectors"===t.id&&!e.xDiagramStandaloneConnectors.includes(n.parentNode.id)||h.push(n.parentNode.id)}))})),(n.lastStack.length!==h.length||Slickplan.helpers.arrayDiffBoth(n.lastStack,h).length)&&(n.lastStack=h.slice(0),this.$store.commit("diagramItem/addToSelected",h))}},onMouseUp:function(t){var e=this;if(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),!this.isSpaceGrabbing){c.EventBus.$off("keypress-escape",this.onMouseUp);var n=this.$options.mouseEventData,r=n.svg,i=n.moved,o=n.pin;if(this.isCommentMode&&!i)if(o)this.onPinClick(o.id,t);else if(this.pin.visible)this.pin.hasContent||this.closePin();else if(r&&this.canWriteComments){var a=Slickplan.helpers.getMousePositionSvg(t,r),s=Math.round(Math.max(0,(a.x-this.workareaMargins[3])/this.xDiagramScale)),l=Math.round(Math.max(0,(a.y-this.workareaMargins[0])/this.xDiagramScale));this.isGuestAndIntroductionNeeded?this.pinNewCommentIntroduce(s,l):this.pinNewComment(s,l)}this.isCommentMode&&i&&o&&o.coords&&this.isProjectEditable&&Slickplan.helpers.requestSingle((function(){return m.default.comments.changeCoords(e.xProjectTypeName,o.id,o.coords[0],o.coords[1]).promise}),"".concat(this.$options.name,"-pin-").concat(o.id)),this.xDiagramGhostSelect.visible&&(this.$store.commit("diagram/hideGhostSelect"),this.$options.ghostRect=null)}this.isGrabbing=!1,this.$options.mouseEventData={}},onDiagramChangedEvent:function(t){var e=this,n=t.action,r=t.elements,i=t.connectors;this.$nextTick((function(){e.$store.commit("diagram/refreshCurrentBBox"),(r||i)&&e.$store.dispatch("diagramHelpers/saveItems",{action:n,elements:Slickplan.helpers.castArray(r),connectors:Slickplan.helpers.castArray(i)}),"label_update"!==n&&"connector_style_update"!==n&&e.$nextTick((function(){return e.$store.commit("diagramItem/refreshMagnetizedGroups")}))}))},onClipboardCopy:function(){var t=this,e=this.xSelectedItems.elements.map((function(e){return t.xGetElementData(e)})).filter((function(t){return t}));this.$session.set("clipboard",{type:"diagram",connectors:this.xDiagramConnectors.map((function(e){var n=t.xGetConnectorData(e),r=t.xDiagramStandaloneConnectors.includes(e);return!(!n||!(!r&&t.xSelectedItems.elements.includes(n["from-element"])&&t.xSelectedItems.elements.includes(n["to-element"])||r&&t.xSelectedItems.connectors.includes(e)))&&n})).filter((function(t){return t})),elements:e})},onClipboardPaste:function(){var t=this;if(this.$session.exists("clipboard")){var e=this.$session.get("clipboard");if(e&&"diagram"===e.type){var n=e.connectors,r=e.elements;r&&Array.isArray(r)&&r.length&&this.$store.commit("diagramItem/clone",{connectors:n,elements:r,offsetX:50,offsetY:50,autoSelect:!0,onSuccess:function(e,n,r){t.$store.commit("diagramItemData/clone",r);var i=[];Object.values(r).map((function(e){var n=t.xGetElementDataArray(e).map((function(t){return t.id=e,t.item_id=e,t}));return n&&n.length&&(i=i.concat(n)),e})),i.length&&t.$store.commit("diagramItemData/setAndBroadcast",i),c.EventBus.$emit("diagram-changed",{action:"clipboard_paste",elements:[].concat(e),connectors:[].concat(n)})}})}}},onWebsocketChange:function(t){var e=this,n=t.user,r=t.data;if(r&&"object"===v(r)){if(("undo"===r.action||"redo"===r.action)&&r.diagram)return void this.$store.dispatch("diagramHelpers/reloadAll",r.diagram);var i=[];if(r.store&&Array.isArray(r.store)&&r.store.length&&r.store.forEach((function(t){t.commit?e.$store.commit(t.commit,t.payload):t.dispatch&&e.$store.dispatch(t.dispatch,t.payload)})),r.elements&&Array.isArray(r.elements)&&r.elements.length&&(clearTimeout(this.$options.magnetizedTimer),this.$store.commit("diagramItem/processElement",r.elements.map((function(t){return t.fromWebsocket=!0,t}))),i=Slickplan.helpers.reduceToIds(r.elements),this.$options.magnetizedTimer=setTimeout((function(){e.$store.commit("diagramItem/refreshMagnetizedGroups")}),1e3)),r.connectors&&Array.isArray(r.connectors)&&r.connectors.length){this.$store.commit("diagramItem/processConnector",r.connectors.map((function(t){return t.fromWebsocket=!0,t})));var o=r.connectors.filter((function(t){return"string"==typeof t.id&&t.id.startsWith(l.diagramStructure.linePlaceholderId)})).map((function(t){return t.id}));o.length&&(i=i.concat(o))}r.itemData&&Array.isArray(r.itemData)&&r.itemData.length&&(this.$store.commit("diagramItemData/set",r.itemData),i=i.concat(Slickplan.helpers.reduceToIds(r.itemData))),i.length&&this.$store.commit("diagramItem/setItemsEditedBy",{user:n,items:i})}},onboard:function(){this.isProjectEditable&&this.xOnboard.includes("diagram")&&this.$modal.show(s.default,{type:"diagram"},{width:550,closeButton:!1})},reloadMounts:function(t){this.$options.mounts!==t&&(this.$options.mounts=t,t?(c.EventBus.$on("diagram-changed",this.onDiagramChangedEvent),c.EventBus.$on("keypress-ctrl-c",this.onClipboardCopy),c.EventBus.$on("keypress-ctrl-v",this.onClipboardPaste)):(c.EventBus.$off("diagram-changed",this.onDiagramChangedEvent),c.EventBus.$off("keypress-ctrl-c",this.onClipboardCopy),c.EventBus.$off("keypress-ctrl-v",this.onClipboardPaste)))}},watch:{isProjectEditable:function(t){t!==this.$options.mounts&&this.reloadMounts(t)},isCommentMode:{handler:function(t,e){t!==this.$options.mounts&&(this.$store.commit("diagramItem/deselectAll"),this.reloadMounts(t)),t&&!e?this.$nextTick(this.openComments):!t&&e&&(c.EventBus.$emit("panel-close"),this.closePin())},immediate:!0},floatingCommentId:function(t,e){var n=this;t&&t!==e&&this.$nextTick((function(){var t=n.$el.querySelector(".ui-floating-comments");t&&t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}))}},mounted:function(){var t=this;this.$options.scrollableEl=document.getElementById("project-scrollable"),this.reloadMounts(!0),this.isProjectShared||(this.$options.wsRoom=["diagram",Slickplan.globalVars.diagramAlias],Slickplan.websocket.room(this.$options.wsRoom).listenForWhisper("diagram.update",this.onWebsocketChange),this.onboard()),c.EventBus.$emit("panel-close"),c.EventBus.$emit("dom-updated",this.$options.name),this.$nextTick((function(){t.$store.commit("diagramItem/refreshMagnetizedGroups"),c.EventBus.$emit("diagram-loaded",t.xCurrentDiagramData.alias)}))},beforeDestroy:function(){this.$options.wsRoom&&Slickplan.websocket.leaveRoom(this.$options.wsRoom),this.reloadMounts(!1)}}},37100:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"error-404",created:function(){this.$store.dispatch("core/setMetaTitle","Page Not Found (Error 404)")}}},34984:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(71995),i=n(30160),o=n(22440),a=n(41952),s=n(75300),l=null;const c={name:"integrations",components:{"link-help":i.default},mixins:[s.oAuthConnect],beforeRouteEnter:function(t,e,n){r.default.integration.getList().promise.then((function(t){l=t,n((function(){l=null}))}))},data:function(){return{integrations:[]}},methods:{onConnect:function(t){var e=this;t.can_connect?"basecamp"===t.id||"teamwork"===t.id?this.$modal.show("basecamp"===t.id?o.default:a.default,{},{title:this.$trans("service_integration",{service:t.name}),closeButton:!1,width:460},{saved:function(){t.connected=!0},oauth:function(){t.saving=!0,e.oauthConnect(t,(function(n,r){return e.callback(t,n,r)}))}}):t.modal&&(t.saving=!0,this.oauthConnect(t,(function(n,r){return e.callback(t,n,r)}))):this.$notify({type:"error",text:this.$trans("errors.upgrade_to_use_function")})},onDisconnect:function(t){var e=this;this.$modal.showConfirm({title:this.$trans("confirm_disconnection"),buttonLabel:this.$trans("disconnect"),htmlText:this.$trans("messages.confirm_integration_deletion",{name:t.name})},(function(){t.saving=!0;var n=e.oauthDisconnect(t.id);return n.promise.then((function(e){e&&e.id&&Object.assign(t,e)})).finally((function(){t.saving=!1})),n}))},callback:function(t,e,n){t.connected=e,t.saving=!1,!e&&n&&this.$notify({type:"error",text:"".concat(t.name,": ").concat(n)})}},created:function(){this.$store.dispatch("core/setMetaTitle",this.$trans("titles.integrations")),l&&(l.forEach((function(t){t.items.forEach((function(t){(t.id||t.modal)&&(t.saving=!1)}))})),this.integrations=l)}}},91528:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(71995),o=n(32920),a=n(1368),s=n(86180),l=n(48728);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"mockup-dashboard",components:{"component-loading":s.default,"mockups-listing":a.default,"mockup-empty":o.default},provide:function(){return{onLoad:this.onLoad}},computed:d(d({},(0,r.mapState)({xOnboard:function(t){return t.core.onboard},xMockups:function(t){return t.mockup.mockups}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),methods:{onLoad:function(){var t=this,e=i.default.file.getMockupsList(!0,!0);return e.promise.then((function(e){var n=e.mockups,r=e.statuses;t.$store.commit("mockup/setStatuses",r),t.$store.commit("mockup/setMockups",n)})).catch(_noop).finally(this.onboard),e},onboard:function(){this.xOnboard.includes("mockups")&&this.$modal.show(l.default,{type:"mockups"},{width:550,closeButton:!1})}},mounted:function(){var t=this;this.$store.dispatch("core/setLoading",!0),Slickplan.helpers.requestSingle((function(){var e=t.onLoad();return e.promise.finally((function(){t.$store.dispatch("core/setLoading",!1)})),e}),this.$options.name)},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},99256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(30160),o=n(30644),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"mockup-empty",components:{"link-help":i.default},mixins:[o.mixinMockupUpload],data:function(){return{uploadType:null}},computed:c(c({},(0,r.mapState)({xSitemapCells:function(t){return t.sitemapCell.cells}})),{},{uploadTypes:function(){return[{value:"upload",label:"My computer"},{value:"library",label:"File library"},{value:"figma",label:"Figma"}]}}),methods:{onSubmit:function(){var t=this;this.$root.ifUserCanThen(a.permissionsProject.MANAGE_MOCKUPS,(function(){"upload"===t.uploadType?t.newMockupUpload():"figma"===t.uploadType?t.newMockupFigma():"library"===t.uploadType&&t.newMockupLibrary()}))}}}},93668:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(31904),o=n(15104),a=n(14580),s=n(63199),l=n(30644),c=n(65056);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const v={name:"mockups-listing",components:{"filters-bar":n(7356).default,"listing-grid":i.default,"listing-list":o.default},mixins:[c.mixinProjectStatus,s.mixinFileLibraryMethods,l.mixinMockupClick],provide:function(){return{switchMockup:this.switchMockup}},computed:m(m({},(0,r.mapState)({xFilters:function(t){return t.mockup.filters},xMockups:function(t){return t.mockup.mockups}})),{},{canUpload:function(){return this.$root.userCan(a.permissionsProject.MANAGE_MOCKUPS)},isToolAvailable:function(){return this.$root.isAllowedFeature(a.constants.FEATURE_FILES)},filtersData:function(){return{users:d(new Set(this.xMockups.map((function(t){return t.user_id})).filter((function(t){return t})))),sections:d(new Set(this.xMockups.map((function(t){return t.section_id})).filter((function(t){return t})))),statuses:d(new Set(this.xMockups.map((function(t){return t.status})).filter((function(t){return t}))))}},buttons:function(){var t=this;return this.isProjectEditable&&this.isToolAvailable&&this.canUpload?[{label:"+ Upload mockups",onClick:function(){return t.$store.commit("mockup/setUploadBar",!0)}}]:[]}}),methods:{switchMockup:function(t,e){this.$store.commit("mockup/setCurrentMockupForCell",{cellId:t,mockupId:e})}},beforeDestroy:function(){this.$store.commit("actionBar/reset")}}},43256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(6580),o=n(63199),a=n(30644);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"mockups-listing-grid",components:{"mockup-buttons":n(13664).default,"user-avatars":i.default},mixins:[o.mixinFileLibraryMethods,a.mixinMockupClick],inject:["switchMockup"],computed:c(c(c({},(0,r.mapState)({xFilters:function(t){return t.mockup.filters}})),(0,r.mapGetters)({xGroupedFilteredSortedMockupsWithDetails:"mockup/getGroupedFilteredSortedMockupsWithDetails",xGetTeamMemberData:"team/getData"})),{},{avatarsLimit:function(){return this.xFilters.columns>4?5:this.xFilters.columns>3?7:11}})}},81496:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(6580),o=n(63199),a=n(30644),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"mockups-listing-list",components:{"mockup-buttons":n(13664).default,"user-avatars":i.default},mixins:[o.mixinFileLibraryMethods,a.mixinMockupClick],inject:["switchMockup"],computed:u(u({},(0,r.mapState)({xFilters:function(t){return t.mockup.filters},xPageCommentsCount:function(t){return t.comments.counter[s.constants.COMMENTS_TYPE_FILE]}})),(0,r.mapGetters)({xGroupedFilteredSortedMockupsWithDetails:"mockup/getGroupedFilteredSortedMockupsWithDetails"})),methods:{pageMockupComments:function(t){var e=this;return t.reduce((function(t,n){var r;return t+((null===(r=e.xPageCommentsCount)||void 0===r||null===(r=r[n.cell_file_id])||void 0===r?void 0:r.total)||0)}),0)}}}},71704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>O});var r=n(48416),i=n(39212),o=n.n(i),a=n(71995),s=n(14580),l=n(86180),c=n(69988),u=n(63199),d=n(22164),f=n(13664),p=n(80860),m=n(17206),h=n(66404),v=n(9736),b=n(52728),y=n(97152);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||C(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){if(t){if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){E(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function E(t,e,n){var r;return r=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==g(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const O={name:"mockups-preview",components:{"thumbs-bar":p.default,"mockup-buttons":f.default,"component-loading":l.default,"floating-pins":c.default,"floating-comments":v.default,"floating-comment-introduction":b.default,"shared-sidebar":m.default},mixins:[u.mixinFileLibraryMethods,h.mixinFloatingComments],provide:function(){var t=this;return{setMockupId:this.setMockupId,onLoad:function(){t.$store.commit("mockup/removeMockups",t.currentMockupDataId)}}},mouseEventData:null,throttledZoom:null,minScale:.01,maxScale:5,data:function(){return{regeneratingPreview:!1,showThumbnails:!1,imageLoaded:!1,mockupWidth:null,mockupHeight:null,mockupStatus:null,selectedCellId:null,selectedMockupId:null,scale:1,translateX:0,translateY:0,delta:0,load:!1,isDragging:!1,figmaFileUpdateRequest:!1,commentsType:s.constants.COMMENTS_TYPE_FILE}},computed:w(w(w({},(0,r.mapState)({xCommentsLoading:function(t){return t.comments.isLoading},xPanelVisible:function(t){return t.panel.visible},xWindowSize:function(t){return t.core.windowSize},xMockups:function(t){return t.mockup.mockups},xIsMockupVisible:function(t){return t.mockup.isPreviewVisible},xMockupsStatuses:function(t){return t.mockup.statuses},xMockupPreviewData:function(t){return t.mockup.preview},xMockupLastModDate:function(t){var e;return(null===(e=t.mockup.lastModDates)||void 0===e?void 0:e[this.figmaFileId])||null},xFileCommentsCount:function(t){return t.comments.counter[s.constants.COMMENTS_TYPE_FILE]||{}},xProjectType:function(t){return t.project.currentProjectType},xProjectHeaderHeight:function(t){return t.project.headerHeight},xSectionsIds:function(t){return t.sitemapSection.ids}})),(0,r.mapGetters)({xPanelWidth:"panel/getWidth",xGetCellData:"sitemapCell/getData",xSortedMockups:"mockup/getSortedMockups",xGroupedFilteredSortedMockupsWithDetails:"mockup/getGroupedFilteredSortedMockupsWithDetails",xGetCellsHierarchy:"sitemapCell/getCellsHierarchy"})),{},{currentMode:{get:function(){return this.xMockupPreviewData.mode[0]},set:function(t){this.$store.commit("mockup/setPreviewMode",t)}},isSingleCellMode:function(){return"cell"===this.xIsMockupVisible},canUpload:function(){return this.$root.userCan(s.permissionsProject.MANAGE_MOCKUPS)},pagesWithMockups:function(){var t=this,e=this.xSortedMockups.reduce((function(e,n){return e[n.cell_id]||(e[n.cell_id]={cellId:n.cell_id,cellName:n.cell_name,mockupId:n.cell_file_id,sectionId:t.xGetCellData(n.cell_id,s.constants.CELL_DATA_KEY_SECTION_ID)}),e}),{}),n=S(new Set(Object.keys(e).map((function(t){return e[t].sectionId})))),r=n.filter((function(t){return t!==s.constants.SITEMAP_SECTION_MAIN_ID}));return r.sort(),n.includes(s.constants.SITEMAP_SECTION_MAIN_ID)&&r.unshift(s.constants.SITEMAP_SECTION_MAIN_ID),r.reduce((function(n,r){var i=t.xGetCellsHierarchy(r,null,!0);return[].concat(i.home,i.main,i.util,i.foot).forEach((function(t){e[t.id]&&n.push(e[t.id])})),n}),[])},currentPageWithMockupIndex:function(){var t=this;return this.pagesWithMockups.findIndex((function(e){return e.cellId===t.selectedCellId}))},prevPageWithMockup:function(){return 0===this.currentPageWithMockupIndex?this.pagesWithMockups[this.pagesWithMockups.length-1]:this.pagesWithMockups[this.currentPageWithMockupIndex-1]},nextPageWithMockup:function(){return this.currentPageWithMockupIndex===this.pagesWithMockups.length-1?this.pagesWithMockups[0]:this.pagesWithMockups[this.currentPageWithMockupIndex+1]},groupedFilteredSortedMockupsWithDetails:function(){var t=this;if(this.isSingleCellMode){var e=this.xGroupedFilteredSortedMockupsWithDetails.find((function(e){return e.id===t.selectedCellId}));return e?[e]:[]}return this.xGroupedFilteredSortedMockupsWithDetails},windowSize:function(){return this.isProjectShared?{width:this.xWindowSize.width,height:this.xWindowSize.scrollableHeight+(this.xProjectType.mockup?0:this.xProjectHeaderHeight)}:this.xWindowSize},isCommentMode:function(){return"comment"===this.currentMode},isCommentModeWithSidebar:function(){return this.isCommentMode&&this.xPanelVisible},isFigmaFileUpdated:function(){var t;return!(!this.figmaFileId||!this.xMockupLastModDate)&&(null===(t=this.currentMockupData)||void 0===t?void 0:t.figma_date)!==this.xMockupLastModDate},canEdit:function(){return!this.isProjectShared&&this.$root.userCan(s.permissionsProject.MANAGE_MOCKUPS)},availableStatuses:function(){var t=this,e=Object.keys(this.xMockupsStatuses).map((function(e){return{id:e,label:t.xMockupsStatuses[e].label,color:t.xMockupsStatuses[e].color}}));return this.mockupStatus?e.concat([{id:"",label:"Clear status"}]):e},commentsCount:function(){var t;return(null===(t=this.xFileCommentsCount)||void 0===t||null===(t=t[this.currentMockupDataId])||void 0===t?void 0:t.total)||0},commentPins:function(){var t,e=this;if(!this.isCommentMode||this.isPanelSliding)return[];var n=this.pointZero(null!==(t=this.scale)&&void 0!==t?t:1),r=[];return this.loadedComments.map((function(t){for(var i=t.coords,o=_(t.coords.split(":").map((function(t){return parseInt(t,10)})),2),a=o[0],s=o[1];r.includes(i);)i=[a+=10,s].join(":");r.push(i);var l=a*e.scale,c=s*e.scale;return{x:l+=n.x+e.translateZero.x-24,y:c+=n.y+e.translateZero.y-24,origX:a,origY:s,id:t.id,user_id:t.user_id,guest_data:null==t?void 0:t.guest_data}}))},availableModes:function(){var t="Comment";return this.commentsCount&&(t+=" (".concat(this.commentsCount,")")),[{value:"view",label:"View"},{value:"comment",label:t}]},loadedComments:function(){var t=this;return this.xComments.filter((function(e){return!e.parent_id&&!e.resolved_at&&e.ref_id===t.currentMockupDataId}))},translateZero:function(){return{x:this.translateX-(this.boardSize.width-this.mockupWidth)/2,y:this.translateY-(this.boardSize.height-this.mockupHeight)/2}},cellName:function(){return this.xGetCellData(this.selectedCellId,s.constants.CELL_DATA_KEY_LABEL)},boardSize:function(){var t=this.wrapperSize,e=t.width,n=t.height;return this.isProjectShared?e-=300:(this.isCommentModeWithSidebar&&(e-=s.constants.DEFAULT_PANEL_WIDTH),n-=64+(this.isSingleCellMode?176:0)),{width:e,height:n}},boardSizeReal:function(){return{width:this.boardSize.width,height:this.boardSize.height-(this.showThumbnails&&!this.isProjectShared?335:0)}},wrapperSize:function(){var t=this.windowSize,e=t.width,n=t.height;return this.isProjectShared&&this.isSingleCellMode&&(n-=this.xProjectHeaderHeight),{width:e,height:n}},boardStyle:function(){var t={width:"".concat(this.boardSize.width,"px"),height:"".concat(this.boardSizeReal.height,"px"),cursor:!0===this.imageLoaded?"grab":null};return this.isProjectShared?(t.left="auto",t.right="0",t.top="0"):this.isSingleCellMode&&(t.top="56px"),t},scaleNumber:function(){return Math.round(100*this.scale)},scalePercent:function(){return"".concat(this.scaleNumber,"%")},mockupStyle:function(){return{transform:"translate(".concat(this.translateX,"px, ").concat(this.translateY,"px) scale(").concat(this.scale,")"),visibility:this.imageLoaded?null:"hidden"}},mockupClass:function(){return{"cursor-comment":!this.isDragging&&this.isCommentMode&&!this.pin.visible&&this.canWriteComments}},cellMockupsList:function(){var t=this;return this.xMockups.filter((function(e){return e.cell_id===t.selectedCellId}))},currentMockupData:function(){var t=this,e=null;return this.selectedMockupId&&(e=this.cellMockupsList.find((function(e){return e.cell_file_id===t.selectedMockupId}))),e||(e=this.cellMockupsList.find((function(t){return t}))),e},currentMockupDataImageUrl:function(){var t,e=this.getImageUrl(this.currentMockupData);return e?e+(this.figmaKey&&null!==(t=this.currentMockupData)&&void 0!==t&&t.figma_date?"?stamp=".concat(this.currentMockupData.figma_date):""):null},currentMockupDataId:function(){var t;return(null===(t=this.currentMockupData)||void 0===t?void 0:t.cell_file_id)||0},figmaKey:function(){var t;return null===(t=this.currentMockupData)||void 0===t?void 0:t.figma_key},figmaFileId:function(){return this.figmaKey?this.figmaKey.split("/")[0]:null},mockupsNav:function(){var t=this,e={prev:null,next:null};if(!this.currentMockupDataId)return e;for(var n=this.groupedFilteredSortedMockupsWithDetails.length,r=0;r<n;r+=1){var i=this.groupedFilteredSortedMockupsWithDetails[r],o=i.id,a=i.mockups,s=a.findIndex((function(e){return e.cell_file_id===t.currentMockupDataId}));if(s>=0){var l,c;if(!e.prev)if(0===s&&r>0){var u,d=this.groupedFilteredSortedMockupsWithDetails[r-1],f=d.id,p=d.mockups;null!=p&&null!==(u=p[p.length-1])&&void 0!==u&&u.cell_file_id&&(e.prev={cellId:f,mockupId:p[p.length-1].cell_file_id})}else s>0&&null!=a&&null!==(l=a[s-1])&&void 0!==l&&l.cell_file_id&&(e.prev={cellId:o,mockupId:a[s-1].cell_file_id});if(!e.next)if(s===a.length-1&&r+1<n){var m,h=this.groupedFilteredSortedMockupsWithDetails[r+1],v=h.id,b=h.mockups;null!=b&&null!==(m=b[0])&&void 0!==m&&m.cell_file_id&&(e.next={cellId:v,mockupId:b[0].cell_file_id})}else s<a.length-1&&null!=a&&null!==(c=a[s+1])&&void 0!==c&&c.cell_file_id&&(e.next={cellId:o,mockupId:a[s+1].cell_file_id});if(e.prev&&e.next)break}}return e},pinCoords:function(){if(this.pin.visible){var t=this.pointZero(this.scale),e=this.pin,n=e.x,r=e.y;return n*=this.scale,r*=this.scale,[n+=t.x+this.translateZero.x-24,r+=t.y+this.translateZero.y-24]}return null}}),methods:{pointZero:function(t){return{x:-this.mockupWidth*t/2,y:-this.mockupHeight*t/2}},loadMockups:function(){var t=this;Slickplan.helpers.requestSingle((function(){var e=a.default.file.getMockupsList(!0,!0,!0);return e.promise.then((function(e){var n=e.mockups,r=e.statuses,i=e.figma;t.$store.commit("mockup/setStatuses",r),t.$store.commit("mockup/setMockups",n),t.$store.commit("user/append",{hasFigma:i});var o,a,s,l,c,u=t.xMockupPreviewData,d=u.cellId,f=u.mockupId,p=null;(d&&t.isSingleCellMode&&(p=t.pagesWithMockups.find((function(t){return t.cellId===d}))),!p&&d&&f&&(p=n.find((function(t){return t.cell_id===d&&(t.cell_file_id===f||t.alias===f)}))),!p&&d&&(p=n.find((function(t){return t.cell_id===d}))),p)||(p=(null===(o=t.groupedFilteredSortedMockupsWithDetails)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.mockups)||void 0===o?void 0:o[0])||(null==n?void 0:n[0]));p&&(d=(null===(a=p)||void 0===a?void 0:a.cellId)||(null===(s=p)||void 0===s?void 0:s.cell_id),f=(null===(l=p)||void 0===l?void 0:l.mockupId)||(null===(c=p)||void 0===c?void 0:c.cell_file_id));d&&f&&t.setMockupId(f,d)})).catch(_noop),e}),this.$options.name)},isBoardElement:function(t){return"img"===t.tagName.toLowerCase()||t.classList.contains("_board")},regeneratePreview:function(){var t=this;!this.regeneratingPreview&&this.currentMockupData&&(this.regeneratingPreview=!0,Slickplan.helpers.requestSingle((function(){var e=t.currentMockupData.alias,n=a.default.file.regeneratePreview(e);return n.promise.then((function(n){t.$store.commit("mockup/updateMockupsByAlias",{alias:e,data:n})})).catch(Slickplan.catchAll).finally((function(){t.regeneratingPreview=!1,t.imageLoaded=!1})),n}),this.$options.name))},onImageLoad:function(t){var e=this;this.$nextTick((function(){e.imageLoaded=!0,d.EventBus.$emit("mockup-loaded",e.currentMockupDataId)})),this.setWidthHeight(t.target.naturalWidth,t.target.naturalHeight)},onImageError:function(){var t=this;this.$nextTick((function(){t.imageLoaded="error"})),this.setWidthHeight(1,1)},shouldStopMouseEvent:function(t){return!0!==this.imageLoaded||!this.isBoardElement(t.target)&&!this.isPinElement(t.target)},onMouseDown:function(t){if(!this.shouldStopMouseEvent(t)){if(this.isDragging=!1,this.$options.mouseEventData={e:t,target:t.target,x:t.clientX,y:t.clientY,translateX:this.translateX,translateY:this.translateY,moved:!1},this.isPinElement(t.target)){var e,n,r=parseInt(null===(e=t.target.dataset)||void 0===e?void 0:e.id,10),i=parseInt(null===(n=t.target.dataset)||void 0===n?void 0:n.multi,10);if(r>0){var o=this.loadedComments.find((function(t){return t.id===r}));if(o){var a=_(o.coords.split(":").map((function(t){return parseInt(t,10)})),2),s=a[0],l=a[1];this.$options.mouseEventData.pin={id:r,x:s,y:l}}}else if(i>=0){var c=this.collectedCommentPinsMulti[i].pins;this.$options.mouseEventData.pinMulti={pins:c.map((function(t){return t.id})),x:c[0].origX,y:c[1].origY}}}document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)}},onMouseMove:function(t){var e=this.$options.mouseEventData,n=e.x,r=e.y,i=e.translateX,o=e.translateY,a=e.moved,s=e.pin;!a&&(Math.abs(t.clientX-n)>2||Math.abs(t.clientY-r)>2)&&(this.isDragging=!0,document.body.style.cursor="grabbing",this.$options.mouseEventData.moved=!0),s&&this.canEdit&&this.isDragging?(s.coords=[s.x+(t.clientX-n)/this.scale,s.y+(t.clientY-r)/this.scale].map((function(t){return parseInt(t,10)})),this.$store.commit("comments/updateComments",{id:s.id,coords:s.coords.join(":")})):s||(this.translateX=i+(t.clientX-n),this.translateY=o+(t.clientY-r))},onMouseUp:function(){var t=this;this.isDragging=!1;var e=this.$options.mouseEventData,n=e.e,r=e.x,i=e.y,o=e.target,s=e.moved,l=e.pin,c=e.pinMulti;if(this.isCommentMode&&!s){if(l)this.onPinClick(l.id,n);else if(c){do{if(this.zoomIn(),this.scale>=this.$options.maxScale-.01)break}while(!this.collectedCommentPinsSingle.some((function(t){return c.pins.includes(t.id)})));this.centerImage(c.x,c.y)}else if(this.pin.visible)this.pin.hasContent||this.closePin();else if(o&&"img"===o.tagName.toLowerCase()&&this.canWriteComments){var u=o.getBoundingClientRect(),d=Math.max(0,Math.min(this.mockupWidth,Math.round(this.mockupWidth/u.width*(r-u.x)))),f=Math.max(0,Math.min(this.mockupHeight,Math.round(this.mockupHeight/u.height*(i-u.y))));this.isGuestAndIntroductionNeeded?this.pinNewCommentIntroduce(d,f):this.pinNewComment(d,f)}}else s&&l&&l.coords&&this.canEdit&&Slickplan.helpers.requestSingle((function(){return a.default.comments.changeCoords(t.xProjectTypeName,l.id,l.coords[0],l.coords[1]).promise}),"".concat(this.$options.name,"-pin-").concat(l.id));document.body.style.cursor=null,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.$options.mouseEventData=null},onMouseWheel:function(t){var e=this;if(!this.shouldStopMouseEvent(t)){var n=t.deltaY||t.deltaX;t.shiftKey?this.translateX-=n/2:t.ctrlKey||t.metaKey||t.altKey?(this.delta=n,this.$options.throttledZoom||(this.$options.throttledZoom=o()((function(){var t=100;e.scaleNumber<=10?t=1500:e.scaleNumber<=25?t=1e3:e.scaleNumber<=50?t=500:e.scaleNumber<=80&&(t=250);var n=Math.abs(e.delta)/t;e.delta>0?e.zoomOut(n):e.delta<0&&e.zoomIn(n)}),50)),this.$options.throttledZoom()):this.translateY-=n/2}},onStatusChange:function(t){var e=this;t||(this.mockupStatus=null),Slickplan.helpers.requestSingle((function(){var n=a.default.file.updateCellMockupStatus(e.selectedCellId,e.currentMockupDataId,t);return n.promise.then((function(t){e.$store.commit("mockup/updateMockups",t)})),n}),"".concat(this.$options.name,"-status-").concat(this.currentMockupDataId))},onFilenameClick:function(){var t=this;if(this.canEdit)if(this.isSingleCellMode){var e=this.currentMockupData,n=e.filename,r=e.cell_file_id;this.$modal.show(y.default,{inputs:[{id:"name",label:"File name",value:n.split(".").slice(0,-1).join(".")}],form:{action:function(e){var n=e.name,i=a.default.file.renameMockupFile(r,n);return i.promise.then((function(e){null!=e&&e[r]&&t.$store.commit("mockup/updateMockups",[{cell_file_id:r,filename:e[r]}])})).catch(_noop),i}}},{name:"confirm",title:"Change file name"})}else this.showThumbnails=!this.showThumbnails},setWidthHeight:function(t,e){this.mockupWidth=t,this.mockupHeight=e,this.containImage(),this.centerImage()},containImage:function(){this.mockupWidth/this.mockupHeight>this.boardSize.width/this.boardSize.height?this.setScale(this.boardSize.width/this.mockupWidth):this.setScale(this.boardSize.height/this.mockupHeight)},centerImage:function(t,e){this.translateX=(this.boardSize.width-this.mockupWidth)/2,this.translateY=(this.boardSize.height-this.mockupHeight)/2,"number"==typeof t&&(this.translateX+=(this.mockupWidth/2-t)*this.scale),"number"==typeof e&&(this.translateY+=(this.mockupHeight/2-e)*this.scale)},zoomIn:function(t){this.setScale(this.scale+("number"==typeof t?t:.1))},zoomOut:function(t){this.setScale(this.scale-("number"==typeof t?t:.1))},zoomReset:function(){1===this.scale?this.containImage():this.setScale(1),this.centerImage()},setScale:function(t){this.scale=Math.min(this.$options.maxScale,Math.max(this.$options.minScale,t))},closePreview:function(){d.EventBus.$emit("panel-close"),this.$store.commit("mockup/setPreviewVisible",!1)},setMockupId:function(t,e){var n,r,i;"object"===g(t)&&null!==(n=t)&&void 0!==n&&n.mockupId&&(e=null===(r=t)||void 0===r?void 0:r.cellId,t=null===(i=t)||void 0===i?void 0:i.mockupId);if(e&&e!==this.selectedCellId&&(this.selectedCellId=e),"string"!=typeof t||/^[0-9]+$/.test(t))t=parseInt(t,10);else{var o=this.xMockups.find((function(e){return e.alias===t}));t=(null==o?void 0:o.cell_file_id)||null}t!==this.selectedMockupId&&(this.selectedMockupId=t);var a={cellId:this.selectedCellId,mockupId:this.selectedMockupId};this.$store.commit("mockup/setCurrentMockupForCell",a),this.$emit("update",a)},getImageUrl:function(t){return t?"image"===(null==t?void 0:t.type)?null==t?void 0:t.url_full:null==t?void 0:t.url_preview:null},figmaNoteIgnore:function(){this.$store.commit("mockup/setLastModDate",{fileId:this.figmaFileId,date:!1})},figmaNoteUpdate:function(){var t=this,e=this.xMockups.filter((function(e){return e.figma_key&&e.figma_key.startsWith("".concat(t.figmaFileId,"/"))})).length;e>1?this.$modal.showConfirm({title:"Update Figma file",buttonLabel:"Yes, update all",buttonCancel:{className:["-plain","-small"],label:"No, just this one",onClick:function(){return t.figmaFileUpdate()}},htmlText:"Would you like to update <b>all ".concat(e," mockups</b> from this Figma file?")},(function(){return t.figmaFileUpdate(!0)})):this.figmaFileUpdate()},figmaFileUpdate:function(t){var e=this;this.figmaFileUpdateRequest=!0;var n=a.default.file.updateFigmaFile(this.figmaFileId,this.xMockupLastModDate,t?null:this.currentMockupDataId);return n.promise.then((function(t){null!=t&&t.files&&t.files.forEach((function(t){e.$store.commit("mockup/updateMockupsByAlias",{alias:t.alias,data:t})}))})).catch(Slickplan.catchAll).finally((function(){e.figmaFileUpdateRequest=!1})),n},checkFigmaFileDate:function(){var t=this;this.figmaFileId&&!this.xMockupLastModDate&&Slickplan.helpers.requestSingle((function(){var e=a.default.integration.getFigmaFileDate(t.figmaFileId);return e.promise.then((function(e){null!=e&&e.date&&t.$store.commit("mockup/setLastModDate",{fileId:t.figmaFileId,date:e.date})})).catch(_noop),e}),"".concat(this.$options.name,"date"))},onClickComments:function(){this.canSeeComments&&(this.currentMode=this.isCommentMode?"view":"comment")},maybeOpenComments:function(){if(!0===this.imageLoaded)return this.openComments();d.EventBus.$once("mockup-loaded",this.openComments)}},watch:{currentMockupData:{handler:function(t,e){var n=(null==t?void 0:t.status)||null;this.mockupStatus!==n&&(this.mockupStatus=n);var r=this.getImageUrl(t);r?r!==this.getImageUrl(e)&&(this.imageLoaded=!1):this.onImageError(),this.isCommentMode&&(null==t?void 0:t.cell_file_id)!==(null==e?void 0:e.cell_file_id)&&this.maybeOpenComments(),this.closePin(),!this.isProjectShared&&this.canUpload&&this.checkFigmaFileDate()},deep:!0},currentMockupDataId:function(t,e){if(this.showThumbnails&&t!==e){var n=document.getElementById("mock-thumb-".concat(t));n&&n.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},selectedCellId:function(t,e){t!==e&&Slickplan.helpers.requestCancel(this.$options.name)},showThumbnails:function(t,e){var n=this;t&&!e&&this.$nextTick((function(){var t=n.$el.querySelector("li.-active"),e=t?t.closest(".ps-container"):null;if(e){var r=t.getBoundingClientRect(),i=Math.round(r.x+r.width/2-n.windowSize.width/2);e.scrollLeft=i>0?i:0}}))},searchKeywords:function(t,e){if(t!==e&&this.searchKeywords.length){var n=this.$el.querySelector(".ps-container");n&&(n.scrollLeft=0)}},xMockupPreviewData:{handler:function(t,e){var n;t.mockupId===e.mockupId&&t.cellId===e.cellId||this.setMockupId(t.mockupId,t.cellId),"comment"===t.mode[0]&&t.mode[1]!==(null===(n=e.mode)||void 0===n?void 0:n[1])&&this.onPinClick(t.mode[1])},deep:!0},isCommentMode:function(t,e){t&&!e&&this.currentMockupDataId?(this.showThumbnails=!1,this.maybeOpenComments()):!t&&e&&(d.EventBus.$off("mockup-loaded",this.openComments),d.EventBus.$emit("panel-close"),this.closePin())}},mounted:function(){this.$store.commit("actionBar/reset"),d.EventBus.$on("mockup-change",this.setMockupId),d.EventBus.$emit("panel-close"),this.loadMockups()},beforeDestroy:function(){d.EventBus.$off("mockup-loaded",this.openComments),d.EventBus.$off("mockup-change",this.setMockupId),Slickplan.helpers.requestCancel(this.$options.name),Slickplan.helpers.requestCancel("".concat(this.$options.name,"date")),this.$options.throttledZoom=null}}},56512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(23076),o=n(97152),a=n(71995),s=n(42456);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"mockups-thumbs-bar",components:{"filters-reset":i.default},mixins:[s.mixinReorderHelpers],inject:["setMockupId"],props:{simple:{type:Boolean,default:!1},boardSize:{type:Object,required:!0},groupedMockups:{type:Array,required:!0},currentFileId:{type:[Number,String],default:0},canEdit:{type:Boolean,default:!0}},computed:u(u(u({},(0,r.mapState)({xMockups:function(t){return t.mockup.mockups},xMockupsStatuses:function(t){return t.mockup.statuses},xIsMockupVisible:function(t){return t.mockup.isPreviewVisible},xFilters:function(t){return t.mockup.filters}})),(0,r.mapGetters)({xActiveMockupFilters:"mockup/getFilters"})),{},{canReorder:function(){return!(!this.canEdit||this.countThumbsMockups!==this.totalMockups||0!==Object.keys(this.xActiveMockupFilters).length||"order-asc"!==this.xFilters.sort)&&"x"},countThumbsMockups:function(){return this.groupedMockups.reduce((function(t,e){return t+e.mockups.length}),0)},totalMockups:function(){var t;return"cell"===this.xIsMockupVisible?(null===(t=this.groupedMockups)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.mockups.length)||0:this.xMockups.length},totalPages:function(){return this.groupedMockups.length},sortFilter:function(){return{"timestamp-desc":"Recent","timestamp-asc":"Oldest","name-asc":"Name A-Z","name-desc":"Name Z-A","order-asc":"Manual"}},listStyles:function(){var t;if(!this.simple)return null;var e=136*((null===(t=this.groupedMockups)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.mockups.length)||0)+16;return{width:"".concat(e,"px")}}}),methods:{filterChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$store.commit("mockup/setFilters",{key:t,value:e})},setSearchFieldValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];document.getElementById("field-filter-search").value=t,e&&this.filterChange("search",t)},onFilenameClick:function(t,e){var n=this;this.canEdit&&this.$modal.show(o.default,{inputs:[{id:"name",label:"File name",value:e.split(".").slice(0,-1).join(".")}],form:{action:function(e){var r=e.name,i=a.default.file.renameMockupFile(t,r);return i.promise.then((function(e){null!=e&&e[t]&&n.$store.commit("mockup/updateMockups",[{cell_file_id:t,filename:e[t]}])})).catch(_noop),i}}},{name:"confirm",title:"Change file name"})},onMouseClick:function(t,e,n){return this.setMockupId(e,n)},onChangedOrder:function(t,e){var n=this,r=e.parentElement;if(r){var i=[].map.call(r.children,(function(t){return t.dataset.id})),o=r.dataset.id;Slickplan.helpers.requestSingle((function(){var t=a.default.file.updateMockupsOrder(o,i);return t.promise.then((function(t){Array.isArray(t)&&t.length&&n.$store.commit("mockup/updateMockups",t)})).catch(_noop),t}),"".concat(this.$options.name,"-").concat(o))}}}}},49028:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(22164),o=n(30644),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"mockup-upload-bar",mixins:[o.mixinMockupUpload],computed:c(c({},(0,r.mapState)({xMockupUploadBar:function(t){return t.mockup.uploadBar}})),{},{cellId:function(){return"string"==typeof this.xMockupUploadBar?this.xMockupUploadBar:null},buttons:function(){return[{icon:"figma",title:"Direct sync",description:"Select Figma files"},{icon:"folder-add",title:"File library",description:"Choose existing files"},{icon:"upload",title:"Upload files",description:"png, jpg, gif or pdf"}]}}),methods:{onClick:function(t){var e=this;this.$root.ifUserCan(a.permissionsProject.MANAGE_MOCKUPS).then((function(){"figma"===t?e.newMockupFigma(e.cellId):"upload"===t?e.newMockupUpload(e.cellId):e.newMockupLibrary(e.cellId)})).catch(this.closeBar)},closeBar:function(){this.xMockupUploadBar&&this.$store.commit("mockup/setUploadBar",!1)}},mounted:function(){i.EventBus.$on("keypress-escape",this.closeBar)},beforeDestroy:function(){i.EventBus.$off("keypress-escape",this.closeBar)}}},40416:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var r=n(48416),i=n(71995),o=n(32980),a=n(14580),s=n(42456),l=n(63780);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=null;const v={name:"profile",mixins:[s.formHelpers,l.mixinFileUploadHelpers],data:function(){return{timezones:[],isTwoFactorEnabled:!1}},computed:p({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),methods:{onAvatarDelete:function(){this.$store.commit("user/append",{avatar:0})},onSubmit:function(){var t=this;this.formSubmit({action:function(){return i.default.user.updateProfile(p(p({},Slickplan.helpers.objectPick(t.xAccountData,["avatar","username","email","password","first_name","last_name","timezone"])),{},{totp_token:t.isTwoFactorEnabled}))},success:function(){t.$notify({text:t.$trans("messages.settings_saved")}),t.$store.commit("user/append",{password:null})}})},onTwoFactorChange:function(){this.isTwoFactorEnabled?(this.isTwoFactorEnabled=!1,this.formHelper.isDirty=!0):this.openTwoFactorModal()},openTwoFactorModal:function(){var t=this;this.$modal.show(o.default,{},{title:"Enable 2FA",name:"enable-2fa"},{saved:function(){t.isTwoFactorEnabled=!0,t.$notify({text:"Two-factor authentication is enabled."})}})}},created:function(){var t=this;this.$store.dispatch("core/setMetaTitle",this.$trans("titles.profile")),h&&(this.timezones=h.timezones||[],this.isTwoFactorEnabled=!!h.totp&&h.totp.enabled),this.uploadFileInit({url:"avatar",extensions:a.imageFormats,onSuccess:function(e,n){null!=n&&n.path&&t.$store.commit("user/append",{avatar:n.path})}}),this.$store.watch((function(t){return t.user.user}),(function(){t.formHelper.isDirty=!0}),{deep:!0})},beforeRouteEnter:function(t,e,n){Promise.all([i.default.helper("timezones").promise,i.default.auth.getTotpStatus().promise]).then((function(t){var e=u(t,2),r=e[0],i=e[1];h={timezones:r,totp:i},n((function(){h=null}))}))}}},26724:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>E});var r,i=n(48416),o=n(71995),a=n(29648),s=n(3992),l=n(77138),c=n(78612),u=n(46609),d=n(72140),f=n(67956),p=n(14580),m=n(65056),h=n(70992),v=n(30644),b=n(22164),y=["settings","archetypes","themes","contributors","new_comments","sitemaps","diagram_workflow"];function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function _(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){w(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e,n){var r;return r=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==g(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const E={name:"project",components:{"project-header":a.default},mixins:[m.mixinProjectStatus,m.mixinProjectSizes,h.mixinSitemapLoad,h.mixinCurrentCellDiagrams,h.mixinCurrentCellDiagramsMethods,v.mixinMockupClick,h.mixinProjectZoom],broadcastChannel:null,data:function(){return{projectType:""}},computed:x(x({},(0,i.mapState)({xPlanLimits:function(t){return t.core.planLimits}})),(0,i.mapGetters)({xGetCellData:"sitemapCell/getData",xTeamActive:"team/activeUsers"})),methods:{loadDiagramProject:function(t){var e=S(t,2),n=e[0],r=e[1];this.projectType="diagram",this.$store.dispatch("team/set",r),this.$store.dispatch("diagramHelpers/reloadAll",n),n.contributors&&this.$store.dispatch("project/setContributors",n.contributors),this.$store.commit("comments/setCounter",{type:p.constants.COMMENTS_TYPE_DIAGRAM,id:n.alias,total:n.comments||0}),this.$store.dispatch("core/setMetaTitle",this.$trans("titles.diagram",{title:n.title||n.name})),this.statusNotification(n)},loadSitemapProject:function(t){var e=this,n=S(t,4),r=n[0],i=n[1],o=n[2],a=n[3];this.projectType="sitemap",this.$store.dispatch("team/set",o);var s=r.settings,l=r.archetypes,c=r.themes,u=r.contributors,d=r.new_comments,f=r.sitemaps,p=r.diagram_workflow,m=_(r,y);this.loadData("sitemap/setArchetype",l),this.loadData("colors/addTheme",c),this.loadProjectSettings(s),this.$store.commit("project/setSitemapsList",f||[]),this.$store.commit("sitemap/setData",m),this.$store.commit("comments/setCounter",d),p&&this.$store.commit("diagram/setWorkflow",p),i.forEach((function(t){e.$store.commit("diagram/add",t)})),u&&this.$store.dispatch("project/setContributors",u),a&&this.loadSitemapStructure(a),this.$store.dispatch("sitemapCell/regroupCells"),this.$store.dispatch("core/setMetaTitle",this.$trans("titles.sitemap",m)),this.statusNotification(m)},setCurrentProjectType:function(t){var e=t.split("-");if(1===e.length)this.$store.commit("project/setCurrentProjectType",{project:e[0],route:e[0],sitemap:"sitemap"===e[0],diagram:"diagram"===e[0],content:!1,mockup:!1});else{var n=e.length>2?e.slice(2).join("-"):"dashboard";this.$store.commit("project/setCurrentProjectType",{project:e[0],route:e.join("-"),sitemap:"sitemap"===e[0]&&(!e.includes("section")||"section"),diagram:"diagram"===e[0]||"diagram"===e[1]&&n,content:"content"===e[1]&&n,mockup:"mockup"===e[1]&&n})}},setCrawlerScreen:function(){this.$root.routerSitemapPush("-import")},onCellClick:function(t){var e=this,n=t.cellId,r=t.property,i=t.data;if(r===p.constants.CELL_DATA_HAS_CONTENT)this.$root.ifAllowedFeatureThen(p.constants.FEATURE_CONTENT,(function(){e.clearSearch();var t=Object.entries(i).reduce((function(t,e){var n=S(e,2),r=n[0],i=n[1];return Slickplan.helpers.isBlank(i)||(t[r]=i),t}),{});e.$root.routerSitemapPush("-content-page-builder",{cell:n},null,t)}));else if(r===p.constants.CELL_DATA_HAS_DIAGRAMS&&Array.isArray(i)&&1===i.length)this.clearSearch(),this.onDiagramOpen(i[0]);else if(["sitemap-shared","sitemap-shared-section"].includes(this.$route.name))this.doCellClick(n,r,i);else{this.clearSearch();var o=this.xGetCellData(n,p.constants.CELL_DATA_KEY_SECTION_ID)||p.constants.SITEMAP_SECTION_MAIN_ID;this.$store.dispatch("sitemapHelpers/showSitemapAndExecute",{sectionId:o,callback:function(){return e.doCellClick(n,r,i)}})}},doCellClick:function(t,e,n){if(this.clearSearch(),e!==p.constants.CELL_DATA_KEY_SUBSECTION)if(e!==p.constants.CELL_DATA_HAS_MOCKUPS){this.$store.dispatch("sitemapCell/setCurrent",t);var r=[],i=[{name:"Info",component:s.default},{name:"Files",component:l.default,requiredFeature:p.constants.FEATURE_FILES,active:e===p.constants.CELL_DATA_HAS_FILES},{name:"Feedback",component:c.default,active:"comments"===e},{name:"Page Metrics",requiredFeature:p.constants.FEATURE_METRICS,component:u.default}];this.isProjectStructureEditable&&(i.push({id:"clone",component:d.default}),i.push({id:"delete",component:f.default}),r=[{icon:"trash",onClick:"delete"},{icon:"clone",onClick:"clone"}]),this.$store.dispatch("panel/set",{id:"cell",visibility:!0,title:n&&n[p.constants.CELL_DATA_KEY_LABEL]?n[p.constants.CELL_DATA_KEY_LABEL]:this.xGetCellData(t,p.constants.CELL_DATA_KEY_LABEL,"Page"),highlight:e,tabs:i,buttons:r})}else this.onClickMockup(t,Array.isArray(n)?null==n?void 0:n[0]:null==n?void 0:n.mockupId,"view",!0);else this.$store.dispatch("sitemapSection/pushBreadcrumb",n)},onScroll:function(t){b.EventBus.$emit("project-scrollable-scroll",t)},statusNotification:function(t){t.status===p.constants.STATUS_LOCKED&&this.$notify({type:"info",text:"Project is locked.",duration:0})},clearSearch:function(){b.EventBus.$emit("search-reset")}},watch:{$route:function(t){this.isActiveCrawler?this.setCrawlerScreen():this.setCurrentProjectType(t.name)},projectWidth:function(t){this.$store.commit("project/setContainerSize",{width:t})},projectHeight:function(t){this.$store.commit("project/setContainerSize",{height:t})},isActiveCrawler:function(t,e){t&&!e&&Slickplan.globalVars.sitemapAlias&&this.setCrawlerScreen()}},created:function(){var t=this;this.setCurrentProjectType(r.routeName),r.isSitemap?this.loadSitemapProject(r.responses):this.loadDiagramProject(r.responses);var e=S(r.responses,1)[0];e&&"number"==typeof e.notifications&&this.$store.commit("user/set",{notifications:e.notifications}),Slickplan.websocket.enable(this.xPlanLimits.contributors>0&&this.xTeamActive.length>1).room().here((function(e){t.$store.dispatch("websocket/joining",e)})).joining((function(e){t.$store.dispatch("websocket/joining",e),t.userInfo(e,"user_joined_chat")})).leaving((function(e){t.$store.dispatch("websocket/leaving",e),t.userInfo(e,"user_left_chat")}))},mounted:function(){var t=this;if(this.$store.commit("project/setContainerSize",{width:this.projectWidth,height:this.projectHeight}),b.EventBus.$on("cell-click",this.onCellClick),window.BroadcastChannel&&!this.isProjectShared){var e="slickplan-tabs-".concat(this.currentProjectDetails.alias),n="".concat(e,"-check");this.$options.broadcastChannel=new BroadcastChannel(e);var r=this.$options.broadcastChannel;r.postMessage(n),r.postMessage(e),r.addEventListener("message",(function(i){i.data===n?r.postMessage(e):i.data===e&&t.$notify({id:e,type:"error",title:"Attention!",text:"This project has been opened in another tab. We strongly advise against keeping it open in multiple tabs simultaneously, as this may lead to unsaved changes. To ensure smooth editing, please close all other tabs and refresh this page!",duration:0})})),document.addEventListener("visibilitychange",(function(){r.postMessage(e)}))}},beforeDestroy:function(){this.$options.broadcastChannel&&this.$options.broadcastChannel.close(),b.EventBus.$off("cell-click",this.onCellClick)},beforeRouteEnter:function(t,e,n){var i=t.params.sitemap?[o.default.sitemap.getBaseDetails({settings:1,archetypes:1,themes:1,contributors:1,comments:1,crawler:1,sitemaps:1,notifications:1,permissions:1},t.params.sitemap).promise,o.default.sitemap.getDiagramsList(t.params.sitemap).promise,o.default.team.getUsersList().promise,"sitemap"===t.name||"sitemap-section"===t.name?null:o.default.sitemap.getStructure(t.params.sitemap).promise]:[o.default.diagram.getDetails(t.params.diagram,null,!0).promise,o.default.team.getUsersList().promise];Promise.all(i.filter((function(t){return t}))).then((function(e){r={responses:e,isSitemap:t.params.sitemap,routeName:t.name},Slickplan.websocket.setProjectId(t.params.sitemap||t.params.diagram),n((function(){r=null}))})).catch(_noop)}}},72796:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"seo-tools"}},16264:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(49832),i=n.n(r),o=n(71995),a=n(42456);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"seo-header-status",components:{"link-help":n(30160).default},mixins:[a.formHelpers],data:function(){return{url:"",responseData:null}},methods:{onSubmit:function(){var t=this;this.status=null,this.formSubmit({action:function(){return o.default.seo.getHeaders(t.url)},success:this.parseResponse})},parseResponse:function(t){null!=t&&t.status?this.responseData=c(c({},t),{},{statusName:i()(t.status)}):this.responseData=null}},watch:{url:function(t,e){t!==e&&(this.responseData=null)}},created:function(){this.$store.dispatch("core/setMetaTitle","SEO Tools: Header status checker")}}},30940:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(49832),i=n.n(r),o=n(71995),a=n(42456);const s={name:"seo-redirect-checker",components:{"link-help":n(30160).default},mixins:[a.formHelpers],data:function(){return{url:"",responseData:null,finalUrl:null,finalStatus:null}},methods:{onSubmit:function(){var t=this;this.resetResults(),this.formSubmit({action:function(){return o.default.seo.getHeaders(t.url,!0)},success:this.parseResponse})},parseResponse:function(t){t&&null!=t&&t.status?(this.responseData=(null==t?void 0:t.redirect_chain)||null,this.finalUrl=null==t?void 0:t.url,this.finalStatus=t.status):this.resetResults()},resetResults:function(){this.responseData=null,this.finalUrl=null,this.finalStatus=null},statusDescription:function(t){if(200===t)return"HTTP OK";try{return i()(t)}catch(t){}return""}},watch:{url:function(t,e){t!==e&&this.resetResults()}},created:function(){this.$store.dispatch("core/setMetaTitle","SEO Tools: Redirect checker")}}},39572:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(71995),i=n(42456),o=n(30160),a=n(10916);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"seo-robots-txt",components:{"link-help":o.default,"field-textarea":a.default},mixins:[i.formHelpers,i.clipboardHelpers],defaultCopyText:"Copy to clipboard",data:function(){return{formFields:{crawl:"allow",delay:0,sitemap:"",dirs:[]},searchRobots:{ia_archiver:{name:"Amazon's Alexa",value:!0},Baiduspider:{name:"Baidu",value:!0},"Baiduspider-image":{name:"Baidu Images",value:!0},"Baiduspider-mobile":{name:"Baidu Mobile",value:!0},Bingbot:{name:"Bing",value:!0},"msnbot-media":{name:"Bing Images & Video",value:!0},DuckDuckBot:{name:"DuckDuckGo",value:!0},Googlebot:{name:"Google",value:!0},"Googlebot-Image":{name:"Google Images",value:!0},"Googlebot-Mobile":{name:"Google Mobile",value:!0},Slurp:{name:"Yahoo!",value:!0},YandexBot:{name:"Yandex",value:!0}}}},computed:{searchRobotsColumns:function(){var t=this;return Slickplan.helpers.arrayChunk(Object.keys(this.searchRobots).map((function(e){return d(d({},t.searchRobots[e]),{},{key:e})})),4)},optionsDelay:function(){var t=[5,10,20,60,120].map((function(t){return{value:t,label:"".concat(t," seconds")}}));return t.unshift({value:"0",label:"Default (no delay)"}),t},generatedFile:function(){var t=this,e="",n=this.formFields,r=n.crawl,i=n.delay,o=n.sitemap,a=n.dirs;(e+=Object.keys(this.searchRobots).filter((function(e){return t.searchRobots[e].value===("deny"===r)})).map((function(e){return"User-agent: ".concat(e,"\n").concat(t.searchRobots[e].value?"A":"Disa","llow: /\n")})).join("\n"))&&(e+="\n"),e+="User-agent: *\n".concat("deny"===r?"Disa":"A","llow: /\n");var s=a.filter((function(t){return t})).map((function(t){return"".concat("deny"===r?"A":"Disa","llow: ").concat(t)})).join("\n");return s&&(e+="".concat(s,"\n")),i&&i>0&&(e+="Crawl-delay: ".concat(i,"\n")),o&&(e+="Sitemap: ".concat(o,"\n")),e.trim()}},methods:{onDownload:function(){Slickplan.helpers.requestSingle((function(){return r.default.seo.log("robots_txt","download")}),this.$options.name),Slickplan.helpers.downloadFromResponse({data:this.generatedFile,headers:{"x-filename":"robots.txt","x-content-type":"application/octet-stream"}})},onClipboard:function(){Slickplan.helpers.requestSingle((function(){return r.default.seo.log("robots_txt","clipboard")}),this.$options.name),this.onClipboardCopy()}},created:function(){var t=this;this.$store.dispatch("core/setMetaTitle","SEO Tools: Robots.txt Generator"),this.$watch("formFields.crawl",(function(e,n){e!==n&&l(new Set(Object.values(t.searchRobots).map((function(t){return t.value})))).length<=1&&Object.keys(t.searchRobots).forEach((function(n){return t.searchRobots[n].value="allow"===e}))}))},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},65800:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(42456),i=n(30160),o=n(71995);const a={name:"seo-utm-builder",components:{"link-help":i.default},mixins:[r.formHelpers,r.clipboardHelpers],defaultCopyText:"Copy",data:function(){return{url:"",parameters:{utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""}}},computed:{generatedUrl:function(){var t=this;if(!this.url||!this.parameters.utm_source)return null;var e=new URL(this.url);return Object.keys(this.parameters).forEach((function(n){var r,i=(null!==(r=t.parameters[n])&&void 0!==r?r:"").trim();""!==i&&e.searchParams.set(n,i)})),e.toString()},utmFields:function(){return{utm_source:"Campaign Source",utm_medium:"Campaign Medium",utm_campaign:"Campaign Name",utm_term:"Campaign Term",utm_content:"Campaign Content"}}},methods:{onClipboard:function(){Slickplan.helpers.requestSingle((function(){return o.default.seo.log("utm_builder","clipboard")}),this.$options.name),this.onClipboardCopy()}},created:function(){this.$store.dispatch("core/setMetaTitle","SEO Tools: UTM Builder")},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},39296:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(71995),o=n(42456);const a={name:"seo-xml-generator",components:{"link-help":n(30160).default},mixins:[o.formHelpers],statusTimerId:null,pingTime:3e3,beforeRouteEnter:function(t,e,n){i.default.seo.generateXmlStatus().promise.then((function(t){r=t,n((function(){r=null}))})).catch(_noop)},data:function(){return{url:"",isFinished:!1,timer:null,count:0}},computed:{isProcessing:function(){return null!==this.timer&&!this.isFinished}},methods:{onDownload:function(){i.default.seo.generateXmlDownload().promise.then(Slickplan.helpers.downloadFromResponse)},onSubmit:function(){var t=this;this.isProcessing||this.formSubmit({action:function(){return i.default.seo.generateXml(t.url)},success:this.startCrawler})},run:function(){clearTimeout(this.$options.statusTimerId),this.$options.statusTimerId=setTimeout(this.checkStatus,this.$options.pingTime)},startCrawler:function(t){this.isFinished=!1,this.setTimer((null==t?void 0:t.timer)||0),this.setCount((null==t?void 0:t.count)||0),this.run()},removeCrawler:function(t){this.isFinished=null==t?void 0:t.finished,this.setTimer((null==t?void 0:t.timer)||null),this.setCount((null==t?void 0:t.count)||0),Slickplan.helpers.requestCancel(this.$options.name),clearTimeout(this.$options.statusTimerId)},setTimer:function(t){void 0!==t&&(this.timer=t)},setCount:function(t){"number"==typeof t&&(this.count=t)},checkStatus:function(){var t=this;Slickplan.helpers.requestSingle((function(){var e=i.default.seo.generateXmlStatus();return e.promise.then((function(e){if(null!=e&&e.finished)t.removeCrawler(e);else if(0!==(null==e?void 0:e.crawler)){if(null!=e&&e.error)return t.removeCrawler(),void t.$nextTick((function(){t.$notify({type:"error",text:e.error.message,note:e.error.details||null,format:e.error.details?"markdown":"text",duration:0})}));t.setCount(null==e?void 0:e.count),t.setTimer(null==e?void 0:e.timer),t.run()}else t.removeCrawler()})).catch(t.run),e}),this.$options.name)}},created:function(){var t,e,n,i,o;(this.$store.dispatch("core/setMetaTitle","SEO Tools: XML Sitemap Generator"),r)&&(null!==(t=r)&&void 0!==t&&t.finished?this.isFinished=r.finished:void 0!==(null===(e=r)||void 0===e?void 0:e.count)&&this.startCrawler(r),this.url=(null===(n=r)||void 0===n?void 0:n.url)||"",this.setTimer(null===(i=r)||void 0===i?void 0:i.timer),this.setCount(null===(o=r)||void 0===o?void 0:o.count))},beforeDestroy:function(){clearTimeout(this.$options.statusTimerId)}}},38380:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(71995),i=n(59484),o=n(42456);const a={name:"seo-xml-validator",components:{"link-help":n(30160).default},mixins:[o.formHelpers],data:function(){return{url:"",responseErrors:[],isValid:0}},methods:{onSubmit:function(){var t=this;this.resetResults(),this.formSubmit({action:function(){return r.default.seo.validateXml(t.url)},success:this.parseResponse})},parseResponse:function(t){var e;t?(this.isValid=null!=t&&t.valid?t.links:0,this.responseErrors=this.isValid?[]:(null!==(e=t.errors)&&void 0!==e?e:[]).map((function(t){return(0,i.default)(t)}))):this.resetResults()},resetResults:function(){this.responseErrors=[],this.isValid=0}},watch:{url:function(t,e){t!==e&&this.resetResults()}},created:function(){this.$store.dispatch("core/setMetaTitle","SEO Tools: XML Sitemap Validator")}}},72384:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(71995),o=n(72601),a=n(42456);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"shared-auth",components:{"header-branding":o.default},mixins:[a.formHelpers],data:function(){return{projectType:"sitemap",formData:{password:""}}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),methods:{onSubmit:function(){var t=this;this.formSubmit({action:function(){return i.default[t.projectType].guestAuthenticate(t.formData,t.$route.params[t.projectType])}})},onLogin:function(){Slickplan.helpers.navigateTo("/login",!0)}},created:function(){this.$store.dispatch("core/setMetaTitle","Enter password"),this.projectType=this.$route.params.diagram?"diagram":"sitemap"}}},2688:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(86180),o=n(1756),a=n(17206),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"shared-content",components:{"workflow-status":n(40980).default,"component-loading":i.default,"content-preview":o.default,"shared-sidebar":a.default},computed:u(u({},(0,r.mapState)({xCellStatus:function(t){var e;return null===(e=t.sitemapCell)||void 0===e||null===(e=e[t.sitemapCell.currentCellId])||void 0===e||null===(e=e[s.constants.CELL_DATA_KEY_CONTENT_STATUS])||void 0===e?void 0:e[t.content.currentLanguage]},xIsContentLoading:function(t){return t.content.loading},xWindowSize:function(t){return t.core.windowSize}})),{},{scrollableHeight:function(){return this.xWindowSize.height-this.xWindowSize.headerHeight}}),created:function(){this.$store.commit("content/setLoading",!0)}}},91671:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(48416),i=n(14580),o=n(71995),a=n(40980),s=n(70992),l=["body","comments"];function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={name:"shared-sidebar-content",components:{"workflow-status":a.default},mixins:[s.mixinSitemapPagesList,s.mixinSitemapSectionsList,s.mixinContentLanguages],inject:["changeRoute","onSectionChange"],timerId:null,isManualChange:!1,props:{search:{type:[Array,null],default:null},section:{type:String,default:null}},data:function(){return{pagesTree:[],pagesTreeIds:[],collapsed:[]}},computed:f(f(f({},(0,r.mapState)({xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xContentSectionId:function(t){return t.content.currentSectionId},xSitemapData:function(t){return t.sitemap.details}})),(0,r.mapGetters)({xGetCellData:"sitemapCell/getData",xGetCellsSearch:"sitemapCell/getCellsSearch"})),{},{showStatuses:function(){var t;return(null===(t=this.xSitemapData)||void 0===t||null===(t=t.meta)||void 0===t||null===(t=t.share_options)||void 0===t?void 0:t.show_statuses)||!1}}),methods:{toggle:function(t){this.collapsed.includes(t)?this.collapsed=this.collapsed.filter((function(e){return e!==t})):this.collapsed.push(t)},onPageClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$options.isManualChange=e,this.changeRoute("content",{cell:t},{language:this.xContentLanguage})},loadCell:function(t){var e=this;this.$store.commit("content/resetCurrentBuilderPageData"),this.$store.commit("content/setLoading",!0),Slickplan.helpers.requestSingle((function(){var n=o.default.sitemapCell.getContent(t,e.xContentLanguage,"full");return n.promise.then((function(n){var r=n.body,o=n.comments,a=u(n,l);e.$store.commit("content/setCurrentBuilderPage",t),e.$store.commit("content/setCurrentBuilderPageData",a),e.$store.commit("content/setBuilderBlocks",r||[]),o&&Object.keys(o).forEach((function(n){o[n]&&e.$store.commit("comments/setCounter",f(f({},o[n]),{},{type:i.constants.COMMENTS_TYPE_CONTENT_BLOCK,id:"".concat(t,"-").concat(n,"-").concat(e.xContentLanguage)}))})),e.$options.isManualChange||e.$nextTick(e.scrollToActive),e.$options.isManualChange=!1})).catch((function(){e.changeRoute("content")})).finally((function(){setTimeout((function(){return e.$store.commit("content/setLoading",!1)}),100)})),n}),this.$options.name)},loadPagesIds:function(t){for(var e=[],n=0,r=t.length;n<r;n+=1)t[n]&&(e.push(t[n].id),t[n].childs&&(e=e.concat(this.loadPagesIds(t[n].childs))));return e},loadPages:function(t){var e;this.loadedSection!==this.xContentSectionId&&(this.loadedSection=this.xContentSectionId,this.loadPagesTree(),this.pagesTreeIds=this.loadPagesIds(this.pagesTree));var n=t&&this.pagesTreeIds.includes(t)?t:null===(e=this.pagesTree)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.id;return!!n&&(n===this.$route.params.cell?this.loadCell(n):this.onPageClick(n),!0)},loadPagesTree:function(){var t=this.getPagesList(this.xContentSectionId,void 0,this.search?this.xGetCellsSearch(this.search,!0):void 0,[i.constants.CELL_DATA_KEY_SUBSECTION,i.constants.CELL_DATA_KEY_CONTENT_STATUS,i.constants.CELL_DATA_KEY_PARENT_ID],void 0,!0);this.pagesTree=[].concat(t.home,t.main,t.util,t.foot)},debouncedLoad:function(){var t=this;clearTimeout(this.$options.timerId),this.$store.commit("content/setLoading",!0),this.$options.timerId=setTimeout((function(){t.loadPages(t.xCurrentCellAlias)}),25)},countChilds:function(t){for(var e=t.length,n=0,r=e;n<r;n+=1)t[n].childs&&t[n].childs.length&&(e+=this.countChilds(t[n].childs));return e},scrollToActive:function(){if(this.$el){var t=this.$el.querySelector(".active");t&&t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}}},watch:{search:function(){this.loadPagesTree()},section:{handler:function(t,e){t!==e&&t!==this.xContentSectionId&&(this.$store.commit("content/setCurrentSection",t),this.debouncedLoad())},immediate:!0},xContentLanguage:function(t,e){t!==e&&t!==this.$route.query.language&&this.onPageClick(this.xCurrentCellAlias)},"$route.query.language":{handler:function(t){this.$store.commit("content/setLanguage",t),this.debouncedLoad()},immediate:!0},"$route.params.cell":{handler:function(t){var e=this.xGetCellData(t,i.constants.CELL_DATA_KEY_SECTION_ID);e&&(this.$store.commit("content/setCurrentSection",e),this.onSectionChange(e)),this.$store.dispatch("sitemapCell/setCurrent",t),this.debouncedLoad()},immediate:!0}},mounted:function(){this.debouncedLoad()},beforeDestroy:function(){clearTimeout(this.$options.timerId),Slickplan.helpers.requestCancel(this.$options.name)}}},86476:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"content-table-preview",mixins:[n(92704).mixinContentTable],props:{id:{type:[String,Number],required:!0},blockContent:{type:Object,required:!0}}}},97724:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(86180),o=n(92764),a=n(17206);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"shared-diagram",components:{"component-loading":i.default,"diagram-structure":o.default,"shared-sidebar":a.default},computed:c(c({},(0,r.mapState)({xCurrentDiagramId:function(t){return t.diagram.currentId}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"}))}},11664:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(48416),i=n(39128),o=n(66404),a=n(65056);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={name:"shared-diagram-header",components:{DynamicTimestamp:i.default},mixins:[a.mixinProjectStatus,o.mixinCommentsBase],computed:c(c({},(0,r.mapState)({xDiagramLastSaved:function(t){return t.project.lastSaved.diagram.timestamp}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData"}))}},93404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(14580),o=n(71995);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"shared-sidebar-diagram",inject:["changeRoute","setAllowedSectionsIds"],isManualChange:!1,props:{search:{type:[Array,null],default:null},section:{type:String,default:null}},data:function(){return{collapsed:[]}},computed:l(l(l({},(0,r.mapState)({xDiagramsIds:function(t){return t.diagram.ids},xCurrentDiagramId:function(t){return t.diagram.currentId}})),(0,r.mapGetters)({xGetCellData:"sitemapCell/getData",xDiagramsList:"diagram/getList"})),{},{diagramsList:function(){var t=this,e=[],n={};return this.xDiagramsList.forEach((function(r){var o=r.cell_id,a=r.cell_name,s=r.alias,l=r.title;"number"!=typeof n[o]&&(n[o]=e.length,e.push({cell_id:o,cell_name:a,diagrams:[],section_id:t.xGetCellData(o,i.constants.CELL_DATA_KEY_SECTION_ID)||i.constants.SITEMAP_SECTION_MAIN_ID})),e[n[o]].diagrams.push({alias:s,title:l,keywords:Slickplan.helpers.normalizeString("".concat(a," ").concat(l))})})),Slickplan.helpers.sortString(e,"cell_name","asc")},filteredDiagramList:function(){var t=this;return this.search?Slickplan.helpers.objectCloneDeep(this.diagramsList).map((function(e){return e.diagrams=e.diagrams.filter((function(e){return t.search.every((function(t){return~e.keywords.indexOf(t)}))})),e})).filter((function(t){return t.diagrams.length})):"all"===this.section?this.diagramsList:this.diagramsList.filter((function(e){return e.section_id===t.section}))}}),methods:{onClick:function(t){this.$options.isManualChange=!0,this.changeRoute("diagram",{diagram:t})},toggle:function(t){this.collapsed.includes(t)?this.collapsed=this.collapsed.filter((function(e){return e!==t})):this.collapsed.push(t)},loadDiagram:function(t){var e=this;Slickplan.helpers.requestSingle((function(){e.$store.dispatch("core/setLoading",!0);var n=o.default.diagram.getDetails(t,!0);return n.promise.then((function(t){t.status=i.constants.STATUS_SHARED,e.$store.dispatch("diagramHelpers/reloadAll",t),e.$store.commit("comments/setCounter",{type:i.constants.COMMENTS_TYPE_DIAGRAM,id:t.alias,total:t.comments||0})})).catch(_noop).finally((function(){setTimeout((function(){return e.$store.dispatch("core/setLoading",!1)}),50)})),n}),this.$options.name)},scrollToActive:function(){if(this.$el){var t=this.$el.querySelector("li.active");t&&t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}}},watch:{"$route.params.diagram":{handler:function(t,e){t&&t!==e&&this.loadDiagram(t)},immediate:!0},xCurrentDiagramId:function(t,e){t===e||this.$options.isManualChange||this.$nextTick(this.scrollToActive),this.$options.isManualChange=!1}},mounted:function(){var t;this.diagramsList.length?(this.setAllowedSectionsIds(this.diagramsList.map((function(t){return t.section_id}))),t=this.$route.params.diagram&&this.xDiagramsIds.includes(this.$route.params.diagram)?this.$route.params.diagram:this.diagramsList[0].diagrams[0].alias,this.loadDiagram(t)):this.changeRoute()},beforeDestroy:function(){Slickplan.helpers.requestCancel(this.$options.name)}}},23240:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,n){var i;return i=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==r(i)?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e),n.d(e,{default:()=>a});const a={name:"shared-header",computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,n(48416).mapState)({xAccountData:function(t){return t.user.user},xUserPreferences:function(t){return t.user.preferences}}))}},78624:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"shared-sidebar-mockup",inject:["changeRoute","setAllowedSectionsIds","setMockupId"],isManualChange:!1,props:{search:{type:[Array,null],default:null},section:{type:String,default:null},groupedMockups:{type:Array,required:!0},currentFileId:{type:[Number,String],default:0}},data:function(){return{collapsed:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xMockups:function(t){return t.mockup.mockups}})),methods:{onClick:function(t,e){this.$options.isManualChange=!0,this.setMockupId(t,e)},toggle:function(t){this.collapsed.includes(t)?this.collapsed=this.collapsed.filter((function(e){return e!==t})):this.collapsed.push(t)},scrollToActive:function(){if(this.$el){var t=this.$el.querySelector("li.active");t&&t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}}},watch:{search:function(t,e){t!==e&&this.$store.commit("mockup/setFilters",{key:"search",value:t})},section:function(t,e){t!==e&&this.$store.commit("mockup/setFilters",{key:"section",value:t})},xMockups:{handler:function(t){this.setAllowedSectionsIds(o(new Set(t.map((function(t){return t.section_id})))))},immediate:!0},currentFileId:function(t,e){t===e||this.$options.isManualChange||this.$nextTick(this.scrollToActive),this.$options.isManualChange=!1}}}},72408:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"shared-mockup",components:{"mockup-preview":n(12886).default},methods:{onMockupChange:function(t){var e=t.cellId,n=t.mockupId;this.$router.push({name:"sitemap-shared-mockup",params:{sitemap:Slickplan.globalVars.sitemapAlias,mockup:"".concat(n,"t").concat(e)},query:{}}).catch(_noop)}},beforeMount:function(){if(this.$route.params.mockup){var t=null,e=null;if(this.$route.params.cell)t=this.$route.params.cell,e=this.$route.params.mockup;else{var n=this.$route.params.mockup.split("t");e=n.shift(),t=n.join("t")}this.$store.commit("mockup/setPreviewData",{mockupId:e,cellId:t,mode:"view"})}this.$store.commit("mockup/setPreviewVisible",!0)},beforeDestroy:function(){this.$store.commit("mockup/setPreviewVisible",!1)}}},47640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(29352),o=n(38020),a=n(23908),s=n(70992),l=n(14580);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"shared-sidebar",components:{"list-contents":i.default,"list-diagrams":o.default,"list-mockups":a.default},mixins:[s.mixinSitemapSectionsList],provide:function(){return{changeRoute:this.changeRoute,setAllowedSectionsIds:this.setAllowedSectionsIds,onSectionChange:this.onSectionChange}},props:{type:{type:String,required:!0,validator:function(t){return["diagram","content","mockup"].includes(t)}},groupedMockups:null,currentFileId:0},data:function(){return{allowedSectionsIds:[],searchQuery:"",currentSectionId:"all",headHeight:0}},computed:d(d(d({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize},xFilters:function(t){return t.mockup.filters},xSitemapData:function(t){return t.sitemap.details},xAccountData:function(t){return t.user.user}})),(0,r.mapGetters)({xGetCellData:"sitemapCell/getData",xDiagramsList:"diagram/getList"})),{},{mockupSortFilter:function(){return{"timestamp-desc":"Recent","timestamp-asc":"Oldest","name-asc":"Name A-Z","name-desc":"Name Z-A","order-asc":"Manual"}},filterViewStatus:{get:function(){var t;return(null===(t=this.xSitemapData)||void 0===t||null===(t=t.meta)||void 0===t||null===(t=t.share_options)||void 0===t?void 0:t.show_statuses)||!1},set:function(t){this.$store.commit("sitemap/setData",{meta:{share_options:{show_statuses:t}}})}},contentViewFilter:{get:function(){var t,e=null===(t=this.xSitemapData)||void 0===t||null===(t=t.meta)||void 0===t||null===(t=t.share_options)||void 0===t?void 0:t.content_view_mode;return"rendered"===e||"block"===e?e:this.xAccountData.trial?"block":"rendered"},set:function(t){this.$store.commit("sitemap/setData",{meta:{share_options:{content_view_mode:t}}})}},heading:function(){return"diagram"===this.type?"Pages with diagrams":"mockup"===this.type?"Pages with mockups":"List of pages"},hasSearch:function(){var t=Slickplan.helpers.normalizeString(this.searchQuery).split(" ");return t.length&&(t=t.filter((function(t){return!Slickplan.helpers.isBlank(t)}))),t.length?t:null},filteredSectionsList:function(){var t=this,e=this.sectionsListWithMain;return(e=(e="content"!==this.type?e.filter((function(e){return t.allowedSectionsIds.includes(e.id)})):e.filter((function(e){return!t.emptySectionsList.includes(e.id)}))).map((function(t){var e=t.name;return e.length>16&&(e="".concat(e.substring(0,15),"...")),{key:t.id,value:e}}))).length>1?"content"===this.type?e:[{key:"all",value:"All"}].concat(e):[]},sidebarHeightStyle:function(){return{height:"".concat(this.xWindowSize.height-this.xWindowSize.headerHeight,"px")}},scrollableHeight:function(){return this.xWindowSize.height-this.xWindowSize.headerHeight-this.headHeight}}),methods:{mockupFilterChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$store.commit("mockup/setFilters",{key:t,value:e})},setAllowedSectionsIds:function(t){this.allowedSectionsIds=t},onSectionChange:function(t){return this.currentSectionId!==t&&(this.searchQuery="",this.currentSectionId=t,!0)},changeRoute:function(t,e,n){this.$router.push({name:"sitemap-shared".concat(t?"-".concat(t):""),params:d({sitemap:Slickplan.globalVars.sitemapAlias},e||{}),query:n||{}}).catch(_noop)},sectionNameTrim:function(t){var e="diagram"===this.type?20:10;return"Main sitemap"===t?"Main":t.length>e?"".concat(t.substring(0,e-2),"..."):t}},watch:{hasSearch:function(t,e){"content"!==this.type&&t!==e&&"all"!==this.currentSectionId&&(this.currentSectionId="all")}},beforeMount:function(){this.searchQuery="",this.currentSectionId="content"===this.type?l.constants.SITEMAP_SECTION_MAIN_ID:"all",this.allowedSectionsIds=[]},mounted:function(){var t=this;this.$nextTick((function(){var e=t.$el.querySelector(".toolbar-search"),n=t.$el.querySelector("._head");t.headHeight=(e?Math.ceil(e.getBoundingClientRect().height):0)+(n?Math.ceil(n.getBoundingClientRect().height):0)}))}}},21064:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>E});var r=n(48416),i=n(71995),o=n(45780),a=n(5416),s=n(3992),l=n(77138),c=n(78612),u=n(46609),d=n(22164),f=n(14580),p=n(70992),m=n(65056),h=n(30644),v=n(66404),b=["settings","archetypes","themes","contributors"];function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function g(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){var r;return r=function(t,e){if("object"!=y(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==y(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=null;const E={name:"shared-sitemap",components:{"project-header":o.default,"sitemap-header":a.default},mixins:[p.mixinSitemapLoad,m.mixinProjectSizes,p.mixinCurrentCellDiagrams,p.mixinCurrentCellDiagramsMethods,p.mixinProjectZoom,m.mixinProjectStatus,v.mixinCommentsBase,h.mixinMockupClick],data:function(){return{hasSidebar:!1,shouldHaveScrollbars:!0}},computed:k(k({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize},xSitemapData:function(t){return t.sitemap.details}})),(0,r.mapGetters)({xGetCellData:"sitemapCell/getData"})),methods:{updateProjectType:function(t){var e="sitemap-shared",n=t.replace(e,""),r={project:"sitemap",sitemap:!0,diagram:"-diagram"===n,content:"-content"===n,mockup:"-mockup"===n};this.$store.commit("project/setCurrentProjectType",r),this.shouldHaveScrollbars=!r.content&&!r.mockup,this.hasSidebar=r.diagram,document.documentElement.className="".concat(document.documentElement.className).split(" ").filter((function(t){return t&&t.indexOf(e)<0})).concat(t).join(" ")},onCellClick:function(t){var e=this,n=t.cellId,r=t.property,i=t.data;r===f.constants.CELL_DATA_HAS_CONTENT?this.$root.ifAllowedFeatureThen(f.constants.FEATURE_CONTENT,(function(){e.clearSearch(),e.$root.routerSitemapPush("-shared-content",{cell:n})})):r===f.constants.CELL_DATA_HAS_MOCKUPS?this.$root.ifAllowedFeatureThen(f.constants.FEATURE_FILES,(function(){e.clearSearch();var r={},o=Array.isArray(i)?null==i?void 0:i[0]:null==i?void 0:i.mockupId,a="-shared-mockup";o&&("number"==typeof o||/^[0-9]+$/.test(o))?r.mockup="".concat(o,"t").concat(n):o&&(a="-shared-mockup-item",r.cell=n,r.mockup=o),t.fromCell?e.onClickMockup(n,o,"view",!0):e.$root.routerSitemapPush(a,r)})):r===f.constants.CELL_DATA_HAS_DIAGRAMS&&Array.isArray(i)&&1===i.length?(this.clearSearch(),this.onDiagramOpen(i[0])):["sitemap-shared","sitemap-shared-section"].includes(this.$route.name)?this.doCellClick(n,r,i):this.$root.routerSitemapPush("-shared").finally((function(){return e.doCellClick(n,r,i)}))},doCellClick:function(t,e,n){if(this.clearSearch(),e!==f.constants.CELL_DATA_KEY_SUBSECTION){this.$store.dispatch("sitemapCell/setCurrent",t);var r=[{name:"Info",component:s.default}];if(this.xGetCellData(t,f.constants.CELL_DATA_HAS_FILES)&&r.push({name:"Files",component:l.default,requiredFeature:f.constants.FEATURE_FILES,active:e===f.constants.CELL_DATA_HAS_FILES}),this.canSeeComments&&r.push({name:"Feedback",component:c.default,active:"comments"===e}),this.xSitemapData.metrics){var i=this.xGetCellData(t,f.constants.CELL_DATA_KEY_LINKS);i&&Array.isArray(i)&&i.some((function(t){return"external"===t.type}))&&r.push({name:"Page Metrics",requiredFeature:f.constants.FEATURE_METRICS,component:u.default})}this.$store.dispatch("panel/set",{id:"cell",visibility:!0,title:n&&n[f.constants.CELL_DATA_KEY_LABEL]?n[f.constants.CELL_DATA_KEY_LABEL]:this.xGetCellData(t,f.constants.CELL_DATA_KEY_LABEL,"Page"),highlight:e,tabs:r,buttons:[]})}else this.$store.dispatch("sitemapSection/pushBreadcrumb",n)},loadSitemapProject:function(t,e){var n=this,r=_(t,4),i=r[0],o=r[1],a=r[2],s=r[3];this.$store.dispatch("team/set",s);var l,c=i.settings,u=i.archetypes,d=i.themes,p=i.contributors,m=g(i,b);(this.loadData("sitemap/setArchetype",u),this.loadData("colors/addTheme",d),this.loadProjectSettings(c),e&&(m.status=e),m.meta)&&(m.meta.cells_ui=Slickplan.helpers.objectMergeDeep(m.meta.cells_ui||{},m.meta.share_cells_ui||{}),m.status===f.constants.STATUS_SHARED&&null!==(l=m.meta)&&void 0!==l&&null!==(l=l.share_options)&&void 0!==l&&l.visible_utils&&this.$store.commit("sitemap/setSectionVisibility",!0));this.$store.commit("sitemap/setData",m),o.forEach((function(t){n.$store.commit("diagram/add",t),t.comments&&n.$store.commit("comments/setCounter",{type:f.constants.COMMENTS_TYPE_DIAGRAM,id:t.alias,total:t.comments})})),p&&this.$store.dispatch("project/setContributors",p),a&&this.loadSitemapStructure(a),this.$store.dispatch("sitemapCell/regroupCells"),this.$store.dispatch("core/setMetaTitle",this.$trans("titles.sitemap",m))},onScroll:function(t){d.EventBus.$emit("project-scrollable-scroll",t)},clearSearch:function(){d.EventBus.$emit("search-reset")}},watch:{$route:function(t){this.updateProjectType(t.name)},"xWindowSize.headerHeight":function(t){this.$store.commit("project/setHeaderVisibility",t)},projectWidth:function(t,e){this.shouldHaveScrollbars&&t!==e&&this.$store.commit("project/setContainerSize",{width:t})},projectHeight:function(t,e){this.shouldHaveScrollbars&&t!==e&&this.$store.commit("project/setContainerSize",{height:t})}},beforeRouteEnter:function(t,e,n){var r=Slickplan.helpers.getValue(Slickplan.globalVars.guestProjects,[t.params.sitemap,"token"]);r&&i.default.setGuestToken(r),Promise.all([i.default.sitemap.getStructure(t.params.sitemap).promise,i.default.sitemap.getBaseDetails({settings:1,archetypes:1,themes:1,contributors:1,comments:1,metrics:1},t.params.sitemap).promise,i.default.sitemap.getDiagramsList(t.params.sitemap,!0,!0).promise,i.default.team.getUsersList().promise]).then((function(t){var e=_(t,4),r=e[0],i=e[1],o=e[2],a=e[3];w=[i,o,r,a],n((function(){w=null}))})).catch(_noop)},created:function(){this.updateProjectType(this.$route.name),this.loadSitemapProject(w,f.constants.STATUS_SHARED)},mounted:function(){d.EventBus.$on("cell-click",this.onCellClick)},beforeDestroy:function(){d.EventBus.$off("cell-click",this.onCellClick)}}},59060:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(70992),o=n(14580);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"shared-sitemap-header",mixins:[i.mixinContentLanguages],fallbackModule:"x",data:function(){return{isLoading:!1}},computed:l(l(l({},(0,r.mapState)({xSitemapSectionBreadcrumbs:function(t){return t.sitemapSection.breadcrumbs},xCellsBySection:function(t){return t.sitemapCell.cellsBySectionsWithHidden},xSitemapData:function(t){return t.sitemap.details},xContentLanguage:function(t){return t.content.currentLanguage},xProjectType:function(t){return t.project.currentProjectType},xDiagramsIds:function(t){return t.diagram.ids},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xCurrentSectionId:function(t){return t.sitemapSection.currentId}})),(0,r.mapGetters)({xGetSectionBreadcrumb:"sitemapSection/getBreadcrumbs",xGetPagesCount:"sitemapCell/getPageCount",xGetCellsByAttribute:"sitemapCell/getCellsByAttribute",xGetCellData:"sitemapCell/getData"})),{},{canDisplayLanguages:function(){return this.languages.length>1&&this.canHaveBreadcrumbs},canHaveBreadcrumbs:function(){return"-content"===this.currentModule||this.currentModule===this.$options.fallbackModule},versionsArray:function(){var t=this;return Object.keys(this.xSitemapData.versions).map((function(e){return{key:e,value:t.xSitemapData.versions[e].version}}))},titleBreadcrumbs:function(){return this.xGetSectionBreadcrumb(this.xCurrentCellAlias?this.xGetCellData(this.xCurrentCellAlias,o.constants.CELL_DATA_KEY_SECTION_ID):Slickplan.globalVars.sectionAlias)||[]},currentModule:{get:function(){return this.xProjectType.content?"-content":this.xProjectType.mockup?"-mockup":this.xProjectType.diagram?"-diagram":this.$options.fallbackModule},set:function(t){var e=this;if(t!==this.currentModule){this.isLoading=!0;var n=this.languages.length>1&&(t===this.$options.fallbackModule||"-content"===t)?{language:this.xContentLanguage}:null,r=t===this.$options.fallbackModule?this.xCurrentSectionId:null;this.$router.push({name:"sitemap-shared".concat(t===this.$options.fallbackModule?"":t),params:{sitemap:Slickplan.globalVars.sitemapAlias,section:r},query:n}).then((function(){t===e.$options.fallbackModule&&e.$store.dispatch("sitemapCell/setCurrent",null)})).catch(_noop).finally((function(){e.isLoading=!1}))}}},modules:function(){return[{value:this.$options.fallbackModule,label:"Sitemap Builder"},{value:"-diagram",label:"Diagram Maker",disabled:!this.$root.isAllowedFeature(o.constants.FEATURE_CELL_DIAGRAMS)||this.xDiagramsIds.length<=0},{value:"-content",label:"Content Planner",disabled:!this.$root.isAllowedFeature(o.constants.FEATURE_CONTENT)||!this.xGetCellsByAttribute(o.constants.CELL_DATA_HAS_CONTENT).length},{value:"-mockup",label:"Design Mockups",disabled:!this.$root.isAllowedFeature(o.constants.FEATURE_FILES)||!this.xGetCellsByAttribute(o.constants.CELL_DATA_HAS_MOCKUPS).length}]},pagesCount:function(){return this.xGetPagesCount()}}),methods:l(l({},(0,r.mapActions)({xSitemapSectionBreadcrumbBack:"sitemapSection/backBreadcrumb"})),{},{onLanguageChange:function(t){this.$store.commit("content/setLanguage",t)},onVersionChange:function(t){this.xSitemapData.alias!==t&&Slickplan.helpers.navigateTo(this.$router.resolve({name:"sitemap-shared",params:{sitemap:t}}).href,!0)},onBreadcrumbClick:function(t){if(this.titleBreadcrumbs.length){var e="number"==typeof t?t+1:0;if(this.xProjectType.content){var n=this.titleBreadcrumbs[e],r=n.section_id,i=n.cell_id;this.$store.commit("content/setCurrentSection",r),this.$store.dispatch("sitemapCell/setCurrent",i)}else{var o=this.xSitemapSectionBreadcrumbs.length-e;o>0&&this.xSitemapSectionBreadcrumbBack(o)}}}})}},78736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(71995),i=n(65056),o=n(70992),a=n(14580);const s={name:"sitemap-crawler",mixins:[o.mixinSitemapCurrentCell,i.mixinProjectStatus],pingTime:2222,data:function(){return{status:null,count:0,url:"",urlIndex:-1,processedUrls:[]}},computed:{progressMessage:function(){return"crawling"===this.status?"".concat(this.$plural("Page",this.count,!0)," Crawled"):"canceled"===this.status?"Canceled":"building"===this.status?"Building Sitemap":"Loading…"}},methods:{run:function(){window.slickplanCrawlerTimerId=setTimeout(this.checkStatus,this.$options.pingTime)},callApi:function(t){var e=this;this.clearActions(),this.status="cancel"===t?"canceled":"building",Slickplan.helpers.requestSingle((function(){var n=r.default.sitemap.crawler(t);return n.promise.then((function(t){t&&t.refresh||e.checkStatus()})),n}),this.$options.name)},checkStatus:function(){var t=this;Slickplan.helpers.requestSingle((function(){if("canceled"!==t.status){var e=r.default.sitemap.crawler("progress",t.urlIndex);return e.promise.then((function(e){if(e.error)return t.removeCrawler(),void t.$nextTick((function(){t.$notify({type:"error",text:e.error.message,note:e.error.details||null,format:e.error.details?"markdown":"text",duration:0})}));e.url&&(t.url=e.url),e.building?t.status="building":e.count&&(t.status="crawling",t.count=e.count,e.url_index&&(t.urlIndex=e.url_index),Array.isArray(e.urls)&&e.urls.length&&(t.processedUrls=t.processedUrls.concat(e.urls))),t.run()})).catch(_noop),e}}),this.$options.name)},removeCrawler:function(){this.clearActions(),this.$store.commit("sitemap/setData",{status:a.constants.STATUS_ACTIVE,crawler:null}),this.$root.routeSwitchTool("sitemap")},clearActions:function(){Slickplan.helpers.requestCancel(this.$options.name),window.slickplanCrawlerTimerId&&clearTimeout(window.slickplanCrawlerTimerId)}},mounted:function(){this.isActiveCrawler?this.checkStatus():this.removeCrawler()},beforeDestroy:function(){this.clearActions()}}},85136:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>_});var r=n(48416),i=n(17904),o=n(28906),a=n(57868),s=n(22916),l=n(1e3),c=n(17676),u=n(12886),d=n(53916),f=n(65056),p=n(66404),m=n(69372),h=n(14580);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){var r;return r=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==v(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _={name:"sitemap-helper",components:{AiChatbot:m.default,"batch-edit-bar":i.default,"diagram-batch-edit":l.default,"diagram-sidebar":c.default,"project-toolbar":s.default,panel:o.default,"websocket-chat":a.default,"mockup-preview":u.default,"mockup-upload-bar":d.default},mixins:[f.mixinProjectStatus,p.mixinCommentsBase],computed:y(y(y({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details},xProjectType:function(t){return t.project.currentProjectType},xIsMockupVisible:function(t){return t.mockup.isPreviewVisible}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{isInSitemapDiagram:function(){var t=this.xProjectType,e=t.sitemap,n=t.diagram;return e&&n&&"cell"===n},isInSitemapContent:function(){return this.xProjectType.sitemap&&this.xProjectType.content},isInDesignMockups:function(){return this.xProjectType.mockup},canUseAi:function(){return(this.isProjectEditable||this.currentProjectDetails.ai)&&this.$root.isAllowedFeature(h.constants.FEATURE_AI)},canViewAi:function(){return this.canUseAi&&!this.isInSitemapDiagram&&!this.xProjectType.diagram&&!this.isInSitemapContent&&!this.isInDesignMockups}})}},94812:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"sitemap-search-results",components:{"sitemap-cell":n(24896).default},props:{query:{type:[Number,String],required:!0}},computed:a(a(a({},(0,r.mapState)({xCurrentSectionId:function(t){return t.sitemapSection.currentId}})),(0,r.mapGetters)({xCellsDesign:"sitemap/cellsDesign",xGetCellsSearch:"sitemapCell/getCellsSearch"})),{},{foundCells:function(){return this.xGetCellsSearch(this.query)},wrapperClasses:function(){return["cells-box-".concat(this.xCellsDesign.boxSize),"cells-font-".concat(this.xCellsDesign.fontSize)]}})}},84719:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(48416),i=n(2376),o=n.n(i),a=n(71995),s=n(86180),l=n(22572),c=n(42524),u=n(48728),d=n(65056),f=n(70992),p=n(14580);n(22164);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){var r;return r=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==m(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y={name:"sitemap-sitemap",components:{"component-loading":s.default,"sitemap-structure":l.default,"sitemap-search-results":c.default},mixins:[d.mixinProjectStatus,f.mixinSitemapLoad,d.mixinProjectImportExport],scrollableEl:null,wsRoom:null,forceSectionsTransitionDirection:null,data:function(){return{sectionsTransitionDirection:"",classNames:[],isLoaded:!1}},computed:v(v(v({},(0,r.mapState)({xSitemapSectionBreadcrumbs:function(t){return t.sitemapSection.breadcrumbs},xPanelVisible:function(t){return t.panel.visible},xCellsBySection:function(t){return t.sitemapCell.cellsBySectionsWithHidden},xSearchQuery:function(t){return t.project.search},xOnboard:function(t){return t.core.onboard},xScrollableCoords:function(t){return t.project.scrollableCoords[this.sectionId]||{x:0,y:0}}})),(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{sectionId:function(){return this.$route.params.section||p.constants.SITEMAP_SECTION_MAIN_ID}}),methods:{transitionAfterLeave:function(){var t=document.getElementsByTagName("style");if(t){var e="colors-stylesheet-",n=e+this.sectionId;o()(t,(function(t){t&&t.id!==n&&0===t.id.indexOf(e)&&t.parentElement.removeChild(t)}))}},onBeforeStructureLeave:function(){this.$store.commit("project/setScrollableCoords",!1)},onAfterStructureLoaded:function(){this.isProjectStructureEditable||this.sectionId===p.constants.SITEMAP_SECTION_MAIN_ID||this.xCellsBySection[this.sectionId].filter((function(t){return t!==p.constants.CELL_ID_HOME_PLACEHOLDER})).length?this.$options.scrollableEl&&this.$options.scrollableEl.scrollTo(this.xScrollableCoords.x,this.xScrollableCoords.y):(this.$store.dispatch("sitemapCell/new",{to:p.constants.CELL_ID_HOME_PLACEHOLDER,type:p.constants.CELL_ADD_SUBPAGE}),this.$options.scrollableEl&&this.$options.scrollableEl.scrollTo(0,0)),this.$store.commit("project/setScrollableCoords",!0)},onWebsocketChange:function(t){var e=this,n=t.data;n&&"object"===m(n)&&n.store&&Array.isArray(n.store)&&n.store.length&&n.store.forEach((function(t){t.commit?e.$store.commit(t.commit,t.payload):t.dispatch&&e.$store.dispatch(t.dispatch,t.payload)}))},onLoaded:function(t){var e=this;this.loadSitemapStructure(t),this.classNames=this.isProjectStructureEditable?["is-editable"]:[],this.isProjectStructureEditable&&this.$root.isAllowedFeature(p.constants.FEATURE_IMPORT_CRAWLER)&&this.$route.query.crawlerUrl&&this.$route.query.crawlerUrl.startsWith("http")&&(this.$store.dispatch("panel/set",{id:"import",visibility:!0,minWidth:533,title:"Import",tabs:this.importTabs,currentTab:"crawler"}),this.$nextTick((function(){e.$store.dispatch("panel/setNotification",{type:"info",text:"Select the options below to begin crawling the website."})}))),this.isProjectEditable&&this.xOnboard.includes("sitemap")&&this.$modal.show(u.default,{type:"sitemap"},{width:550,closeButton:!1}),this.isProjectShared||(this.$options.wsRoom=["sitemap",Slickplan.globalVars.sitemapAlias],Slickplan.websocket.room(this.$options.wsRoom).listenForWhisper("sitemap.update",this.onWebsocketChange))}},watch:{xPanelVisible:function(t,e){t&&!e&&this.$store.dispatch("sitemapCell/setSelectedCells",[])},xSitemapSectionBreadcrumbs:function(t,e){this.$store.dispatch("sitemapCell/setSelectedCells",[]);var n=Slickplan.helpers.getValue([].concat(t).pop(),"section_id");n===p.constants.SITEMAP_SECTION_MAIN_ID&&(n=null);var r=this.$router.resolve({name:this.isProjectShared?"sitemap-shared".concat(n?"-section":""):"sitemap",params:{sitemap:Slickplan.globalVars.sitemapAlias,section:n}});r&&r.href&&this.$router.currentRoute.path!==r.href&&(t.length!==e.length&&(this.$options.forceSectionsTransitionDirection=t.length<e.length?"right":"left"),this.$router.push(r.href).catch(_noop))},"$route.path":function(t,e){if(this.$options.forceSectionsTransitionDirection)this.sectionsTransitionDirection=this.$options.forceSectionsTransitionDirection,this.$options.forceSectionsTransitionDirection=null;else{var n=t.replace(/^\/+|\/+$/g,"").split("/"),r=e.replace(/^\/+|\/+$/g,"").split("/");n.length>2&&r.length>2&&"project"===n[0]&&n[0]===r[0]&&n[1]===r[1]&&n[2]===r[2]&&(this.sectionsTransitionDirection=n.length<r.length?"right":"left")}}},mounted:function(){var t=this;this.$options.scrollableEl=document.getElementById("project-scrollable"),this.isProjectShared?this.isLoaded=!0:(this.isLoaded=!1,Slickplan.helpers.requestSingle((function(){var e=a.default.sitemap.getStructure();return e.promise.then(t.onLoaded).catch(_noop).finally((function(){t.isLoaded=!0})),e}),this.$options.name))},beforeDestroy:function(){this.$options.wsRoom&&Slickplan.websocket.leaveRoom(this.$options.wsRoom)}}},40040:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var r=n(48416),i=n(2376),o=n.n(i),a=n(24896),s=n(84672),l=n(14580),c=n(65056),u=n(22164),d=n(24592),f=n(42456),p=["width","height"];function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function h(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==m(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const g={name:"sitemap-structure",scrollableEl:null,footScrollTimerId:null,refreshColorsTimerId:null,mouseDownEvent:null,lastScrollLeft:0,lastScrollLeftAtChange:0,lastScrollDirection:0,components:{StructureSeparator:d.default,"structure-empty":s.default,"sitemap-cell":a.default},mixins:[c.mixinProjectStatus,f.mixinSpaceGrab],props:{sectionId:{type:String,required:!0}},data:function(){return{scrollTop:0,scrollLeft:0,scrollLeftOffset:0,minContainerSizes:{width:0,height:0},translateX:{util:0,foot:0},isGrabbing:!1}},computed:b(b(b({},(0,r.mapState)({xSectionCells:function(t){return t.sitemapCell.cellsBySections[this.sectionId]||[]},xSectionCellsWithHidden:function(t){return t.sitemapCell.cellsBySectionsWithHidden[this.sectionId]||[]},xSectionData:function(t){return Slickplan.helpers.objectMergeDeep(t.sitemapSection.defaultData,t.sitemapSection.sectionsData[this.sectionId]||{})},xSitemapScale:function(t){return t.sitemap.scale},xSectionsVisible:function(t){return t.sitemap.sectionsVisible},xProjectHeaderHeight:function(t){return t.project.headerHeight},xPanelVisible:function(t){return t.panel.visible},xPanelPreviewComponent:function(t){return t.panel.previewComponent},xSitemapCells:function(t){return t.sitemapCell.cells},xSitemapNewCell:function(t){return t.sitemapCell.newCell},xSitemapCellDragging:function(t){return t.sitemapCell.dragging},xSitemapCellColorsIteration:function(t){return t.sitemapCell.colorsPropsIteration},xCellsByParents:function(t){return t.sitemapCell.cellsByParents},xCellsByParentsWithHidden:function(t){return t.sitemapCell.cellsByParentsWithHidden},xLines:function(t){return t.sitemapCell.lines},xWindowSize:function(t){return t.core.windowSize},xScrollbarWidth:function(t){return t.core.scrollbarWidth},xColorTemp:function(t){return t.colors.tempColors},xColorThemes:function(t){return t.colors.themes},xSitemapStructureSize:function(t){return t.sitemapCell.structureSize},xSitemapStructureLoaded:function(t){return t.sitemapCell.loaded},xScrollableContainerSize:function(t){return t.project.containerSize},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xScrollableCoordsEnabled:function(t){return t.project.scrollableCoordsEnabled},xScrollableCoords:function(t){return t.project.scrollableCoords[this.sectionId]||{x:0,y:0}}})),(0,r.mapGetters)({xCellsDesign:"sitemap/cellsDesign",xPanelWidth:"panel/getWidth",xGetCellData:"sitemapCell/getData",xGetCellsInViewport:"sitemapCell/getCellsInViewport",xGetSectionColors:"colors/getSectionColors",xCurrentCellForKeyShortcut:"sitemapHelpers/getCellIdForShortcut"})),{},{currentSectionColors:function(){return this.xGetSectionColors(this.sectionId)},currentCellWidth:function(){return Slickplan.sitemapCellsMath.CELL_WIDTH[this.xCellsDesign.boxSize]},currentCellHeight:function(){return Slickplan.sitemapCellsMath.CELL_HEIGHT[this.xCellsDesign.boxSize]},isNewSitemap:function(){return 0===this.xSitemapCells.length||1===this.xSitemapCells.length&&this.xSitemapNewCell&&this.xSitemapCells.includes(this.xSitemapNewCell)},wrapperClasses:function(){var t=this.currentProjectDetails.ai,e=["cells-box-".concat(this.xCellsDesign.boxSize),"cells-font-".concat(this.xCellsDesign.fontSize)];return(!this.isProjectStructureEditable||this.isProjectShared||t)&&e.push("not-editable"),this.isNewSitemap&&e.push("is-new-sitemap"),"submit"===t||"reset"===t||"save"===t?e.push("ai-in-progress"):"done"===t&&(e.push("cursor-not-allowed"),e.push("non-clickable-wrapper")),e},sectionsPagesCount:function(){var t=this.xCellsByParentsWithHidden[l.constants.CELL_LEVEL_HOME],e=this.xCellsByParentsWithHidden[l.constants.CELL_LEVEL_UTIL],n=this.xCellsByParentsWithHidden[l.constants.CELL_LEVEL_FOOT];return{home:t&&t.length?t.length:0,util:e&&e.length?e.length:0,foot:n&&n.length?n.length:0}},sectionCells:function(){var t=this;if(this.xSectionCells.length<1e3)return this.xSectionCells.filter((function(e){var n=e?t.xGetCellData(e,["x","y"]):null;return n&&"number"==typeof n.x&&"number"==typeof n.y}));var e=this.xWindowSize.width,n=this.xWindowSize.height;return this.xGetCellsInViewport(this.sectionId,this.scrollLeft-this.currentCellWidth-e,this.scrollableContainerSize.width+this.scrollLeft+this.currentCellWidth+e,this.scrollTop-this.currentCellHeight-n,this.scrollableContainerSize.height+this.scrollTop+this.currentCellHeight+n,this.marginLeft,this.marginTop)},sectionCellsUtil:function(){return this.getCellsList(l.constants.CELL_LEVEL_UTIL)},sectionCellsFoot:function(){return this.getCellsList(l.constants.CELL_LEVEL_FOOT)},sectionCellsMain:function(){return this.getCellsList(l.constants.CELL_LEVEL_MAIN)},shouldDisplayLines:function(){return(this.sectionId===l.constants.SITEMAP_SECTION_MAIN_ID?this.sectionCellsMain.filter((function(t){return t!==l.constants.CELL_ID_HOME_PLACEHOLDER})):this.sectionCellsMain).length>1},scrollableContainerSize:function(){var t=this.xProjectHeaderHeight;return{width:this.xWindowSize.width,height:this.xWindowSize.height-t}},structureSizes:function(){return{main:this.xSitemapStructureSize[l.constants.CELL_LEVEL_MAIN],util:this.xSitemapStructureSize[l.constants.CELL_LEVEL_UTIL],foot:this.xSitemapStructureSize[l.constants.CELL_LEVEL_FOOT]}},structureSizesWithScale:function(){var t=this,e={};return Object.keys(this.structureSizes).forEach((function(n){var r=t.structureSizes[n],i=r.width,o=r.height,a=h(r,p);i*=t.xSitemapScale,o*=t.xSitemapScale,e[n]=b({width:i,height:o},a)})),e},sitemapWrapperStyles:function(){return{width:this.sitemapWrapperContainerStyles.width,minHeight:"".concat(this.xScrollableContainerSize.height,"px"),pointerEvents:!0===this.xSitemapCellDragging.clone?"none":null,cursor:this.isSpaceGrabbing?"grab":this.isGrabbing?"grabbing":null}},sitemapWrapperContainerStyles:function(){return{width:"".concat(Math.max(this.structureSizes.main.width,this.structureSizesWithScale.main.width,this.minContainerSizes.width),"px"),minHeight:"".concat(Math.max(this.structureSizes.main.height,this.minContainerSizes.height),"px"),pointerEvents:this.isSpaceGrabbing?"none":null}},cellsContainersStyles:function(){var t=this,e=["util","foot","main"].map((function(e){return{minHeight:"".concat(t.structureSizesWithScale[e].height,"px"),transformOrigin:t.structureSizesWithScale[e].width>t.structureSizes[e].width?"0 0":"top"}}));return{util:e[0],foot:e[1],main:e[2]}},stickyAreasStyles:function(){var t=this,e=this.scrollableContainerSize.width,n=["util","foot"].map((function(n){var r=t.structureSizes[n].realWidth;if(r<e){var i=(e-r)/2;return{position:"fixed",width:"".concat(r,"px"),transform:"translateX(".concat(i+t.scrollLeft,"px)")}}return{position:"fixed",width:"".concat(r,"px")}}));return{util:n[0],foot:n[1]}},innerWrapperOffset:function(){return this.structureSizeWithMargins.height>this.scrollableContainerSize.height?this.xScrollbarWidth:0},structureSize:function(){var t=this.structureSizes.main;return{width:t.maxX+this.currentCellWidth-(t.minX===1/0?0:t.minX),height:t.maxY+this.currentCellHeight-(t.minY===1/0?0:t.minY)}},structureSizeWithMargins:function(){return{width:this.structureSize.width+Slickplan.sitemapCellsMath.PAGE_MARGIN_LEFT+Slickplan.sitemapCellsMath.PAGE_MARGIN_RIGHT,height:this.structureSize.height+Slickplan.sitemapCellsMath.PAGE_MARGIN_TOP+Slickplan.sitemapCellsMath.PAGE_MARGIN_BOTTOM}},marginTop:function(){var t=this.xCellsByParents[l.constants.CELL_LEVEL_HOME];return Math.floor(Slickplan.sitemapCellsMath.PAGE_MARGIN_TOP+(t&&t.length?0:this.currentOrientation===l.constants.SITEMAP_ORIENTATION_TREE?Slickplan.sitemapCellsMath.MAIN_GAP_TREE_BEFORE_CHILDS/2:Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_BEFORE_CHILDS/2))},marginLeft:function(){if(this.currentOrientation===l.constants.SITEMAP_ORIENTATION_VERTICAL)return Slickplan.sitemapCellsMath.PAGE_MARGIN_LEFT;var t=Math.floor(Math.max(Slickplan.sitemapCellsMath.PAGE_MARGIN_LEFT,this.xWindowSize.width>this.structureSize.width?(this.xWindowSize.width-this.structureSize.width)/2:0));return t%2!=0&&++t,t},linesTransformStyle:function(){return{transform:"translate(".concat(this.marginLeft-.5,"px, ").concat(this.marginTop-.5,"px)")}},linesColor:function(){return Slickplan.helpers.getValue(this.currentSectionColors,["colors","default","lines"],Slickplan.helpers.getValue(this.currentSectionColors,["failover","lines"]))},linesWidth:function(){return 1.5},linesPath:function(){return this.xLines},styleAttrMainCellsWrapper:function(){return{transform:"translate(".concat(this.marginLeft,"px, ").concat(this.marginTop,"px)")}},sectionTogglePosition:function(){var t=this.structureSizes.main.width-this.scrollableContainerSize.width;return["calc(50%",(t=t>0?this.scrollLeft-Math.floor(t/2):this.scrollLeft)>=0?"+":"-","".concat(Math.abs(t),"px)")].join(" ")},cellsWrapperClasses:function(){return["cells","orientation-".concat(this.currentOrientation)]},currentOrientation:function(){return this.xSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_ORIENTATION]},sectionWrapperClassName:function(){return"sitemap-section-".concat(this.sectionId)},sheetId:function(){return"colors-stylesheet-".concat(this.sectionId)}}),methods:b(b({},(0,r.mapActions)({xSitemapCellRecalculatePositions:"sitemapCell/recalculatePositions",xAddSitemapDropPlaceholder:"sitemapCell/addDropPlaceholder",xRemoveSitemapDropPlaceholder:"sitemapCell/removeDropPlaceholder",xAddSectionHomePlaceholder:"sitemapCell/addSectionHomePlaceholder",xRemoveSectionHomePlaceholder:"sitemapCell/removeSectionHomePlaceholder",xSitemapCellRegroup:"sitemapCell/regroupCells"})),{},{getCellsList:function(t){if(this.xSectionCells.length){var e=[];if(t===l.constants.CELL_LEVEL_MAIN){var n=[].concat(this.xCellsByParents[l.constants.CELL_LEVEL_UTIL]||[],this.xCellsByParents[l.constants.CELL_LEVEL_FOOT]||[]);e=this.sectionCells.filter((function(t){return!n.includes(t)}))}else e=this.xCellsByParents[t]||[];if(e.length){var r=this.sectionCells.filter((function(t){return t!==l.constants.CELL_ID_DROP_PLACEHOLDER&&t!==l.constants.CELL_ID_HOME_PLACEHOLDER&&e.includes(t)}));return e.includes(l.constants.CELL_ID_DROP_PLACEHOLDER)&&r.push(l.constants.CELL_ID_DROP_PLACEHOLDER),e.includes(l.constants.CELL_ID_HOME_PLACEHOLDER)&&r.push(l.constants.CELL_ID_HOME_PLACEHOLDER),r}}return[]},onScroll:function(t){var e=this;if(this.xScrollableCoordsEnabled){var n=t.x,r=t.y;if(this.$store.commit("project/setScrollableCoords",{x:n,y:r,sectionId:this.sectionId}),this.scrollTop!==r&&(this.scrollTop=r),this.scrollLeft!==n){this.scrollLeft=n;var i=this.$options.lastScrollLeft>this.scrollLeft?-1:1;["util","foot"].forEach((function(t){e.translateX[t]-=e.scrollLeft-e.$options.lastScrollLeft})),this.$options.lastScrollLeft=this.scrollLeft,this.$options.lastScrollDirection!==i&&(this.$options.lastScrollLeftAtChange=this.scrollLeft,this.$options.lastScrollDirection=i),["util","foot"].forEach((function(t){e.translateX[t]=Math.min(0,Math.max(e.translateX[t],e.scrollableContainerSize.width-e.structureSizes[t].realWidth))}))}}},onSectionToggle:function(t){this.xSectionsVisible[t]||Slickplan.helpers.setSlideTransitionHeight(this.structureSizes[t].height),this.$store.commit("sitemap/setSectionVisibility",{section:t})},onBeforeFootShow:function(){var t=this,e=this.$options.scrollableEl.scrollTop+this.structureSizes.foot.height;this.$options.footScrollTimerId=setInterval((function(){t.$options.scrollableEl.scrollTop=e}),10)},onAfterFootShow:function(){clearInterval(this.$options.footScrollTimerId)},refreshSectionColors:function(){var t={themeId:"default",failover:{},colors:{}},e=this.xSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME];if("string"==typeof e&&"default"!==e){var n=this.xColorThemes.find((function(t){return t.id===e})),r=n?n.colors:null,i=Array.isArray(r)?r.length:0;if("_"===e.charAt(1)||i){t.themeId=e;for(var a=0;a<i;a++){var s=r[a];s&&s.level&&(t.colors[s.level]={text:s.text||null,background:s.background||null},"default"===s.level&&s.lines&&(t.colors[s.level].lines=s.lines))}}}var c=Slickplan.helpers.objectCloneDeep(this.xColorTemp);t.failover={text:c.default.text||this.xSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR],background:c.default.background||this.xSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND],lines:c.default.lines||this.xSectionData[l.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR]},o()(c.levels,(function(e,n){t.colors[n]?(e.text&&(t.colors[n].text=e.text),e.background&&(t.colors[n].background=e.background)):t.colors[n]=e}));for(var u=0,d=this.xSectionCellsWithHidden.length;u<d;u+=1){var f=this.xSectionCellsWithHidden[u],p={background:this.xGetCellData(f,l.constants.CELL_DATA_KEY_BG_COLOR),text:this.xGetCellData(f,l.constants.CELL_DATA_KEY_TEXT_COLOR)};(p.text||p.background)&&(t.colors[f]=p)}this.$store.dispatch("colors/setSectionColors",{sectionId:this.sectionId,scheme:t})},refreshStylesheet:function(){var t=document.getElementById(this.sheetId);t||((t=document.createElement("style")).id=this.sheetId,t.appendChild(document.createTextNode("")),document.head.appendChild(t));var e=Slickplan.helpers.getValue(this.currentSectionColors,"colors.default.background",Slickplan.helpers.getValue(this.currentSectionColors,"failover.background")),n=Slickplan.helpers.changeColor(e,.185,!0),r=[];r.push({selector:"",rules:["background-color:".concat(e),"border-color:".concat(n),"color:".concat(Slickplan.helpers.getValue(this.currentSectionColors,"colors.default.text",Slickplan.helpers.getValue(this.currentSectionColors,"failover.text")))]}),r.push({selector:" .connection",rules:["background-color:".concat(e),"border-color:".concat(n)]}),[this.currentSectionColors.colors,this.xColorTemp.cells].forEach((function(t,e){if(t){var n=e?"!important":"";o()(t,(function(t,e){if(t){var i=[];if(t.text&&i.push("color:".concat(t.text).concat(n)),t.background){var o=Slickplan.helpers.changeColor(t.background,.185,!0);i.push("background-color:".concat(t.background).concat(n)),i.push("border-color:".concat(o).concat(n)),r.push({selector:".cell-".concat(e," .connection"),rules:["background-color:".concat(t.background).concat(n),"border-color:".concat(o).concat(n)]})}i.length&&r.push({selector:".cell-".concat(e),rules:i})}}))}}));for(var i=0,a=r.length;i<a;i++)r[i]="#sitemap-wrapper .".concat(this.sectionWrapperClassName," .cell").concat(r[i].selector?r[i].selector:"","{").concat(r[i].rules.join(";"),"}");t.innerHTML=r.join("\n")},deferRefreshSectionColors:function(){clearTimeout(this.$options.refreshColorsTimerId),this.$options.refreshColorsTimerId=setTimeout(this.refreshSectionColors,10)},onClickAddPage:function(t){var e=this;this.ifProjectEditable(void 0,!0).then((function(){if("object"===m(t))e.$store.dispatch("sitemapCell/new",t);else{if(e.isNewSitemap&&0===e.sectionsPagesCount.home){var n=y(y(y(y({},l.constants.CELL_DATA_KEY_ID,Slickplan.helpers.uniqueId()),l.constants.CELL_DATA_KEY_LABEL,"Home page"),l.constants.CELL_DATA_KEY_ORDER,1e3),l.constants.CELL_DATA_KEY_LEVEL,l.constants.CELL_LEVEL_HOME);e.$store.dispatch("sitemapCell/add",[n]),e.$store.dispatch("sitemapHelpers/addPages",{cells:n})}e.$store.dispatch("sitemapCell/new",{type:t})}})).catch(_noop)},reloadSectionData:function(){var t=this;this.sectionId===l.constants.SITEMAP_SECTION_MAIN_ID?this.xRemoveSectionHomePlaceholder():this.xAddSectionHomePlaceholder(),this.xSitemapCellRegroup(this.sectionId),this.$nextTick((function(){t.refreshSectionColors()}))},onWrapperMouseDown:function(t){!this.xSitemapCells.length||t.target&&(t.target.closest(".new-page-button")||t.target.closest(".cell"))||(this.$options.mouseDownEvent={x:t.clientX,y:t.clientY,scrollTop:this.scrollTop,scrollLeft:this.scrollLeft},document.addEventListener("mousemove",this.onWrapperMouseMove),document.addEventListener("mouseup",this.onWrapperMouseUp))},onWrapperMouseMove:function(t){this.$options.mouseDownEvent.moving=!0,this.isGrabbing=!0;var e=this.$options.mouseDownEvent,n=e.x,r=e.y,i=e.scrollTop,o=e.scrollLeft;this.$options.scrollableEl.scrollTo(o+(n-t.clientX),i+(r-t.clientY))},onWrapperMouseUp:function(){!this.$options.mouseDownEvent.moving&&this.xPanelVisible&&this.xCurrentCellAlias&&u.EventBus.$emit("panel-close"),this.isGrabbing=!1,document.removeEventListener("mousemove",this.onWrapperMouseMove),document.removeEventListener("mouseup",this.onWrapperMouseUp),this.$options.mouseDownEvent=null},onKeyboardShortcutNewPage:function(t,e){if(t.event.preventDefault(),t.event.stopPropagation(),this.xCurrentCellForKeyShortcut){var n=this.xGetCellData(this.xCurrentCellForKeyShortcut,l.constants.CELL_DATA_KEY_LEVEL);n===l.constants.CELL_LEVEL_HOME?this.onClickAddPage(l.constants.CELL_LEVEL_MAIN):e?n===l.constants.CELL_LEVEL_MAIN&&this.onClickAddPage({to:this.xCurrentCellForKeyShortcut,type:l.constants.CELL_ADD_SUBPAGE}):this.onClickAddPage({to:this.xCurrentCellForKeyShortcut,type:l.constants.CELL_ADD_AFTER})}},onKeyboardShortcutNewPageTopLevel:function(t){t.event.preventDefault(),t.event.stopPropagation(),this.onClickAddPage(l.constants.CELL_LEVEL_MAIN)},onKeyboardShortcutNewPageSameLevel:function(t){return this.onKeyboardShortcutNewPage(t)},onKeyboardShortcutNewPageChild:function(t){return this.onKeyboardShortcutNewPage(t,!0)}}),watch:y(y(y(y(y(y({currentOrientation:function(){this.$store.commit("project/setScrollableCoords",{x:0,y:0,sectionId:this.sectionId}),this.xSitemapCellRecalculatePositions(this.sectionId)},xColorThemes:{handler:function(){this.deferRefreshSectionColors()},deep:!0}},"xSectionData.".concat(l.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME),{handler:function(){this.deferRefreshSectionColors()},deep:!0}),"xColorTemp.default",{handler:function(){this.deferRefreshSectionColors()},deep:!0}),"xColorTemp.levels",{handler:function(){this.deferRefreshSectionColors()},deep:!0}),"xColorTemp.cells",{handler:function(){this.refreshStylesheet()},deep:!0}),"xSitemapCellDragging.id",(function(t,e){t&&t!==e?this.xAddSitemapDropPlaceholder():!t&&e&&this.xRemoveSitemapDropPlaceholder()})),"xSitemapCellDragging.from",(function(t){if(t){var e=this.structureSizes.main,n=e.width,r=e.height;this.minContainerSizes={width:n,height:r}}else this.minContainerSizes={width:0,height:0}})),created:function(){var t=this;this.$store.dispatch("sitemapSection/pushBreadcrumb",this.sectionId),this.$store.commit("sitemapSection/setCurrent",this.sectionId),this.reloadSectionData(),this.$watch("currentSectionColors",this.refreshStylesheet,{deep:!0}),this.$watch("xSitemapCellColorsIteration",this.deferRefreshSectionColors),this.$watch("xSitemapCells",(function(){return t.xSitemapCellRegroup(t.sectionId)}))},mounted:function(){var t=this;this.$options.scrollableEl=document.getElementById("project-scrollable"),u.EventBus.$on("keypress-ctrl-e",this.onKeyboardShortcutNewPageTopLevel),u.EventBus.$on("keypress-shift-enter",this.onKeyboardShortcutNewPageSameLevel),u.EventBus.$on("keypress-ctrl-enter",this.onKeyboardShortcutNewPageChild),this.$nextTick((function(){u.EventBus.$emit("dom-updated",t.$options.name),u.EventBus.$emit("sitemap-loaded",t.sectionId),t.$options.scrollableEl.scrollTo(t.xScrollableCoords.x,t.xScrollableCoords.y),u.EventBus.$on("project-scrollable-scroll",t.onScroll)}))},beforeDestroy:function(){u.EventBus.$off("project-scrollable-scroll",this.onScroll),u.EventBus.$off("keypress-ctrl-e",this.onKeyboardShortcutNewPageTopLevel),u.EventBus.$off("keypress-shift-enter",this.onKeyboardShortcutNewPageSameLevel),u.EventBus.$off("keypress-ctrl-enter",this.onKeyboardShortcutNewPageChild),clearTimeout(this.$options.refreshColorsTimerId),clearInterval(this.$options.footScrollTimerId)}}},79788:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(48416),i=n(71995),o=n(99460),a=n(48864),s=n(18088),l=n(14580),c=n(42456);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=null;const h={name:"team",components:{"buttons-view":s.default,"listing-item":o.default},mixins:[c.formHelpers],data:function(){return{viewType:"list",filterCurrentLetters:[]}},computed:f(f(f({},(0,r.mapState)({xPlanLimits:function(t){return t.core.planLimits},xTeam:function(t){return t.team.team},xAccountData:function(t){return t.user.user},xBarIsVisible:function(t){return t.actionBar.isVisible},xBarSelectedIds:function(t){return t.actionBar.selected}})),(0,r.mapGetters)({xTeamActive:"team/activeUsers"})),{},{letters:function(){var t="#abcdefghijklmnopqrstuvwxyz".split("");t.unshift("all");for(var e=[],n=0,r=t.length;n<r;n++)e.push({letter:t[n],active:"all"===t[n]&&!this.filterCurrentLetters.length||this.filterCurrentLetters.includes(t[n]),disabled:!this.hasUsersByLetter(t[n])});return e},containerClass:function(){return"users-".concat(this.viewType)},blocksFill:function(){if("grid"===this.viewType){var t=this.visibleMembers.length/4;return t-=Math.floor(t),Math.floor(4*(1-t))}return 0},visibleMembers:function(){var t=this;return!this.filterCurrentLetters.length||this.filterCurrentLetters.includes("all")?this.xTeam:this.xTeam.filter((function(e){return t.filterCurrentLetters.includes(e.letter_filter)}))},visibleSelectedMembers:function(){var t=this;return this.visibleMembers.filter((function(e){return t.xBarSelectedIds.includes(e.id)}))},actionBarButtons:function(){var t=this,e=this.visibleSelectedMembers.length,n=[];if(!e)return n;var r=this.visibleSelectedMembers.filter((function(t){return t.is_active})).length;return e-r>0&&n.push({id:1,icon:"pulse",label:"Activate",onClick:function(){return t.updateMembersStatus(t.visibleSelectedMembers.map((function(t){return t.id})),!0)}}),r&&n.push({id:2,icon:"nc-ban",label:"Deactivate",onClick:function(){return t.updateMembersStatus(t.visibleSelectedMembers.map((function(t){return t.id})),!1)}}),n.push({id:3,icon:"trash",label:"Delete",onClick:this.deleteSelected}),n}}),methods:f(f({},(0,r.mapActions)({xSetTeam:"team/set"})),{},{deleteSelected:function(){var t=this,e=this.visibleSelectedMembers.map((function(t){return"".concat(t.first_name," ").concat(t.last_name)}));this.$modal.showConfirm({items:e,type:this.$trans("users",e.length)},(function(){return t.deleteMember(t.visibleSelectedMembers.map((function(t){return t.id})))}))},filterByLetter:function(t){"all"===t?this.filterCurrentLetters=[]:this.hasUsersByLetter(t)&&(this.filterCurrentLetters.includes(t)?this.filterCurrentLetters=this.filterCurrentLetters.filter((function(e){return e!==t})):this.filterCurrentLetters.push(t))},addMember:function(){var t=this;this.xTeamActive.length+1>this.xPlanLimits.contributors+1?this.$notify({type:"error",text:this.$trans("errors.upgrade_to_add_users")}):this.$modal.show(a.default,null,{title:this.$trans("new_user")},{saved:function(e){e&&e.user&&(Slickplan.websocket.storeDispatch("team/addMember",e.user),t.$notify("The invitation has been sent."))}})},deleteMember:function(t){var e=this,n=i.default.team.delete(t);return n.promise.then((function(){Slickplan.websocket.storeDispatch("team/deleteMember",t),e.$notify(t.length>1?"Users have been removed.":"User has been removed.")})),n},updateMembersStatus:function(t,e){var n=this,r=i.default.team.updateStatus(t,e);return r.promise.then((function(r){if(r){for(var i=r.reduce((function(t,e){return f(f({},t),{},p({},e.id,e))}),{}),o=0,a=n.xTeam.length;o<a;o++){var s=n.xTeam[o];i[s.id]&&"boolean"==typeof i[s.id].is_active&&Slickplan.websocket.storeDispatch("team/updateMember",{ids:s.id,data:{is_active:i[s.id].is_active}})}n.$notify("".concat(t.length>1?"Users have":"User has"," been ").concat(e?"activated":"deactivated","."))}})).catch((function(t){t&&t.errors&&Array.isArray(t.errors.is_active)&&n.$notify({type:"error",text:[].concat(t.errors.is_active).shift()})})),r},hasUsersByLetter:function(t){return"all"===t||this.xTeam.some((function(e){return e.letter_filter===t}))}}),watch:{actionBarButtons:function(t){this.xBarIsVisible&&this.$store.commit("actionBar/update",{buttons:t})},xBarSelectedIds:function(t,e){var n=this;t.length&&!e.length?this.$store.commit("actionBar/set",{isVisible:!0,buttons:this.actionBarButtons,selectAll:function(){return n.visibleMembers.filter((function(t){return t.type!==l.constants.USER_TYPE_OWNER&&t.id!==n.xAccountData.id})).map((function(t){return t.id}))}}):!t.length&&e.length&&this.$store.commit("actionBar/reset")}},created:function(){this.$store.dispatch("core/setMetaTitle",this.$trans("titles.team")),m&&this.xSetTeam(m)},beforeRouteEnter:function(t,e,n){i.default.team.getUsersList().promise.then((function(t){m=t,n((function(){m=null}))}))}}},47584:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(48416),i=n(27672),o=n(48864),a=n(14580),s=n(42456);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"team",components:{"buttons-list":i.default},mixins:[s.formHelpers],props:{member:{type:Object,required:!0}},data:function(){return{isHovering:!1}},computed:u(u({},(0,r.mapState)({xPlanLimits:function(t){return t.core.planLimits},xTeam:function(t){return t.team.team},xAccountData:function(t){return t.user.user},xBarSelectedIds:function(t){return t.actionBar.selected}})),{},{isSelected:function(){return!!this.xBarSelectedIds.length&&this.xBarSelectedIds.includes(this.member.id)},canSelect:function(){return this.member.type!==a.constants.USER_TYPE_OWNER&&this.member.id!==this.xAccountData.id},userButtons:function(){var t=[];return this.member.is_active?t.push({id:"deactivate",icon:"ban",tooltip:this.$trans("deactivate"),onClick:this.onDeactivate}):t.push({id:"activate",icon:"pulse",tooltip:this.$trans("activate"),onClick:this.onActivate}),t.push({id:"edit",icon:"edit",tooltip:this.$trans("edit"),onClick:this.onEdit}),t.push({id:"delete",icon:"trash",tooltip:this.$trans("delete"),onClick:this.onDelete}),t}}),methods:u(u({},(0,r.mapActions)({xSetTeam:"team/set"})),{},{rowSelected:function(){this.$store.commit("actionBar/selectToggle",this.member.id)},onDeactivate:function(){return this.$parent.updateMembersStatus(this.member.id,!1)},onActivate:function(){return this.$parent.updateMembersStatus(this.member.id,!0)},onEdit:function(){this.$modal.show(o.default,{member:this.member},{title:this.$trans("edit_user")},{saved:function(t){t&&t.user&&Slickplan.websocket.storeDispatch("team/updateMember",{ids:t.user.id,data:t.user})}})},onDelete:function(){var t=this;this.$modal.showConfirm({items:["".concat(this.member.first_name," ").concat(this.member.last_name)]},(function(){return t.$parent.deleteMember(t.member.id)}))}})}},30960:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(63124),o=n(43880);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"slickplan-dialog",timerId:null,props:{name:{required:!0,type:String},title:{type:String,default:null},titleClassName:{type:[String,Array],default:""},titleClass:{type:[String,Array],default:""},buttons:{type:Array,default:function(){return[]}},closeButton:{type:Boolean,default:!0},delay:{type:Number,default:100},resizable:{type:Boolean,default:!1},adaptive:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!0},reset:{type:Boolean,default:!1},transition:{type:String,default:"modal"},clickToClose:{type:Boolean,default:!1},modalClassName:{type:[String,Array],default:""},containerClassName:{type:[String,Array],default:""},minWidth:{type:Number,default:0,validator:function(t){return t>=0}},minHeight:{type:Number,default:0},maxWidth:{type:Number,default:1/0},maxHeight:{type:Number,default:1/0},width:{type:[Number,String],default:600,validator:o.validateNumber},height:{type:[Number,String],default:"auto",validator:function(t){return"auto"===t||(0,o.validateNumber)(t)}},pivotX:{type:Number,default:.5,validator:function(t){return t>=0&&t<=1}},pivotY:{type:Number,default:.5,validator:function(t){return t>=0&&t<=1}}},data:function(){return{visible:!1,visibility:{modal:!1,overlay:!1},shift:{left:0,top:0},modal:{width:0,widthType:"px",height:0,heightType:"px",renderedHeight:0},minHeightInternal:0,formIsSubmitting:!1,mutationObserver:null}},watch:{visible:function(t){var e=this;t?(this.visibility.overlay=!0,setTimeout((function(){e.visibility.modal=!0,e.$nextTick((function(){e.callAfterEvent(!0)}))}),this.delay)):(this.visibility.modal=!1,setTimeout((function(){e.visibility.overlay=!1,e.$nextTick((function(){e.callAfterEvent(!1)}))}),this.delay))}},created:function(){this.setInitialSize()},beforeMount:function(){var t=this;if(i.default.event.$on("toggle",(function(e,n,r){!0!==e&&e!==t.name||(void 0===n&&(n=!t.visible),t.toggle(n,r))})),i.default.event.$on("action",(function(e,n){e===t.name&&n&&n.event&&("resize"===n.event?t.onModalResize(n.data.width,n.data.height):t.$emit(n.event,n.data))})),this.$options.timerId=setInterval((function(){var e=t.$refs.modal?t.$refs.modal.querySelector(".sidebar"):null,n=0;e&&!e.parentNode.classList.contains("transition-modal-sidebar-leave-active")&&(e=(e=e.querySelector(".sidebar-content"))?e.getBoundingClientRect():null)&&e.height&&(n=Math.ceil(e.height)),"number"!=typeof n?n=0:n+=50,t.minHeightInternal!==n&&(t.minHeightInternal=Math.max(t.minHeight,n%2==0?n:n+1))}),100),this.isAutoHeight){var e=function(){for(var t=["","WebKit","Moz","O","Ms"],e=0;e<t.length;e++){var n="".concat(t[e],"MutationObserver");if(n in window)return window[n]}return!1}();e&&(this.mutationObserver=new e((function(){t.updateRenderedHeight()})))}this.clickToClose&&window.addEventListener("keyup",this.onEscapeKeyUp)},beforeDestroy:function(){clearInterval(this.$options.timerId),this.clickToClose&&window.removeEventListener("keyup",this.onEscapeKeyUp)},computed:l(l({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),{},{modalButtons:function(){var t=this;return!!this.buttons.length&&this.buttons.map((function(e){return"string"==typeof e&&(e={className:["-plain"],label:t.$trans(e)}),e.id||(e.id=Slickplan.helpers.randomString(16)),e.className?e.className=Slickplan.helpers.castArray(e.className):e.className=["-primary"],t.formIsSubmitting===e.id&&e.className.push("is-loading"),e}))},isAutoHeight:function(){return"auto"===this.modal.heightType},position:function(){var t=this.shift,e=this.pivotX,n=this.pivotY,r=this.trueModalWidth,i=this.trueModalHeight,o=this.xWindowSize.width-r,a=this.xWindowSize.height-i;return{left:t.left+e*o,top:t.top+n*a}},trueModalWidth:function(){var t=this.modal,e=this.adaptive,n=this.minWidth,r=this.maxWidth,i="%"===t.widthType?this.xWindowSize.width/100*t.width:t.width,a=Math.min(this.xWindowSize.width,r),s=e?(0,o.inRange)(n,a,i):i;return s%2==0?s:s+1},trueModalHeight:function(){var t=this.modal,e=this.isAutoHeight,n=this.adaptive,r=this.maxHeight,i="%"===t.heightType?this.xWindowSize.height/100*t.height:t.height;if(e)return this.modal.renderedHeight;var a=Math.min(this.xWindowSize.height,r),s=n?(0,o.inRange)(this.minHeightInternal,a,i):i;return s%2==0?s:s+1},overlayClassName:function(){return{"container-overlay":!0,"modal-overlay":!0,scrollable:this.scrollable&&this.isAutoHeight}},horizontalHalf:function(){return Math.round(this.trueModalWidth)%2==0?"-50%":"calc(-50% - 0.5px)"},verticalHalf:function(){return Math.round(this.trueModalHeight)%2==0?"-50%":"calc(-50% - 0.5px)"},modalStyle:function(){var t={width:"".concat(this.trueModalWidth,"px"),height:this.isAutoHeight?"auto":"".concat(this.trueModalHeight,"px"),minHeight:"".concat(this.minHeightInternal,"px")};return this.position.top<0?t.top=0:t.transform="translate3d(0, ".concat(this.verticalHalf,", 0)"),this.position.left<0?t.left=0:t.transform=t.transform?"translate3d(".concat(this.horizontalHalf,", ").concat(this.verticalHalf,", 0)"):"translate3d(".concat(this.horizontalHalf,", 0, 0)"),t}}),methods:{onAfterEnter:function(){var t=this.$refs.modal;this.$nextTick((function(){var e;t&&!Slickplan.helpers.isAnyFormFocused()&&(null===(e=t.querySelector("button.-primary[type]"))||void 0===e||e.focus())}))},setInitialSize:function(){var t=this.modal,e=(0,o.parseNumber)(this.width),n=(0,o.parseNumber)(this.height);t.width=e.value,t.widthType=e.type,t.height=n.value,t.heightType=n.type},onEscapeKeyUp:function(t){27===t.which&&this.visible&&this.$modal.hide(this.name)},genEventObject:function(t){var e={name:this.name,timestamp:Date.now(),canceled:!1,ref:this.$refs.modal};return Object.assign(e,t||{})},onModalResize:function(t,e){"number"==typeof t&&(this.modal.widthType="px",this.modal.width=t),"number"==typeof e&&(this.modal.heightType="px",this.modal.height=e)},toggle:function(t,e){var n=this.reset,r=this.scrollable,i=this.visible;if(i!==t){var o=i?"before-close":"before-open";"before-open"===o?(document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),n&&(this.setInitialSize(),this.shift.left=0,this.shift.top=0),r&&(document.getElementsByTagName("html")[0].classList.add("modal-block-scroll"),document.body.classList.add("modal-block-scroll"))):r&&(document.getElementsByTagName("html")[0].classList.remove("modal-block-scroll"),document.body.classList.remove("modal-block-scroll"));var a=!1,s=this.genEventObject({stop:function(){a=!0},state:t,params:e});this.$emit(o,s),a||(this.visible=t)}},onBackgroundClick:function(){this.clickToClose&&!this.formIsSubmitting&&this.toggle(!1)},callAfterEvent:function(t){t?this.connectObserver():this.disconnectObserver();var e=t?"opened":"closed",n=this.genEventObject({state:t});this.$emit(e,n)},updateRenderedHeight:function(){this.$refs.modal&&(this.modal.renderedHeight=this.$refs.modal.getBoundingClientRect().height)},connectObserver:function(){this.mutationObserver&&this.mutationObserver.observe(this.$refs.modal,{childList:!0,attributes:!0,subtree:!0})},disconnectObserver:function(){this.mutationObserver&&this.mutationObserver.disconnect()},buttonClicked:function(t){var e=this;if("function"==typeof t.onClick){this.formIsSubmitting=t.id;var n=t.onClick(t);n&&n.promise?n.promise.finally((function(){e.toggle(!1),e.formIsSubmitting=!1})):(this.toggle(!1),this.formIsSubmitting=!1)}else this.toggle(!1),this.formIsSubmitting=!1}}}},78332:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,n){var i;return i=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==r(i)?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e),n.d(e,{default:()=>a});const a={data:function(){return{uid:0,modals:[]}},methods:{add:function(t,e,n,r){var a=this,s=this.uid++;n=n?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n):{},n.name||(n.name="_dynamic-modal-".concat(s)),this.modals.push({id:s,component:t,params:e||{},config:n,events:r}),this.$nextTick((function(){a.$modal.show(n.name)}))},remove:function(t){for(var e in this.modals)if(this.modals[e].id===t)return void this.modals.splice(e,1)}},created:function(){this.$modal._setDynamicContainer(this)}}},7552:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(59484);const i={name:"modal-predefined-confirm",props:{type:{type:String,default:""},text:{type:String,default:""},markdownText:{type:String,default:""},htmlText:{type:String,default:""},htmlAppend:{type:String,default:""},items:{type:Array,default:function(){return[]}}},computed:{markdownTextFormatted:function(){return(0,r.default)(this.markdownText)}}}},95360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(59484);const i={name:"notification-item",progressBarTimerId:null,props:{item:{type:Object,required:!0}},data:function(){return{progressBarValue:0}},computed:{type:function(){return this.item.type||"success"},isAiType:function(){return this.type.startsWith("ai")},typeClass:function(){return this.isAiType?"-ai":"-".concat(this.type)},progressBarPercent:function(){return"ai-done"===this.type?"100%":"ai-submit"===this.type?"".concat(this.progressBarValue,"%"):null},icon:function(){return void 0===this.item.icon?this.isAiType?"i-ai":"processing"===this.type||"pending"===this.type?"loading":"notify-".concat(this.type):this.item.icon},title:function(){return void 0!==this.item.title&&this.item.title?this.item.title:this.isAiType?"AI Assistant":Slickplan.helpers.ucFirst(this.type)},itemText:function(){return Array.isArray(this.item.text)?this.item.text.join("\n"):this.item.text},itemNote:function(){return Array.isArray(this.item.note)?this.item.note.join("\n"):this.item.note},formattedText:function(){return"markdown"===this.item.format?(0,r.default)(this.itemText):this.itemText},formattedNote:function(){return"markdown"===this.item.format?(0,r.default)(this.itemNote):this.itemNote}},methods:{moveProgressBar:function(){var t=Slickplan.helpers.randomNumber(1,5);this.progressBarValue+t>=100?(this.progressBarValue=99,clearTimeout(this.$options.progressBarTimerId)):(this.progressBarValue+=t,this.$options.progressBarTimerId=setTimeout(this.moveProgressBar,100))}},mounted:function(){var t=this;this.$nextTick((function(){setTimeout((function(){t.$el.classList.add("visible")}),10),"ai-submit"===t.type&&(t.$options.progressBarTimerId=setTimeout(t.moveProgressBar,500))}))},beforeDestroy:function(){clearTimeout(this.$options.progressBarTimerId),this.$el.classList.remove("visible")}}},10144:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(48416),i=n(22164),o=n(29320);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={name:"notifications",components:{item:n(81936).default},props:{classes:{type:String,default:"vue-notification"},duration:{type:Number,default:5e3},delay:{type:Number,default:0},max:{type:Number,default:1/0}},data:function(){return{list:[]}},computed:l(l({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize},xProjectHeaderHeight:function(t){return t.project.headerHeight}})),{},{active:function(){return Slickplan.helpers.sortNumeric(this.list.filter((function(t){return!t.destroyed})),"time","desc")},topPosition:function(){return this.xWindowSize.headerHeight||this.xProjectHeaderHeight||0}}),methods:{addItem:function(t){var e=this;if("object"===a(t))if(t.title||t.text||t.note){var n={id:t.id||Slickplan.helpers.randomString(16),title:t.title,text:t.text,format:t.format,note:t.note,type:t.type,buttons:t.buttons,destroyed:!1,data:t.data,duration:0,time:(new Date).getTime()};"number"==typeof t.duration?n.duration=t.duration:n.duration=this.duration*("error"===t.type?2:1),n.duration>0&&(n.timer=setTimeout((function(){return e.destroy(n)}),n.duration)),this.list=this.list.filter((function(t){return t.id!==n.id})),this.list.push(n),t.destroyAll&&this.$nextTick((function(){return e.destroyAll(n.id)}))}else t.destroyAll?this.destroyAll():"string"==typeof t.destroy&&t.destroy&&this.destroy(t.destroy)},destroy:function(t){"object"!==a(t)&&(t=this.list.find((function(e){return e.id===t}))),"object"===a(t)&&(t.timer&&clearTimeout(t.timer),t.destroyed=!0)},destroyAll:function(t){var e=this;this.active.forEach((function(n){n.id!==t&&e.destroy(n.id)}))},clean:function(){this.list=this.active}},mounted:function(){o.default.event.$on("add",this.addItem),i.EventBus.$on("notify",this.addItem)}}},75313:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(48416),i=n(51300),o=["overlay"];function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"slickplan-popover",data:function(){return{component:null,width:0,height:0,maxWidth:0,maxHeight:0,className:"",offsets:{},buttons:[],props:{},listeners:{},isVisible:!1,shouldMount:!1,isSubmitting:null,overlayClick:null,notAllowedClick:!1}},observer:null,offsetV:3,arrowMargin:10,shakeTimeout:null,computed:d(d({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),{},{offsetX:function(){return this.offsets.left+this.offsets.width/2},offsetY:function(){return this.offsets.top+this.offsets.height+this.$options.offsetV},fitLeft:function(){return this.offsetX-this.width/2>0},fitRight:function(){return this.offsetX+this.width/2<this.xWindowSize.width},fitY:function(){return this.offsetY+this.height<this.xWindowSize.height},position:function(){var t=0,e=0;return t=this.fitLeft&&this.fitRight?this.offsetX-this.width/2:this.fitLeft?this.offsetX-this.width+this.$options.arrowMargin:this.offsetX-this.$options.arrowMargin,e=this.fitY?this.offsetY:this.offsets.top-this.height-this.$options.offsetV,{top:"".concat(Math.round(e),"px"),left:"".concat(Math.round(t),"px")}},classes:function(){return["popover","text-left",this.fitY?"arrow-top":"arrow-bottom",this.notAllowedClick?"anim-shake":null,this.className]},styles:function(){return{width:"".concat(this.width,"px"),top:this.position.top,left:this.position.left}}}),methods:{onTransitionEnter:function(t){if(this.width<=0||this.height<=0){var e=this.width,n=this.height;Object.assign(t.style,{display:"block",visibility:"hidden",width:e>0?"".concat(e,"px"):"auto",height:n>0?"".concat(n,"px"):"auto"}),e<=0&&(e=Math.ceil(parseFloat(getComputedStyle(t).width)),this.maxWidth>0&&e>this.maxWidth&&(e=this.maxWidth)),n<=0&&(n=Math.ceil(parseFloat(getComputedStyle(t).height)),this.maxHeight>0&&n>this.maxHeight&&(n=this.maxHeight)),Object.assign(t.style,{display:null,visibility:null}),this.width=e,this.height=n}},updateArrowPosition:function(){var t;t=this.fitLeft&&this.fitRight?Math.floor(this.width/2):this.fitLeft?this.width-this.$options.arrowMargin:this.$options.arrowMargin,document.documentElement.style.setProperty("--popover-arrow-left","".concat(t,"px"))},setOptions:function(t){"number"==typeof t.width&&t.width>0?(this.width=t.width,this.maxWidth=0):(this.width=0,this.maxWidth="number"==typeof t.maxWidth&&t.maxWidth>0?t.maxWidth:0),"number"==typeof t.height&&t.height>0?(this.height=t.height,this.maxHeight=0):(this.height=0,this.maxHeight="number"==typeof t.maxHeight&&t.maxHeight>0?t.maxHeight:0),this.className=Slickplan.helpers.getValue(t,"className","")},show:function(t){var e=this,n=t.component,r=t.props,i=t.options,a=t.position,s=t.events,l=t.buttons;this.buttons=l||[],this.props=r||{},this.component=n,this.offsets=a&&a.of?a.of.getBoundingClientRect():null,this.offsets||(this.offsets={top:0,left:0,width:0,height:0}),this.setOptions(i||{});var u=s||{},d=u.overlay,f=c(u,o);this.overlayClick=d||null,this.listeners=f||{},this.shouldMount=!0,this.$nextTick((function(){e.isVisible=!0}))},hide:function(){var t=this;this.isVisible=!1,this.$nextTick((function(){t.shouldMount=!1}))},onButtonClick:function(t){var e=this;if(!this.isSubmitting){this.isSubmitting=t.id;var n=t.onClick(t);n&&n.promise?n.promise.finally((function(){e.isSubmitting=!1})):this.isSubmitting=!1}},onOverlayClick:function(){var t=this;this.overlayClick?("function"==typeof this.overlayClick&&this.overlayClick(this.$el),this.hide()):(clearTimeout(this.$options.shakeTimeout),this.notAllowedClick=!0,this.$options.shakeTimeout=setTimeout((function(){t.notAllowedClick=!1}),600))},attachObservers:function(){var t=this;this.$options.observer=new ResizeObserver((function(e){var n,r=0,i=s(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.borderBoxSize&&o.borderBoxSize.length>0&&(r=Math.max(r,Math.ceil(o.borderBoxSize[0].blockSize)))}}catch(t){i.e(t)}finally{i.f()}r>0&&(t.height=r)})),this.$options.observer.observe(this.$refs.popover)},detachObservers:function(){this.$options.observer&&this.$options.observer.disconnect()}},beforeMount:function(){var t=this;i.default.EventBus.$on("show",(function(e){t.show(e)})),i.default.EventBus.$on("hide",(function(){t.hide()}))},mounted:function(){var t=this;this.attachObservers(),this.$watch("width",(function(e,n){e!==n&&t.updateArrowPosition()}))},beforeDestroy:function(){this.detachObservers()}}},75704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"slickplan-scrollable",sizeProps:["width","height","minHeight","maxHeight","minWidth","maxWidth"],resizeObserver:null,props:{tag:{type:String,default:"div"},x:{type:Boolean,default:!1},y:{type:Boolean,default:!0},width:{type:[String,Number],default:0},height:{type:[String,Number],default:0},minHeight:{type:[String,Number],default:0},maxHeight:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},maxWidth:{type:[String,Number],default:0}},data:function(){return{hasScrollbars:!1}},computed:a(a({},(0,r.mapGetters)({xIsPageLoading:"core/isPageLoading"})),{},{styles:function(){var t=this,e={"overflow-x":this.x?"auto":"hidden","overflow-y":this.y?"auto":"hidden"};return this.$options.sizeProps.forEach((function(n){t[n]&&(e[n]="".concat(t[n],"px"))})),e}}),methods:{onScroll:function(t){this.$emit("scroll",{x:t.target.scrollLeft||0,y:t.target.scrollTop||0})},scrollTop:function(t){var e=this;t<0?(this.$el.scrollTop=this.$el.scrollHeight+999,this.$nextTick((function(){e.$el.scrollTop=e.$el.scrollHeight+999}))):(this.$el.scrollTop=t,this.$nextTick((function(){e.$el.scrollTop=t})))},scrollToTop:function(){this.scrollTop(0)},scrollToBottom:function(){this.scrollTop(-1)},wheelHorizontal:function(t){t.preventDefault(),this.$el.scrollLeft+=t.deltaY||t.deltaX}},watch:{xIsPageLoading:function(t,e){t&&t!==e&&this.$el.scrollTo(0,0)},hasScrollbars:function(t,e){t!==e&&this.$emit(t?"enabled":"disabled")}},mounted:function(){var t=this;(this.$listeners.enabled||this.$listeners.disabled)&&(this.$options.resizeObserver=new ResizeObserver((function(){t.hasScrollbars=t.$el.scrollHeight>t.$el.clientHeight||t.$el.scrollWidth>t.$el.clientWidth})),this.$options.resizeObserver.observe(this.$el)),this.x&&!this.y&&this.$el.addEventListener("wheel",this.wheelHorizontal)},beforeDestroy:function(){this.$options.resizeObserver&&this.$options.resizeObserver.unobserve(this.$el),this.x&&!this.y&&this.$el&&this.$el.removeEventListener("wheel",this.wheelHorizontal)}}},60264:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"svg-feedback"}},9177:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"svg-file"}},45100:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"svg-metrics"}},53124:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"svg-loading-circle",timerId:null,props:{status:{required:!0},classSaving:{type:String,default:null},classSaved:{type:String,default:null}},data:function(){return{saving:!1,step:null}},computed:{classColor:function(){return"saving"===this.step?this.classSaving:this.classSaved}},methods:{onTransitionEnd:function(){"hide"===this.step&&(this.step=null,this.$emit("end"))},onAnimationIteration:function(){var t=this;this.saving||(this.step="saved",this.$options.timerId=setTimeout((function(){t.step="hide"}),2e3))}},watch:{status:function(t,e){t!==e&&(!0===t&&(clearTimeout(this.$options.timerId),this.step="saving",this.$emit("start")),this.saving=!0===t)}},mounted:function(){this.$el.addEventListener("transitionend",this.onTransitionEnd),this.$el.addEventListener("animationiteration",this.onAnimationIteration)},beforeDestroy:function(){this.$el&&(this.$el.removeEventListener("transitionend",this.onTransitionEnd),this.$el.removeEventListener("animationiteration",this.onAnimationIteration))}}},56620:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container-full action-bar",class:{visible:t.xBarIsVisible}},[e("div",{staticClass:"g-grid g-align-center g-justify-space-between g-grid-bleed"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.hasSideLeft,expression:"hasSideLeft"}],staticClass:"g-col-auto"},[t.xBarCount?e("span",{staticClass:"count"},[t._v(t._s(!0===t.xBarCount?t.xBarSelectedIds.length:t.xBarCount))]):t._e(),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.xBarLabel,expression:"xBarLabel"}],staticClass:"item"},[t._v(t._s(!0===t.xBarLabel?"Selected":t.xBarLabel))]),t._v(" "),e("portal-target",{attrs:{name:"actionBar-beforeLinks",tag:"span",slim:""},on:{change:function(e){return t.onPortalUpdate(e,"beforeLinks")}}}),t._v(" "),t._l(t.links,(function(n){return e("span",{key:n.id,staticClass:"item style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[n.icon?e("icon-font",{class:n.iconClass,attrs:{icon:n.icon}}):t._e(),t._v("\n        "+t._s(n.label)+"\n      ")],1)})),t._v(" "),e("portal-target",{attrs:{name:"actionBar-afterLinks",tag:"span",slim:""},on:{change:function(e){return t.onPortalUpdate(e,"afterLinks")}}})],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.hasButtons,expression:"hasButtons"}],staticClass:"g-col-auto text-center text-navy"},[e("portal-target",{attrs:{name:"actionBar-beforeButtons",tag:"span",slim:""},on:{change:function(e){return t.onPortalUpdate(e,"beforeButtons")}}}),t._v(" "),t._l(t.xBarButtons,(function(n){return e("span",{key:n.id,staticClass:"button-item item-wider",class:t.isSubmitting?"cursor-not-allowed":"cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonClick(e,n)}}},[n.icon?e("icon-loading",{attrs:{status:t.isSubmitting===n.id}},[e("icon-font",{staticClass:"ref",attrs:{icon:n.icon}})],1):t._e(),t._v(" "),e("span",{staticClass:"non-clickable",class:{"text-gray-darkest":t.isSubmitting===n.id}},[t._v("\n          "+t._s(n.label)+"\n        ")])],1)})),t._v(" "),e("portal-target",{attrs:{name:"actionBar-afterButtons",tag:"span",slim:""},on:{change:function(e){return t.onPortalUpdate(e,"afterButtons")}}})],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.hasSideRight,expression:"hasSideRight"}],staticClass:"g-col-auto text-right"},t._l(t.sideLinks,(function(n){return e("div",{key:n.id,staticClass:"button",class:[n.className||"-primary -small",{"-disabled":t.isSubmitting}],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonClick(e,n)}}},[t.isSubmitting===n.id?e("icon-font",{staticStyle:{opacity:"1"},attrs:{icon:"loading"}}):t._e(),t._v(" "),e("span",{style:{opacity:t.isSubmitting===n.id?0:1}},[n.icon?e("icon-font",{attrs:{icon:n.icon}}):t._e(),t._v("\n          "+t._s(n.label)+"\n        ")],1)],1)})),0)])])},i=[]},39160:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t,e,n,r,i=this,o=i._self._c;return o("div",{class:[{"-active":i.isVisible},i.chatState?"-state-"+i.chatState:""],attrs:{id:"ai-chatbot"}},[o("div",{staticClass:"_head"},[o("p",{staticClass:"font-montserrat"},[i._v("\n      AI Assistant\n    ")]),i._v(" "),o("span",{staticClass:"_beta"},[i._v("Beta")]),i._v(" "),o("has-tooltip",{class:{"non-clickable":i.isSubmitting},attrs:{tooltip:"New chat",position:"below"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onNewChat.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-edit2"}})],1),i._v(" "),o("has-tooltip",{attrs:{tooltip:"Minimize",position:"below"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.clickedOutside.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-minimize"}})],1)],1),i._v(" "),o("scrollable",{ref:"scrollable",staticClass:"_chat",attrs:{height:302}},[o("transition-group",{attrs:{name:"transition-aichat",tag:"div"},on:{"before-enter":i.onBeforeEnter,"after-enter":i.onAfterEnter}},[i._l(i.messages,(function(t){return o("div",{key:t.key,staticClass:"_message",class:{"-bot":t.bot}},[t.html?i._o(o("div",{domProps:{innerHTML:i._s(t.html)}}),0,t.key):t.text?i._o(o("div",[o("p",[i._v(i._s(t.text))])]),1,t.key):i._e(),i._v(" "),t.bot?i._o(o("div",{staticClass:"_avatar"},[o("icon-font",{attrs:{icon:"i-ai"}})],1),2,t.key):i._o(o("user-avatar",{attrs:{user:i.xAccountData.id,tooltip:!1,"display-empty":!0}}),3,t.key)],1)})),i._v(" "),"submit"!==i.step&&"done"!==i.step||!i.waitingBotTexts[0]?i._e():o("div",{key:"submit",staticClass:"_message -bot"},[o("div",[o("p",[i._v(i._s(i.waitingBotTexts[0]))])]),i._v(" "),i._m(0)]),i._v(" "),"error"===i.step?o("div",{key:"error",staticClass:"_message -bot -error"},[o("div",[o("p",[i._v(i._s(i.errorMessage||"Unknown error, please try again later or contact Slickplan Support"))])]),i._v(" "),i._m(1)]):i._e(),i._v(" "),"done"===i.step&&i.doneBotText?o("div",{key:"done",staticClass:"_message -bot"},[o("div",[o("p",[i._v(i._s(i.doneBotText))])]),i._v(" "),i._m(2)]):i._e()],2)],1),i._v(" "),o("div",{staticClass:"_qa"},[i.isSubmitting?o("icon-loading",{attrs:{status:!0}}):"error"===i.step?o("ul",[o("li",{on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onRetryAfterError.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-retry"}}),i._v("\n        Retry\n      ")],1),i._v(" "),o("li",{on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onUndoChanges(!0)}}},[o("icon-font",{attrs:{icon:"tool-undo2"}}),i._v("\n        Cancel\n      ")],1)]):"done"===i.step?o("ul",[o("li",{on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onTryAgain.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-retry"}}),i._v("\n        Try again\n      ")],1),i._v(" "),o("li",{on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onUndoChanges.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"tool-undo2"}}),i._v("\n        Undo changes\n      ")],1),i._v(" "),o("li",{on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onConfirmChanges.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-checked"}}),i._v("\n        Confirm changes\n      ")],1)]):null!==(t=i.chats[i.step])&&void 0!==t&&t.menu||null!==(e=i.chats[i.step])&&void 0!==e&&e.input?o("div",{staticClass:"_wdd"},[null!==(n=i.chats[i.step])&&void 0!==n&&n.input?o("div",{staticClass:"_input"},[o("input",{directives:[{name:"model",rawName:"v-model",value:i.selected[i.step][0],expression:"selected[step][0]"}],attrs:{type:"text",minlength:"describe"===i.step?i.minDescribeLength:null,maxlength:"describe"===i.step?i.maxDescribeLength:null,placeholder:"describe"===i.step?"Enter at least 10 characters":null},domProps:{value:i.selected[i.step][0]},on:{input:function(t){t.target.composing||i.$set(i.selected[i.step],0,t.target.value)}}}),i._v(" "),o("div",{staticClass:"_submit",class:{"-disabled":!i.canInputSubmit},on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onMultiOptionsSubmit.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-send"}})],1)]):i.chats[i.step].searchable?o("div",{staticClass:"_input"},[o("icon-font",{attrs:{icon:"tool-loupe"}}),i._v(" "),i.isVisibleMenu?o("input",{directives:[{name:"model",rawName:"v-model",value:i.searchableFilter,expression:"searchableFilter"}],key:"search",attrs:{type:"text",autofocus:""},domProps:{value:i.searchableFilter},on:{input:function(t){t.target.composing||(i.searchableFilter=t.target.value)}}}):o("input",{key:"input",attrs:{type:"text",readonly:!0,placeholder:i.chats[i.step].placeholder||"Choose an option",autofocus:""},domProps:{value:i.selectedOptionText},on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onSearchableClick.apply(null,arguments)}}}),i._v(" "),o("div",{staticClass:"_submit",class:{"-disabled":!i.canInputSubmit},on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onMultiOptionsSubmit.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-send"}})],1)],1):o("div",{staticClass:"_input"},[o("input",{attrs:{type:"text",readonly:!0!==i.chats[i.step].searchable||null,placeholder:i.chats[i.step].placeholder||"Choose an option"},domProps:{value:i.selectedOptionText},on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.toggleMenu("string"==typeof i.chats[i.step].menu?i.chats[i.step].menu:i.step)}}}),i._v(" "),o("div",{staticClass:"_submit",class:{"-disabled":!i.canInputSubmit},on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onMultiOptionsSubmit.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-send"}})],1)]),i._v(" "),i.chats[i.step].examples&&!i.examplesAdded?o("p",{on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.seeExamples.apply(null,arguments)}}},[i._v("\n        See examples\n      ")]):i._e(),i._v(" "),"pages"===i.isVisibleMenu?o("div",{staticClass:"_dd"},[o("pages-tree-list",{attrs:{search:i.searchQuery,"max-height":i.maxSubmenuHeight,disabled:i.disabledPagesList},on:{select:i.onPageSelect}})],1):i._e(),i._v(" "),"languages"===i.isVisibleMenu?o("div",{staticClass:"_dd"},[i.filteredLanguages.length?o("scrollable",{attrs:{"max-height":i.maxSubmenuHeight,tag:"ul"}},i._l(i.filteredLanguages,(function(t){return o("li",{key:t.id},[o("p",{on:{click:function(e){return!e.type.indexOf("key")&&i._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:i.menuItemClick(t,!0)}}},[o("span",[i._v(i._s(t.label))])])])})),0):o("div",{staticClass:"_empty"},[i._v("\n          No matching languages found\n        ")])],1):"improve"===i.isVisibleMenu?o("div",{staticClass:"_dd"},[o("ul",i._l(i.chats[i.isVisibleMenu].menu,(function(t){return o("li",{key:t.id},[o("p",{class:{"-active":t.submenu&&i.isVisibleSubmenu===t.id},on:{click:function(e){return!e.type.indexOf("key")&&i._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:i.menuItemClick(t,!0)}}},[t.icon?o("icon-font",{attrs:{icon:t.icon}}):i._e(),i._v(" "),o("span",[i._v(i._s(t.label))]),i._v(" "),t.submenu?o("icon-font",{attrs:{icon:"triangle-right-sm"}}):i._e()],1),i._v(" "),t.submenu&&i.isVisibleSubmenu===t.id?o("scrollable",{attrs:{"max-height":i.maxSubmenuHeight,tag:"ul"}},i._l(t.submenu,(function(e){return o(e.tooltip?"has-tooltip":"li",{key:e.id,tag:"component",attrs:{tooltip:e.tooltip||null,tag:e.tooltip?"li":null}},[o("p",{on:{click:function(n){return!n.type.indexOf("key")&&i._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])||"button"in n&&0!==n.button?null:i.menuItemClick(e,t)}}},[i._v("\n                  "+i._s(e.label)+"\n                ")])])})),1):i._e()],1)})),0)]):i._e()]):null!==(r=i.chats[i.step])&&void 0!==r&&r.options?o("ul",[i._l(i.chats[i.step].options,(function(t){return o("li",{key:t.id,class:{"-active":i.selected[i.step]&&i.selected[i.step].includes(t.id),"-disabled":t.disabled},on:{click:function(e){return!e.type.indexOf("key")&&i._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:i.onOptionClick(t,i.chats[i.step])}}},[i.chats[i.step].multi&&i.selected[i.step]&&i.selected[i.step].includes(t.id)?o("icon-font",{attrs:{icon:"check"}}):i._e(),i._v(" "),"string"==typeof t.label?o("span",[i._v(i._s(t.label))]):o("div",i._l(t.label,(function(t){return o(t.tooltip?"has-tooltip":"span",{key:t.text,tag:"component",attrs:{tag:t.tooltip?"u":null,html:!!t.tooltip,tooltip:t.tooltip||null,offset:t.tooltip?20:null}},[i._v(i._s(t.tooltip?t.text:" "+t.text+" "))])})),1)],1)})),i._v(" "),i.chats[i.step].multi?o("li",{staticClass:"_submit",class:{"-disabled":!i.canInputSubmit},on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:i.onMultiOptionsSubmit.apply(null,arguments)}}},[o("icon-font",{attrs:{icon:"i-send"}})],1):i._e()],2):i._e()],1),i._v(" "),o("div",{staticClass:"_start",on:{click:function(t){return!t.type.indexOf("key")&&i._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:void(i.isVisible=!0)}}},[o("icon-font",{attrs:{icon:"i-ai"}}),i._v(" "),o("span",[i._v(i._s(i.label))])],1)],1)},i=[function(){var t=this._self._c;return t("div",{staticClass:"_avatar"},[t("icon-font",{attrs:{icon:"i-ai"}})],1)},function(){var t=this._self._c;return t("div",{staticClass:"_avatar"},[t("icon-font",{attrs:{icon:"i-ai"}})],1)},function(){var t=this._self._c;return t("div",{staticClass:"_avatar"},[t("icon-font",{attrs:{icon:"i-ai"}})],1)}]},17376:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"branding-bg",attrs:{id:"app-header"}},[t.seconds>0||t.suspendedMessage?e("div",{staticClass:"bg-navy"},[t.suspendedMessage?e("p",{staticClass:"g-container text-white text-center font-size-14 line-height-250"},[e("span",{domProps:{innerHTML:t._s(t.suspendedMessage)}}),t._v(" "),t.detailedErrorMessage?e("small",{staticClass:"style-link-invert ml-1",staticStyle:{opacity:"0.75"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openErrorDetails.apply(null,arguments)}}},[t._v("(details)")]):t._e()]):t.$root.isSuspendedEmailActivation?t._e():e("p",{staticClass:"g-container text-white text-center font-size-14 line-height-250"},[e("span",{domProps:{innerHTML:t._s(t.$trans("messages.trial_ends_in",{countdown:t.humanReadableCountdown}))}}),t._v(" "),t.$root.userCan(t.permissionsAccount.PAYMENTS)?e("span",[e("router-link",{staticClass:"text-blue-lighter cursor-pointer",attrs:{to:{name:"account-billing"},tag:"span"}},[t._v("\n          "+t._s(t.$trans("upgrade_now"))+"\n        ")])],1):t._e()])]):t._e(),t._v(" "),e("div",{staticClass:"g-container"},[t.xAccountData.is_suspended&&!t.$root.isSuspendedEmailActivation?e("div",{staticClass:"is-flex g-justify-space-around",staticStyle:{height:"64px"}},[e("image-tag",{attrs:{src:"/images/logo.png",retina:!0}})],1):e("ul",{staticClass:"font-montserrat",attrs:{id:"header-menu"}},[e("li",{staticClass:"logo"},[e("span",{class:t.logoClasses,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.logoLink.apply(null,arguments)}}},[t.xPlanLimits.branding&&t.xAccountData.branding&&"image"===t.xAccountData.company_logo_type&&t.xAccountData.company_logo?e("img",{attrs:{src:t.xAccountData.company_logo,alt:"Slickplan"}}):t.xPlanLimits.branding&&"text"===t.xAccountData.company_logo_type&&t.xAccountData.company_name?e("span",{staticClass:"company-name",class:{"has-slogan":t.xAccountData.company_name_2}},[e("span",[t._v(t._s(t.xAccountData.company_name))]),t._v(" "),t.xAccountData.company_name_2?e("span",[t._v(t._s(t.xAccountData.company_name_2))]):t._e()]):e("image-tag",{attrs:{src:t.xAccountData.branding&&1===t.xAccountData.dark_font?"/images/logo-dark.png":"/images/logo.png",retina:!0}})],1)]),t._v(" "),e("li",{directives:[{name:"show",rawName:"v-show",value:t.xIsPageLoading,expression:"xIsPageLoading"}]},[e("icon-font",{staticClass:"branding-text",attrs:{icon:"loading"}})],1),t._v(" "),t._l(t.topLinks,(function(n){return e("li",{key:n.name,on:{mouseleave:function(e){t.open=!1}}},[n.onClick?e("span",{on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[t._v("\n          "+t._s(n.name)+"\n          "),n.submenu?e("icon-font",{attrs:{icon:t.open===n.id?"triangle-up-sm":"triangle-down-sm"}}):t._e()],1):e("router-link",{attrs:{to:{name:n.link},tag:"span"}},[t._v("\n          "+t._s(n.name)+"\n          "),n.submenu?e("icon-font",{attrs:{icon:"triangle-down-sm"}}):t._e()],1),t._v(" "),n.submenu?e("ul",{directives:[{name:"show",rawName:"v-show",value:t.open===n.id,expression:"open === item.id"}]},t._l(n.submenu,(function(n){return e("li",{key:n.link,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.open=!1)}}},[e("router-link",{attrs:{to:{name:n.link},tag:"span"}},[t._v("\n              "+t._s(n.name)+"\n            ")])],1)})),0):t._e()],1)})),t._v(" "),t.isRegistration?t._e():e("li",{staticClass:"alerts"},[e("icon-font",{staticClass:"font-size-20 clickable",attrs:{icon:"bell"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openNotificationPanel.apply(null,arguments)}}}),t._v(" "),t.notificationsCount?e("sup",[t._v(t._s(t.notificationsCount))]):t._e()],1),t._v(" "),t.isRegistration?t._e():e("li",{on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.open="menu")},mouseleave:function(e){t.open=!1}}},[e("div",{staticClass:"is-flex cursor-pointer"},[e("user-avatar",{staticClass:"border-rounded non-clickable",attrs:{user:t.xAccountData,tooltip:!1}}),t._v(" "),e("p",[t._v("\n            "+t._s(t.xAccountData.first_name||t.xAccountData.username||t.$trans("account"))+"\n            "),e("icon-font",{attrs:{icon:"menu"===t.open?"triangle-up-sm":"triangle-down-sm"}})],1)],1),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:"menu"===t.open,expression:"open === 'menu'"}]},[e("li",{staticClass:"_separator"},[e("router-link",{attrs:{to:{name:"profile"},tag:"span"}},[e("user-avatar",{staticClass:"border-rounded float-left",attrs:{user:t.xAccountData,tooltip:!1}}),t._v(" "),e("span",[t._v(t._s(t.$trans("my_profile")))])],1)],1),t._v(" "),t._l(t.subMenuAccount,(function(n){return e("li",{key:n.name,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.open=!1)}}},[e("router-link",{attrs:{to:{name:n.link},tag:"span"}},[t._v("\n              "+t._s(n.name)+"\n            ")])],1)})),t._v(" "),e("li",{staticClass:"_separator",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.open=!1)}}},[e("link-help",[t._v(t._s(t.$trans("help")))])],1),t._v(" "),e("li",[e("span",{on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLogout.apply(null,arguments)}}},[t._v(t._s(t.$trans("logout")))])])],2)])],2)])])},i=[]},38520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.title||t.hasTitleSlot?e("div",{staticClass:"g-container margin-medium",attrs:{id:"app-submenu"}},[e("div",{staticClass:"g-grid g-align-center"},[e("div",{class:{"g-col-9":t.hasButtonsSlot,"g-col-12":!t.hasButtonsSlot,heading:t.hasDescriptionSlot}},[e("p",{staticClass:"font-size-21 font-montserrat text-navy"},[t._t("title",(function(){return[t._v("\n          "+t._s(t.title)+"\n        ")]})),t._v(" "),t.hasIconSlot?e("span",{staticClass:"header-icon"},[t._t("icon")],2):t._e()],2),t._v(" "),t.hasDescriptionSlot?e("div",{staticClass:"description font-size-13"},[t._t("description")],2):t._e()]),t._v(" "),t.hasButtonsSlot?e("div",{staticClass:"g-col-3 text-right"},[t._t("buttons")],2):t._e()]),t._v(" "),t.border||t.hasMenuSlot?e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12",staticStyle:{"padding-bottom":"0"}},[t._t("menu"),t._v(" "),e("hr",{staticClass:"bg-gray-darker"})],2)]):t._e()]):t._e()},i=[]},46324:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{class:t.className,attrs:{id:t.id}},[t.hasHeader?e("div",[e("app-header"),t._v(" "),e("scrollable",{staticClass:"page-wrapper",class:{"non-clickable-wrapper":t.$root.isSuspendedEmailActivation},attrs:{height:t.xWindowSize.scrollableHeight}},[e("router-view")],1),t._v(" "),e("panel",{staticClass:"in-account"})],1):e("router-view"),t._v(" "),t.isShared||t.$root.isSuspendedEmailActivation?t._e():e("action-bar"),t._v(" "),t.$root.isSuspendedEmailActivation?e("verify-email"):t._e()],1)},i=[]},42088:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{on:{mouseenter:function(e){t.isHovering=!0},mouseleave:function(e){t.isHovering=!1}}},[e("div",{staticClass:"file-thumb has-icon",class:{active:t.isSelected}},[t._t("buttons",null,{isHovering:t.isHovering}),t._v(" "),t.isSaving?e("icon-font",{staticClass:"thumb-content absolute font-size-16",attrs:{icon:"loading",wrapper:!0}}):e("icon-archetype",{staticClass:"thumb-content",class:{"cursor-pointer":!t.isSelected,relative:t.isCustom,full:!t.isCustom},attrs:{"archetype-id":t.archetypeId},on:{click:t.onSelect}})],2),t._v(" "),e("div",{staticClass:"force-wrap font-size-11 line-height-144",staticStyle:{"padding-top":".5em"}},[t._v("\n    "+t._s(t.name)+"\n  ")])])},i=[]},78172:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.userData&&t.userData.color?e("div",{staticClass:"_userlock",style:{color:t.userData.color}},[e("div",{staticClass:"_by is-flex"},[e("user-avatar",{staticClass:"avatar-sm",attrs:{user:t.userData,tooltip:!1,"display-empty":!0}}),t._v(" "),e("div",{staticClass:"_user"},[e("span",[t._v(t._s(t.name)+" is editing")])])],1)]):t._e()},i=[]},24580:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"buttons-list",class:t.elementClasses},[e("li",[t.menu?e("icon-font",{class:{"-rotate":t.rotate},attrs:{icon:"menu-dots"}}):t._e(),t._v(" "),e("ul",t._l(t.buttons,(function(n){return e(n.tooltip||n.label?"has-tooltip":"li",{key:n.id,tag:"component",class:[{active:n.active},n.className,t.isSaving?"cursor-not-allowed":"cursor-pointer"],attrs:{tag:"li",tooltip:n.tooltip||n.label},on:{click:function(e){return t.onClick(n)}}},[e("icon-loading",{staticClass:"position-relative non-clickable",attrs:{status:t.isSaving===n.id}},[e("icon-font",{attrs:{icon:n.icon}}),t._v(" "),n.iconBadge?e("small",[t._v(t._s(n.iconBadge))]):t._e()],1)],1)})),1)],1)])},i=[]},43212:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){return(0,this._self._c)("buttons-list",{attrs:{buttons:this.buttonsView,menu:!1}})},i=[]},32978:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.isVisible?e("div",{class:[t.xWebsocketChatStatus,{"has-notification":t.hasNewMessages}],attrs:{id:"chat"}},[e("div",{staticClass:"chat-header clearfix"},[e("div",{staticClass:"chat-users"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.xWebsocketConnectedUsers.length>0,expression:"xWebsocketConnectedUsers.length > 0"}],staticClass:"count"},[t._v(t._s(t.xWebsocketConnectedUsers.length))]),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.connectedUsers,expression:"connectedUsers"}],staticClass:"users"},[t._v(t._s(t.connectedUsers))])]),t._v(" "),e("icon-font",{staticClass:"clickable",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}}),t._v(" "),t.isCollapsed?e("icon-font",{staticClass:"clickable",attrs:{icon:"up"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onExpand.apply(null,arguments)}}}):t._e(),t._v(" "),t.isExpanded?e("icon-font",{staticClass:"clickable",attrs:{icon:"down"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCollapse.apply(null,arguments)}}}):t._e()],1),t._v(" "),e("div",{staticClass:"chat-content"},[e("scrollable",{ref:"scrollable",attrs:{height:t.scrollableHeight}},[e("ul",{ref:"html"},t._l(t.xWebsocketChatMessages,(function(n){return e("li",{staticClass:"row",class:{own:n.userId===t.xAccountData.id,message:n.userId,info:!n.userId}},[n.userId?e("div",[e("strong",{staticClass:"name"},[t._v(t._s(t.xGetTeamMemberData(n.userId,"name")))]),t._v(" "),e("em",{staticClass:"time"},[t._v(t._s(n.time))]),t._v(" "),e("div",{staticClass:"text"},t._l(n.message,(function(n){return e("p",{staticClass:"line"},[t._v("\n                "+t._s(n)+"\n              ")])})),0)]):e("div",[e("p",{staticClass:"line"},[e("em",[t._v(t._s(n.message.join(" ")))])])])])})),0)])],1),t._v(" "),e("div",{staticClass:"editor"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],attrs:{placeholder:"Enter a comment",rows:"2"},domProps:{value:t.message},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.onMessageSend.apply(null,arguments))},input:function(e){e.target.composing||(t.message=e.target.value)}}})])]):t._e()},i=[]},96836:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this._self._c;return t("div",{staticClass:"ui-floating-comments",style:this.cssPosition},[t("guest-form",{attrs:{floating:!0}})],1)},i=[]},84944:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t,e,n=this,r=n._self._c;return r("li",[r("user-avatar",{staticClass:"avatar-xl",attrs:{user:null===(t=n.comment)||void 0===t?void 0:t.user_id,"name-fallback":null===(e=n.comment)||void 0===e?void 0:e.guest_data,tooltip:!1,"display-empty":!0}}),n._v(" "),r("div",{staticClass:"buttons-list-handler"},[r("div",{staticClass:"_meta"},[r("div",{staticClass:"_name text-overflow",class:{"-guest":!n.comment.user_id},attrs:{title:n.comment.user_id?null:n.comment.guest_data.email}},[n._v("\n        "+n._s(n.authorName)+"\n      ")]),n._v(" "),n.comment.updated_at?r("has-tooltip",{staticClass:"_date",attrs:{tag:"div",tooltip:"Edited ".concat(n.comment.updated_at),position:"left"}},[n._v("\n        "+n._s(n.comment.created_at)+"\n      ")]):r("div",{staticClass:"_date"},[n._v("\n        "+n._s(n.comment.created_at)+"\n      ")]),n._v(" "),n.buttons.length?r("buttons-list",{attrs:{buttons:n.buttons,rotate:!0}}):n._e()],1),n._v(" "),r("div",{staticClass:"_body selectable",domProps:{innerHTML:n._s(n.commentHtml)}}),n._v(" "),!n.readonly&&n.xAccountData.id?r("div",{staticClass:"_like",class:{"cursor-pointer":!n.isUpdatingLikes},on:{click:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:n.onLikeClick.apply(null,arguments)}}},[n.isUpdatingLikes?r("icon-font",{attrs:{icon:"loading"}}):n.comment.likes?r("span",[n._v(n._s(n.comment.likes))]):n._e(),n._v(" "),r("icon-font",{attrs:{icon:"thumb-up"}})],1):n._e()])],1)},i=[]},31056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"floating-comments"},[t.tempPin?e("div",{key:"temp",staticClass:"_pin -active",style:{transform:"translate(".concat(t.tempPin.x,"px, ").concat(t.tempPin.y,"px)")}},[e("user-avatar",{staticClass:"non-clickable avatar-xl",attrs:{user:t.xAccountData,tooltip:!1,"name-fallback":t.xGuestData}})],1):t._e(),t._v(" "),t._l(t.singles,(function(n){return e("div",{key:n.id,staticClass:"_pin",class:{"-active":t.xCommentHoverId===n.id||t.xFloatingHighlight===n.id},style:{transform:"translate(".concat(n.x,"px, ").concat(n.y,"px)")},attrs:{"data-id":n.id}},[e("user-avatar",{staticClass:"non-clickable avatar-xl",attrs:{user:null==n?void 0:n.user_id,tooltip:!1,"name-fallback":null==n?void 0:n.guest_data}})],1)})),t._v(" "),t._l(t.multi,(function(n,r){return e("div",{key:n.pins[0].id,staticClass:"_pin -collect",style:{transform:"translate(".concat(n.x,"px, ").concat(n.y,"px)")},attrs:{"data-multi":r}},[t._v("\n    "+t._s(n.pins.length)+"\n  ")])}))],2)},i=[]},34076:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{staticClass:"ui-floating-comments",class:{"-compact":t.compactView&&t.isNew,"-list":!t.isNew},style:t.cssPosition,on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[t.readonly||t.isNew||t.isProjectShared?t._e():e("div",{staticClass:"_head",class:{"non-clickable":t.isSaving}},[e("field-checkable",{class:{"non-clickable":t.resolve},attrs:{size:"small"},model:{value:t.resolve,callback:function(e){t.resolve=e},expression:"resolve"}},[t._v("\n      Mark as resolved\n    ")]),t._v(" "),t.isSaving?e("icon-font",{attrs:{icon:"loading"}}):t._e(),t._v(" "),t.canDelete?e("icon-font",{staticClass:"clickable text-gray-darkest",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDeleteComments.apply(null,arguments)}}}):t._e(),t._v(" "),e("icon-font",{staticClass:"clickable text-gray-darkest",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("close")}}})],1),t._v(" "),!t.isNew&&t.comments.length?e("ul",{staticClass:"_list"},[t._l(t.filteredComments,(function(n){return e("floating-item",{key:n.id,attrs:{comment:n,readonly:t.readonly}})})),t._v(" "),t.readonly?t._e():e("li",[e("user-avatar",{staticClass:"avatar-xl",attrs:{user:t.xAccountData.id,"name-fallback":t.xGuestData,tooltip:!1,"display-empty":!0}}),t._v(" "),e("div",[e("field-textarea",{attrs:{readonly:t.isSubmitting,autofocus:t.autofocus,autosize:!0,"min-height":40,"max-height":220,autocomplete:"off"},on:{autosize:function(e){t.textareaHeight=e.height}},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyArrowDown.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyArrowUp.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()}],keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyEscape.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyEnter.apply(null,arguments)}],input:function(e){return t.onInput.apply(null,arguments)},blur:function(e){return t.onBlur.apply(null,arguments)}},model:{value:t.commentText,callback:function(e){t.commentText=e},expression:"commentText"}})],1)],1),t._v(" "),t.introduce&&t.refId?e("li",[e("div",{staticStyle:{width:"40px"}}),t._v(" "),e("div",{staticStyle:{"flex-grow":"1"}},[e("span",{staticClass:"style-link is-flex font-size-12",staticStyle:{gap:"0.5em"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("introduce")}}},[e("icon-font",{attrs:{icon:"reply"}}),t._v(" Reply")],1)])]):t._e()],2):t._e(),t._v(" "),t.isNew&&!t.readonly?e("field-textarea",{attrs:{placeholder:"Enter your comment",readonly:t.isSubmitting,autofocus:t.autofocus,autosize:!0,"min-height":t.compactView?40:90,"max-height":220,autocomplete:"off"},on:{autosize:function(e){t.textareaHeight=e.height}},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyArrowDown.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyArrowUp.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()}],keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyEscape.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyEnter.apply(null,arguments)}],input:function(e){return t.onInput.apply(null,arguments)},blur:function(e){return t.onBlur.apply(null,arguments)}},model:{value:t.commentText,callback:function(e){t.commentText=e},expression:"commentText"}}):t._e(),t._v(" "),t.readonly?t._e():e("div",{directives:[{name:"show",rawName:"v-show",value:!t.compactView&&!t.isMentionVisible&&(t.isNew||t.formattedText),expression:"!compactView && !isMentionVisible && (isNew || formattedText)"}],staticClass:"_menu",class:{"-expanded":t.emojiMenu}},[t.emojiMenu?t._e():e("icon-font",{staticClass:"clickable text-gray-darkest",attrs:{icon:"emoji"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.toggleEmojis.apply(null,arguments)}}}),t._v(" "),t.emojiMenu?t._e():e("icon-font",{staticClass:"clickable text-gray-darkest",attrs:{icon:"at"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.manuallyOpenMentions.apply(null,arguments)}}}),t._v(" "),t.canSendToFigma&&!t.emojiMenu?e("field-checkable",{attrs:{size:"small"},model:{value:t.sendToFigma,callback:function(e){t.sendToFigma=e},expression:"sendToFigma"}},[t._v("\n      Send to Figma\n    ")]):t._e(),t._v(" "),t.emojiMenu?e("emoji-picker",{attrs:{"emojis-by-row":9,"emoji-with-border":!1,"emoji-size":26,"show-search":!1,dark:!1},on:{select:t.onEmojiClick}}):e("div",[t.xCommentEdit?e("span",{staticClass:"button -plain -smaller",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.cancelEdit.apply(null,arguments)}}},[t._v("\n        Cancel\n      ")]):t._e(),t._v(" "),e("button-submit",{staticClass:"-smaller",attrs:{"is-submitting":t.isSubmitting,"is-disabled":!t.formattedText||t.isSubmitting}},[t._v("\n        "+t._s(t.xCommentEdit?"Update":"Send")+"\n      ")])],1),t._v(" "),t.emojiMenu?e("icon-font",{staticClass:"clickable text-gray-darkest",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.closeEmojis.apply(null,arguments)}}}):t._e()],1),t._v(" "),!t.readonly&&t.isMentionVisible?e("ul",{staticClass:"ui-mentions"},t._l(t.filteredMentionItems,(function(n,r){return e("li",{key:n.id,class:{"-selected":t.mentionsData.selectedIndex===r},attrs:{title:"@".concat(n.username)},on:{mouseover:function(e){t.mentionsData.selectedIndex=r},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.applyMention(r,n)}}},[e("user-avatar",{staticClass:"avatar-xl",attrs:{user:n.id,tooltip:!1}}),t._v(" "),e("div",[e("p",{staticClass:"text-overflow"},[t._v("\n          "+t._s(n.name)+"\n        ")]),t._v(" "),e("p",{staticClass:"text-overflow"},[t._v("\n          "+t._s(n.email)+"\n        ")])])],1)})),0):t._e()],1)},i=[]},90707:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field textarea comment-field"},[e("field-textarea",{attrs:{placeholder:"Enter your comment",readonly:t.readonly||t.isSubmitting,autofocus:t.autofocus,autosize:!0,autocomplete:"off"},on:{autosize:function(e){t.textareaHeight=e.height}},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyArrowDown.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyArrowUp.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()}],keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyEscape.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyEnter.apply(null,arguments)}],input:function(e){return t.onInput.apply(null,arguments)},blur:function(e){return t.onBlur.apply(null,arguments)}},model:{value:t.commentText,callback:function(e){t.commentText=e},expression:"commentText"}}),t._v(" "),t.isSubmitting?e("icon-font",{attrs:{icon:"loading"}}):t._e(),t._v(" "),t.isMentionVisible?e("ul",{staticClass:"ui-mentions"},t._l(t.filteredMentionItems,(function(n,r){return e("li",{key:n.id,class:{"-selected":t.mentionsData.selectedIndex===r},attrs:{title:"@".concat(n.username)},on:{mouseover:function(e){t.mentionsData.selectedIndex=r},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.applyMention(r,n)}}},[e("user-avatar",{staticClass:"avatar-xl",attrs:{user:n.id,tooltip:!1}}),t._v(" "),e("div",[e("p",{staticClass:"text-overflow"},[t._v("\n          "+t._s(n.name)+"\n        ")]),t._v(" "),e("p",{staticClass:"text-overflow"},[t._v("\n          "+t._s(n.email)+"\n        ")])])],1)})),0):t._e()],1)},i=[]},64392:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{style:{padding:t.floating?"0 0.5rem":"1rem 24px"},attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:"Full name",autocomplete:!1,"field-error":t.formFieldError("name")},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name","string"==typeof e?e.trim():e)},expression:"formData.name"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"email",label:"Enter email address to post comments",autocomplete:!1,"field-error":t.formFieldError("email")},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}}),t._v(" "),e("div",{staticClass:"text-right mt-5"},[e("button-submit",{class:{"-small":t.floating},attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      Submit\n    ")])],1),t._v(" "),e("field-turnstile",{model:{value:t.formData.turnstile_token,callback:function(e){t.$set(t.formData,"turnstile_token",e)},expression:"formData.turnstile_token"}})],1)},i=[]},41252:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t,e,n=this,r=n._self._c;return r("div",{staticClass:"comment-item buttons-list-handler"},[r("div",{staticClass:"clearfix",style:n.isSubmitting?"opacity: .75":null,on:{mouseenter:function(t){n.isHovering=!0},mouseleave:function(t){n.isHovering=!1}}},[r("div",{staticClass:"avatar float-left",staticStyle:{width:"53px"}},[r("user-avatar",{staticClass:"avatar-xl",attrs:{user:null===(t=n.comment)||void 0===t?void 0:t.user_id,"name-fallback":(null===(e=n.comment)||void 0===e?void 0:e.guest_data)||n.authorName,tooltip:!1}})],1),n._v(" "),n.isEdit?r("div",{staticClass:"reply float-right",staticStyle:{width:"calc(100% - 53px)"}},[r("comments-form",{attrs:{value:n.comment.comment,autofocus:!0},on:{added:n.onFormReset,esc:n.onFormReset,submitting:n.onFormSubmitting}}),n._v(" "),n.isSubmitting?n._e():r("icon-font",{staticClass:"clickable",attrs:{icon:"close"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:n.onFormReset.apply(null,arguments)}}})],1):r("div",{staticClass:"comment float-right",staticStyle:{width:"calc(100% - 53px)"}},[r("div",{staticClass:"clearfix"},[n._m(0),n._v(" "),r("div",{staticClass:"date",class:{"has-buttons":n.buttons.length}},[n.comment.updated_at?r("has-tooltip",{attrs:{tag:"div",tooltip:"Edited ".concat(n.comment.updated_at),position:"left"}},[n._v("\n            "+n._s(n.comment.created_at)+"\n          ")]):r("div",[n._v("\n            "+n._s(n.comment.created_at)+"\n          ")])],1),n._v(" "),n.buttons.length?r("div",{staticClass:"buttons font-size-11"},[r("buttons-list",{attrs:{buttons:n.buttons,rotate:!0}})],1):n._e()]),n._v(" "),n.isThreadPlaceholder&&n.linkLabel?r("div",{staticClass:"content"},[n._v("\n        "+n._s(n.commentType)+"\n        "),r("span",{staticClass:"style-link",on:{click:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:n.onClickMore.apply(null,arguments)}}},[n._v(n._s(n.linkLabel))])]):n._e(),n._v(" "),n.isFloatingType&&!n.comment.parent_id&&n.comment.resolved_at?r("div",{staticClass:"content text-gray-darkest"},[n._v("\n        Resolved: "+n._s(n.comment.resolved_at)+"\n      ")]):n._e(),n._v(" "),n.isThreadPlaceholder&&n.comment.file_id?r("div",{staticClass:"content clearfix"},[r("div",{staticClass:"thumbnail cursor-pointer",on:{click:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:n.onClickMore.apply(null,arguments)}}},[r("img",{attrs:{src:"/file/get/"+n.comment.file_id+"/thumb",alt:n.linkLabel,loading:"lazy",decoding:"async"}})]),n._v(" "),r("div",{domProps:{innerHTML:n._s(n.commentHtml)}})]):r("div",{staticClass:"content selectable",domProps:{innerHTML:n._s(n.commentHtml)}})])]),n._v(" "),n.isReply?r("div",{staticClass:"clearfix",staticStyle:{"padding-top":"11px"}},[r("div",{staticClass:"reply float-right",staticStyle:{width:"calc(100% - 53px)"}},[r("comments-form",{attrs:{autofocus:!0},on:{added:n.onFormReset,esc:n.onFormReset,submitting:n.onFormSubmitting}}),n._v(" "),n.isSubmitting?n._e():r("icon-font",{staticClass:"clickable",attrs:{icon:"close"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:n.onFormReset.apply(null,arguments)}}})],1)]):n._e(),n._v(" "),n.isThreadPlaceholder&&n.comment.count?r("div",{staticClass:"replies-button"},[r("span",{staticClass:"cursor-pointer",on:{click:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:n.onClickMore.apply(null,arguments)}}},[n._v("\n      View all "+n._s(n.comment.count)+"\n      "),r("icon-font",{attrs:{icon:"reply","icon-class":"nc-icon-rotate-180"}})],1)]):n._e()])},i=[function(){var t=this;return(0,t._self._c)("div",{staticClass:"name",class:{"-guest":!t.comment.user_id},attrs:{title:t.comment.user_id?null:t.comment.guest_data.email}},[t._v("\n          "+t._s(t.authorName)+"\n        ")])}]},45232:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",t._l(t.comments,(function(n){return e("div",{key:n.id,staticClass:"comment-wrapper",class:n.id===t.xFloatingHighlight?"-highlight":null,on:{mouseenter:function(e){return t.onMouseEnter(n.id)},mouseleave:t.onMouseLeave,mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,n.id)}}},[e("comment-item",{attrs:{comment:n,meta:t.meta}}),t._v(" "),n.replies?e("div",{staticClass:"comment-replies"},[e("transition-group",{attrs:{name:"transition-fade"}},t._l(n.replies,(function(n){return e("comment-item",{key:n.id,attrs:{comment:n,meta:t.meta}})})),1)],1):t._e()],1)})),0)},i=[]},81364:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.isVisible&&t.canAssignPage?e("portal",{attrs:{to:"actionBar-afterLinks"}},[e("span",{ref:"pages",staticClass:"item style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openPagesListPicker(t.xSelectedItems.elements,t.selectedCellsIds)}}},[t._m(0),t._v("\n      Page\n    ")],1)]):t._e(),t._v(" "),t.isVisible&&t.actionBarComponent?e("portal",{attrs:{to:"actionBar-afterButtons"}},[e(t.actionBarComponent,{key:t.xSelectedItemsType,tag:"component"})],1):t._e()],1)},i=[function(){return(0,this._self._c)("icon-font",{staticClass:"ref",attrs:{icon:"layout"}})}]},49104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("span",{staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openColorpicker(e,t.constants.DIAGRAM_ITEM_DATA_KEY_STROKE)}}},[e("div",{staticClass:"ref color-preview smaller non-clickable",style:{background:t.colors[t.currentDataKey]},attrs:{title:t.colors[t.currentDataKey]}}),t._v("\n    Color\n  ")]),t._v(" "),e("span",{staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openConnectorPopover(e,"style")}}},[e("div",{staticClass:"ref color-preview smaller non-clickable"},[e("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","pointer-events":"none"}},t._l(t.lines,(function(n){return e("line",t._b({},"line",n,!1))})),0)]),t._v("\n    Style\n  ")]),t._v(" "),e("span",{staticClass:"button-item item-wider cursor-pointer"},[e("div",{staticClass:"color-preview smaller group"},t._l(t.$options.markers,(function(n){return e("div",{key:n,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openConnectorPopover(e,n)}}},[e("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","pointer-events":"none"}},[e("line",t._b({},"line",t.markerAttrs[n],!1))])])})),0),t._v("\n    Endpoints\n  ")])])},i=[]},92304:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t._l(t.buttons,(function(n){return e("span",{key:n,staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:function(e){return t.colorsData[n].style?t.openConnectorPopover(e):t.openColorpicker(e,n)}.apply(null,arguments)}}},[t.colorsData[n].color?e("div",{staticClass:"color-preview smaller non-clickable",style:{background:t.colors[n]},attrs:{title:t.colors[n]}}):e("div",{staticClass:"color-preview smaller non-clickable"},[e("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","pointer-events":"none"}},[e("line",t._b({},"line",t.line,!1))])]),t._v("\n    "+t._s(t.colorsData[n].label)+"\n  ")])})),t._v(" "),t.isOnlySwimlaneSelected?e("span",{staticClass:"button-item",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openSwimlanePopover.apply(null,arguments)}}},[e("div",{staticClass:"buttons-group active-button",staticStyle:{margin:"-4px 0 -8px"}},[e("span",{staticClass:"label autosize"},[t._v(t._s(t.swimlanesLabel))]),t._v(" "),e("div",{ref:"swimlanes",staticClass:"button-item"},[e("icon-font",{staticStyle:{"font-size":"10px"},attrs:{icon:t.popoverOpened?"up":"down"}})],1)])]):t._e()],2)},i=[]},16704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("span",{staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openPopover("size")}}},[e("icon-font",{attrs:{icon:"text-format"}}),t._v(" "),e("div",{staticClass:"buttons-group active-button"},[e("span",{staticClass:"label autosize"},[t._v(t._s(t.size))]),t._v(" "),e("div",{ref:"size",staticClass:"button-item"},[e("icon-font",{staticStyle:{"font-size":"10px"},attrs:{icon:"size"===t.currentPopover?"up":"down"}})],1)])],1),t._v(" "),e("span",{staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openColorpicker.apply(null,arguments)}}},[e("div",{ref:"text",staticClass:"color-preview smaller non-clickable",style:{background:t.text},attrs:{title:t.text}}),t._v("\n    Text\n  ")]),t._v(" "),e("span",{staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.execEditorCommand("Bold")}}},[e("icon-font",{attrs:{icon:"bold"}}),t._v("\n    Bold\n  ")],1),t._v(" "),e("span",{staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.execEditorCommand("Italic")}}},[e("icon-font",{attrs:{icon:"italic"}}),t._v("\n    Italic\n  ")],1),t._v(" "),e("span",{staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openPopover("align",e)}}},[e("icon-font",{attrs:{icon:t.iconAlign}}),t._v("\n    Align\n  ")],1)])},i=[]},88326:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("g",{attrs:{id:t.id,"pointer-events":t.isUpdating?"none":null},on:{mouseenter:t.onMouseEnter,mouseleave:function(e){t.isHover=!1},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown.apply(null,arguments)},dragstart:!1}},[t._l(t.pointsDouble,(function(n,r){return e("polyline",{key:r,attrs:{"pointer-events":"none",fill:"none",stroke:r?"#f7f7f9":t.stroke,"stroke-width":(r?1:3+t.strokeWidthDouble)+(t.isSelected?0:2),points:n}})})),t._v(" "),e("polyline",{staticClass:"shape",attrs:{"pointer-events":"none",fill:"none",stroke:t.isTypeDouble?"transparent":t.stroke,"stroke-width":t.strokeWidth,"stroke-dasharray":t.strokeDashArray,points:t.points,"marker-start":t.marker.start,"marker-end":t.marker.end}}),t._v(" "),!t.isPlaceholder&&t.canEdit?e("polyline",{staticClass:"helper",class:{"cursor-pointer":!t.isMultiSelecting},attrs:{fill:"none",stroke:"transparent","stroke-width":t.isMultiSelecting?1:15,points:t.points,"pointer-events":"stroke"}}):t._e(),t._v(" "),t.canEdit&&t.xConnector.editingBy?e("foreign-object",{staticClass:"boxed",attrs:{x:t.avatarPoints.x,y:t.avatarPoints.y,width:26,height:26}},[e("user-avatar",{staticClass:"with-border avatar-sm",attrs:{user:t.xConnector.editingBy,tooltip:"right"}})],1):t._e(),t._v(" "),t._l(t.repositionHandlers,(function(n){return e("g",{key:n.type},[e("rect",{attrs:{width:"8",height:"8",x:n.point[0]-4,y:n.point[1]-4,stroke:t.diagramStructure.colorActive,fill:t.diagramStructure.colorResizeFill,"pointer-events":"none"}}),t._v(" "),e("rect",{style:{cursor:"move"},attrs:{width:"16",height:"16",x:n.point[0]-8,y:n.point[1]-8,stroke:"transparent",fill:"transparent","data-marker":n.type}})])}))],2)},i=[]},44652:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{"pointer-events":"none",d:t.connectionList.join(" "),stroke:t.diagramStructure.colorConnection,fill:t.diagramStructure.colorConnection,"stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),t.connectionHover?e("path",{attrs:{"pointer-events":"none",d:t.connectionHover,stroke:t.diagramStructure.colorActive,fill:t.diagramStructure.colorActive,"stroke-linecap":"round","stroke-linejoin":"round"}}):t._e(),t._v(" "),t._l(t.connectionHandlers,(function(n){return e("rect",{staticClass:"prevent-parent",staticStyle:{cursor:"pointer"},attrs:{width:n.width,height:n.height,x:n.x,y:n.y,fill:"transparent","stroke-width":"0"},on:{mouseenter:function(e){t.currentListIndex=n.index},mouseleave:function(e){t.currentListIndex=-1},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,n.direction)},dragstart:!1}})}))],2)},i=[]},46368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("g",[e("path",{attrs:{"pointer-events":"none",d:t.d}}),t._v(" "),t.resizeHover?e("path",{attrs:{"pointer-events":"none",d:t.resizeHover,stroke:t.diagramStructure.colorActive,fill:t.diagramStructure.colorResizeFill}}):t._e(),t._v(" "),t._l(t.resizeHandlers,(function(n){return e("rect",{key:n.id,staticClass:"prevent-parent",style:{cursor:n.cursor},attrs:{width:"16",height:"16",x:n.x,y:n.y,fill:"transparent",stroke:"transparent"},on:{mouseenter:function(e){t.currentListIndex=n.index},mouseleave:function(e){t.currentListIndex=-1},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onResizeMouseDown(e,n)},dragstart:!1}})}))],2)},i=[]},45208:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("g",{attrs:{id:t.id,transform:t.elementTransform},on:{mouseenter:t.onMouseEnter,mouseleave:t.onMouseLeave,mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown.apply(null,arguments)}}},[t.xElement.type===t.constants.DIAGRAM_ELEMENT_IMAGE&&t.loadedImage&&"string"==typeof t.loadedImage?e("image",{attrs:{x:"0",y:"0",width:t.width,height:t.height,href:t.loadedImage}}):t.xElement.type!==t.constants.DIAGRAM_ELEMENT_IMAGE||"boolean"!=typeof t.loadedImage&&t.loadedImage?t.isProjectShared&&t.xElement.type===t.constants.DIAGRAM_ELEMENT_TEXT?t._e():e("shape",{staticClass:"shape",attrs:{type:t.xElement.type,width:t.width,height:t.height,stroke:t.stroke,"stroke-width":t.strokeWidth,"stroke-dasharray":t.strokeDashArray,fill:t.fill,"fill-opacity":t.fillOpacity}}):e("foreign-object",{staticClass:"boxed",attrs:{x:"0",y:"0",width:t.width,height:t.height}},[e("div",{staticClass:"element-image-icon"},[e("icon-font",{attrs:{icon:t.loadedImage?"image":"notify-warning"}})],1)]),t._v(" "),t.canEdit?e("rect",t._b({},"rect",t.elementArea,!1)):t._e(),t._v(" "),t.canEdit&&t.elementAreaGroupTag&&!t.isMultiSelecting?e(t.elementAreaGroupTag,t._b({tag:"component"},"component",t.elementAreaGroup,!1)):t._e(),t._v(" "),e("foreign-object",{class:t.labelForeignClass,attrs:{x:"0",y:"0",width:t.width,height:t.height,"pointer-events":t.isLabelTextEditable?null:"none"}},[e("div",{class:t.labelClass},[t.isTextElementEditorVisible?e("tinymce-editor",{key:"editor",attrs:{id:t.editorInit.id,init:t.editorInit,"initial-value":t.labelEditable},model:{value:t.labelEditable,callback:function(e){t.labelEditable=e},expression:"labelEditable"}}):t.isTextElement?e("div",{key:"static",staticClass:"mce-content-body",attrs:{id:t.editorInit.id},domProps:{innerHTML:t._s(t.labelEditable)}}):e("span",{key:"label",ref:"labelEdit",staticClass:"prevent-parent",class:t.isLabelTextEditable?"selectable cursor-text":null,style:t.labelStyle,attrs:{contenteditable:t.isLabelTextEditable}})],1)]),t._v(" "),e("transition",{attrs:{name:t.isMultiSelecting?null:t.$options.transition}},[!t.isMultiSelecting&&(t.canEdit&&t.isSelected||!t.isDragging&&(t.isHover||t.isResizing))?e("path",{attrs:{"pointer-events":"none",d:t.selectionBorder,"stroke-dasharray":"2 2",fill:"none"}}):t._e()]),t._v(" "),t.isConnectorDropVisible?e("g",t._l(t.connectionDropHandlers,(function(n){return e("rect",{key:n.id,attrs:{"pointer-events":"none",width:"7",height:"7",x:n.x,y:n.y,stroke:!!n.active&&t.diagramStructure.colorActive,fill:!!n.active&&t.diagramStructure.colorResizeFill}})})),0):t._e(),t._v(" "),e("transition",{attrs:{name:t.$options.transition}},[t.isResizeVisible?e("element-resize"):t._e()],1),t._v(" "),e("transition",{attrs:{name:t.$options.transition}},[t.isConnectorHandlerVisible?e("element-connectors"):t._e()],1),t._v(" "),t.canEdit&&t.xElement.editingBy?e("foreign-object",{staticClass:"boxed",attrs:{x:t.width/2-13,y:"-13",width:26,height:26}},[e("user-avatar",{staticClass:"with-border avatar-sm",attrs:{user:t.xElement.editingBy,tooltip:"right"}})],1):t._e()],1)},i=[]},70624:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.templates.length>1?e("field-select",{attrs:{name:"template",label:"Diagram template",placeholder:"Select template",options:t.templates,"option-label":"value","option-value":"key"},scopedSlots:t._u([{key:"option",fn:function(n){var r=n.option;return[r.key&&"blank"!==r.key?e("icon-font",{staticClass:"font-size-14 clickable style-link float-right mt-1",attrs:{icon:"eye-o"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),t.openTemplateDemo(r.key))}}}):t._e(),t._v(" "),e("span",[t._v(t._s(r.value))])]}},!t.removable||""===t.internalValue||t.addBlank&&"blank"===t.internalValue?null:{key:"after",fn:function(){return[e("icon-font",{staticClass:"font-size-14 clickable text-red",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onResetTemplateClick.apply(null,arguments)}}})]},proxy:!0}],null,!0),model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}}):t._e()},i=[]},89436:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:t.attrs.size,height:t.attrs.size}},[e("g",{attrs:{transform:["translate(",t.attrs.marginLeft+.5," ",t.attrs.marginTop+.5,")"].join("")}},[e("shape",t._b({},"shape",t.attrs,!1))],1)])},i=[]},84390:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this;return(0,t._self._c)(t.tag,t._b({tag:"component"},"component",t.attrs,!1))},i=[]},62520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-sidebar -alt",class:{visible:t.isVisible},style:t.sidebarStyleAttr},[e("div",{staticClass:"handler cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.isVisible=!t.isVisible)}}},[e("icon-font",{attrs:{icon:t.isVisible?"left-thin":"burger-list"}})],1),t._v(" "),t._l(t.submenus,(function(n){return e("div",{key:n.id,staticClass:"block"},[e("div",{staticClass:"header"},[e("icon-font",{staticClass:"clickable font-size-11 float-right",staticStyle:{margin:"0.3em 0 0"},attrs:{icon:t.sectionsVisible[n.id]?"up":"down"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSubmenuToggle(n)}}}),t._v(" "),e("span",{staticClass:"font-size-14"},[t._v(t._s(n.label))])],1),t._v(" "),e("transition",{attrs:{name:"transition-fade-slide"}},[t.sectionsVisible[n.id]?e("ul",{staticClass:"shapes-list clearfix"},t._l(n.shapes,(function(n,r){return e("has-tooltip",{key:n.id,staticClass:"cursor-pointer",class:{first:0===r||r%4==0},attrs:{tag:"li",tooltip:n.name},nativeOn:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,n)}}},[e("shape-svg",{attrs:{shape:n.id}})],1)})),1):t._e()])],1)}))],2)},i=[]},39792:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("g",{attrs:{id:t.id,transform:t.elementTransform},on:{mouseenter:t.onMouseEnter,mouseleave:t.onMouseLeave,mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown.apply(null,arguments)}}},[e("path",t._b({staticClass:"shape"},"path",t.attrs,!1)),t._v(" "),t.canEdit?e("path",t._b({},"path",t.elementArea,!1)):t._e(),t._v(" "),e("foreign-object",{staticClass:"boxed",attrs:{x:"0",y:"0",width:t.width,height:t.height,"pointer-events":t.isLabelTextEditable?null:"none"}},[e("div",{ref:"labelEdit",class:t.labelClass},t._l(t.labelEditable,(function(n,r){return e("span",{key:"label".concat(r),staticClass:"prevent-parent",class:t.isLabelTextEditable?"selectable cursor-text":null,style:t.labelStyle,attrs:{contenteditable:t.isLabelTextEditable},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onLabelPressEnter.apply(null,arguments))},paste:function(e){return e.preventDefault(),t.onLabelPaste(r,e)}}},[t._v(t._s(n))])})),0)]),t._v(" "),e("transition",{attrs:{name:t.isMultiSelecting?null:t.$options.transition}},[t.canEdit&&t.isSelected||!t.isDragging&&(t.isHover||t.isResizing)?e("path",{attrs:{"pointer-events":"none",d:t.selectionBorder,"stroke-dasharray":"2 2",fill:"none"}}):t._e()]),t._v(" "),e("transition",{attrs:{name:t.$options.transition}},[t.isResizeVisible?e("element-resize"):t._e()],1)],1)},i=[]},73395:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"ui-dropdown",class:{"-align-right":t.alignRight||t.isRightAligned,"-detached":t.isDetached},on:{mouseleave:t.close}},[t.label?e("li",[t._v("\n    "+t._s(t.label)+"\n  ")]):t._e(),t._v(" "),e("li",{class:{hover:t.isOpen},on:{mouseenter:t.mouseEnterOpen,click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.mouseClickOpen.apply(null,arguments)}}},[t.isDetached?e("ul",{staticClass:"_detached",style:[t.ulStyle,t.detachedStyle]},[t._l(t.normalizedItems,(function(n){return e("li",{key:n.key,class:{selected:t.isSelected(n.key)},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.select(n)}}},[t._t("item",(function(){return[e("div",[t._v(t._s(n.value))])]}),{item:n,data:n.data})],2)})),t._v(" "),t._t("items")],2):t._e(),t._v(" "),t._t("default",(function(){return[e("p",{class:{"cursor-pointer":!t.autoOpen}},[e("span",{class:t.selectedClass},[t._t("selectedValue",(function(){return[t._v(t._s(t.selectedValue))]}),{value:t.selectedValue})],2),t._v(" "),t._m(0)],1)]}),{value:t.selectedValue}),t._v(" "),t.normalizedItems.length>15?e("ul",{style:t.ulStyle},[e("scrollable",{attrs:{"max-height":t.maxScrollHeight}},t._l(t.normalizedItems,(function(n){return e("li",{key:n.key,class:{selected:!t.multiple&&t.isSelected(n.key)},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.select(n)}}},[t.multiple?e("field-checkable",{staticClass:"non-clickable",attrs:{size:"tiny",checked:t.isSelected(n.key)}}):t._e(),t._v(" "),t._t("item",(function(){return[e("div",[t._v(t._s(n.value))])]}),{item:n,data:n.data})],2)})),0),t._v(" "),t._t("items"),t._v(" "),t.multiple?e("li",{staticClass:"custom text-right"},[e("span",{staticClass:"button -plain -smaller",on:{click:function(e){return t.saveSelection()}}},[t._v("Clear")]),t._v(" "),e("span",{staticClass:"button -primary -smaller",on:{click:function(e){return t.saveSelection(t.internalSelected)}}},[t._v("Set")])]):t._e()],2):e("ul",{staticClass:"_drop",style:t.ulStyle},[t._l(t.normalizedItems,(function(n){return e("li",{key:n.key,class:{selected:!t.multiple&&t.isSelected(n.key)},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.select(n)}}},[t.multiple?e("field-checkable",{staticClass:"non-clickable",attrs:{size:"tiny",checked:t.isSelected(n.key)}}):t._e(),t._v(" "),t._t("item",(function(){return[e("div",[t._v(t._s(n.value))])]}),{item:n,data:n.data})],2)})),t._v(" "),t._t("items"),t._v(" "),t.multiple?e("li",{staticClass:"custom text-right"},[e("span",{staticClass:"button -plain -smaller",on:{click:function(e){return t.saveSelection()}}},[t._v("Clear")]),t._v(" "),e("span",{staticClass:"button -primary -smaller",on:{click:function(e){return t.saveSelection(t.internalSelected)}}},[t._v("Set")])]):t._e()],2)],2)])},i=[function(){return(0,this._self._c)("icon-font",{attrs:{icon:"triangle-down-sm"}})}]},41745:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this;return(0,t._self._c)("span",[t._v(t._s(t.date))])},i=[]},55922:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container"},[e("div",{staticClass:"is-flex",staticStyle:{margin:"24px 0",gap:"24px"}},[e("buttons-view",{attrs:{buttons:["grid","list"],value:t.xFilters.view},on:{update:t.onViewChange}}),t._v(" "),e("div",{staticStyle:{flex:"1"}},[e("field-slider",{directives:[{name:"show",rawName:"v-show",value:"grid"===t.xFilters.view,expression:"xFilters.view === 'grid'"}],attrs:{steps:[6,5,4,3,2],width:150},model:{value:t.columns,callback:function(e){t.columns=e},expression:"columns"}})],1),t._v(" "),t.buttons&&t.buttons.length?e("div",t._l(t.buttons,(function(n,r){return e("div",{class:["button",r+1===t.buttons.length?"-primary -small":"-plain -highlight"],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[t._v("\n        "+t._s(n.label)+"\n      ")])})),0):t._e()],1),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-justify-end g-no-wrap"},[e("div",{staticClass:"g-col-auto-full g-col-bleed-y"},[e("div",{staticClass:"toolbar-search -fixed-width clearfix"},[e("input",{class:{focus:t.xFilters.search},attrs:{id:"field-filter-search"},domProps:{value:t.xFilters.search},on:{keyup:function(e){return t.filterChange("search",e.target.value)}}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}}),t._v(" "),t.xFilters.search?e("icon-font",{staticClass:"clickable clear",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.setSearchFieldValue("",!0)}}}):t._e()],1)]),t._v(" "),e("div",{staticClass:"g-col-auto g-col-bleed-y"},[e("filters-reset",{attrs:{type:t.type}}),t._v(" "),t._l(t.availableFilters,(function(n,r){return e("dropdown",{key:r,staticClass:"font-size-14",attrs:{label:n.label,items:n.filters,selected:t.xFilters[r]},on:{select:function(e){return t.filterChange(r,e)}}})}))],2)]),t._v(" "),t._m(0)])},i=[function(){var t=this._self._c;return t("div",{staticClass:"g-grid"},[t("div",{staticClass:"g-col-12 g-col-bleed-y"},[t("hr",{staticClass:"bg-gray-darker"})])])}]},260:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ul",{directives:[{name:"show",rawName:"v-show",value:t.countFilters,expression:"countFilters"}],staticClass:"ui-dropdown font-size-12"},[e("li",{staticClass:"reset-filters",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.resetFilters.apply(null,arguments)}}},[t._v("\n    Filters: "+t._s(t.countFilters)+"\n    "),t._m(0)],1)])},i=[function(){return(0,this._self._c)("icon-font",{attrs:{icon:"x"}})}]},87692:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("button",{class:t.classNames,attrs:{id:t.id,type:t.type,disabled:t.isSubmitting||t.isDisabled}},[e("span",{staticClass:"caption"},[t._t("default",(function(){return[t._v(t._s(t.$trans("save_changes")))]}))],2),t._v(" "),t.isSubmitting?e("icon-font",{attrs:{icon:"loading"}}):t._e(),t._v(" "),t.submitted?e("icon-font",{attrs:{icon:"check"}}):t._e()],1)},i=[]},24528:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{class:t.classNameWrapper},[e("div",{class:t.placeholder?null:t.classNameCheckbox},[t.placeholder?t._e():e("input",{attrs:{id:t.id,type:t.type,name:t.name,required:t.required,disabled:t.disabled},domProps:{value:t.value,checked:t.state},on:{change:t.toggle}}),t._v(" "),e("label",{class:{"text-overflow":t.textOverflow},style:{maxWidth:t.textOverflow?"100%":null},attrs:{for:t.id}},[t._t("default")],2),t._v(" "),t._t("html")],2)])},i=[]},32427:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-colorpick",class:{"-has-opacity":t.opacity,"-has-field":t.field}},[e("div",{staticClass:"_panel"},[e("div",{staticClass:"_slider",on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,"hue")}}},[e("div",{ref:"hue",staticClass:"_picker"})]),t._v(" "),t.opacity?e("div",{staticClass:"_slider -opacity",on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,"opacity")}}},[e("div",{staticClass:"_transparent",style:t.opacityBackground}),t._v(" "),e("div",{ref:"opacity",staticClass:"_picker"})]):t._e(),t._v(" "),e("div",{staticClass:"_grid",style:{backgroundColor:t.backgroundColor},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,"grid")}}},[e("div",{ref:"area",staticClass:"_grid-inner"}),t._v(" "),e("div",{ref:"grid",staticClass:"_picker"})])]),t._v(" "),t.field?e("div",{staticClass:"_field is-flex g-justify-space-between"},[e("div",{staticClass:"field"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueHexModel,expression:"valueHexModel"}],staticClass:"text-center compact",style:{paddingRight:t.canReset?"22px !important":null},attrs:{maxlength:"7"},domProps:{value:t.valueHexModel},on:{input:function(e){e.target.composing||(t.valueHexModel=e.target.value)}}}),t._v(" "),t.canReset?e("icon-font",{staticClass:"clickable font-size-16 text-gray-darkest",staticStyle:{position:"absolute",top:"6px",right:"6px"},attrs:{icon:"refresh"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onReset.apply(null,arguments)}}}):t._e()],1),t._v(" "),t.opacity?e("div",{staticClass:"field"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueOpacityModel,expression:"valueOpacityModel"}],staticClass:"text-center compact",attrs:{maxlength:"4"},domProps:{value:t.valueOpacityModel},on:{input:function(e){e.target.composing||(t.valueOpacityModel=e.target.value)}}})]):t._e()]):t._e()])},i=[]},26104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field",class:[t.wrapperClass,{"has-errors":t.fieldError},{"field-numeric":t.numeric}]},[t.label||t.hasDefaultSlot?e("label",{class:t.labelClass,attrs:{for:t.id}},[t._t("default",(function(){return[t._v(t._s(t.label))]}))],2):t._e(),t._v(" "),t._t("labelAfter"),t._v(" "),"password"===t.type||t.labelAppend||t.buttonAppend?e("div",{staticClass:"input is-flex -flex-auto",class:{"-focus":t.isFocus,"has-button":t.buttonAppend}},[e("div",{staticClass:"-flex-full"},[e(t.tag,t._g(t._b({tag:"component"},"component",t.attrs,!1),t.events),[t._v(t._s(t.tagInnerHtml))])],1),t._v(" "),t.buttonAppend?e("div",{staticClass:"_button"},[e("div",{staticClass:"button -primary -small",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("button-click")}}},[t._v("\n        "+t._s(t.buttonAppend)+"\n      ")])]):e("div",{staticClass:"action-item",class:{"cursor-pointer":"password"===t.type},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.changePasswordType.apply(null,arguments)}}},["password"===t.type?e("icon-font",{attrs:{icon:"password"===t.fieldType?"eye":"eye-ban"}}):e("span",{staticClass:"font-size-12",class:[t.fieldError?"text-red":"text-lightblue-darkest"]},[t._v("\n        "+t._s(t.labelAppend)+"\n      ")])],1)]):e(t.tag,t._g(t._b({tag:"component"},"component",t.attrs,!1),t.events),[t._v(t._s(t.tagInnerHtml))]),t._v(" "),t.numeric?e("icon-font",{staticClass:"clickable",attrs:{icon:"up"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onNumericIncrease.apply(null,arguments)}}}):t._e(),t._v(" "),t.numeric?e("icon-font",{staticClass:"clickable",attrs:{icon:"down"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onNumericDecrease.apply(null,arguments)}}}):t._e(),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.description||t.fieldError,expression:"description || fieldError"}],staticClass:"description"},[t._v(t._s(t.fieldError||t.description))]),t._v(" "),t._t("htmlAfter")],2)},i=[]},16092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field",class:{"has-errors":t.fieldError}},[t._t("label"),t._v(" "),t.label?e("label",{attrs:{for:t.id}},[t._v("\n    "+t._s(t.label)+"\n  ")]):t._e(),t._v(" "),e("div",{class:t.$slots.after?"is-flex -with-gap -flex-auto":""},[e("multiselect",t._b({class:[t.fieldClass,t.$slots.after?"-flex-full":""],attrs:{id:t.id,multiple:t.isMultiple,taggable:t.isTaggable,searchable:t.isSearchable,"clear-on-select":t.isTaggable,"close-on-select":!t.isTaggable,"show-labels":t.isTaggable,"allow-empty":t.isMultiple,"group-values":t.hasOptGroup?"options":null,"group-label":t.hasOptGroup?"group":null,"track-by":t.isTaggable?null:t.optionValue,label:t.isTaggable?null:t.optionLabel,options:t.options,max:t.maxSelected,autocomplete:"off","data-lpignore":"true"},on:{open:t.onDropdownOpen,input:t.onSelect,tag:function(e){return t.$emit("tag",e)},remove:function(e){return t.$emit("remove",e)},select:function(e){return t.$emit("select",e)}},scopedSlots:t._u([{key:"loading",fn:function(){},proxy:!0},{key:"option",fn:function(e){var n=e.option;return[t._t("option",null,{option:n})]}},{key:"singleLabel",fn:function(e){var n=e.option;return[t._t("singleLabel",null,{option:n})]}}],null,!0),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},"multiselect",t.$attrs,!1)),t._v(" "),t._t("after")],2),t._v(" "),t.fieldError?e("span",{staticClass:"description"},[t._v(t._s(t.fieldError))]):t._e()],2)},i=[]},548:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field",class:t.wrapperClass},[t.inputs?[t._l(t.normalizedRadios,(function(n){return[e("input",{key:"input"+n.id,class:{checked:t.model===n.value},attrs:{id:n.id,type:"radio",name:t.fieldName,disabled:n.disabled},domProps:{value:n.value,checked:t.model===n.value},on:{change:function(e){return t.$emit("change",n.value)}}}),t._v(" "),e("label",{key:n.id,style:n.width?"width: "+n.width+"%":null,attrs:{for:n.id}},[t._v(t._s(n.label))])]}))]:t._l(t.normalizedRadios,(function(n){return e("label",{key:n.id,class:{checked:t.model===n.value,disabled:n.disabled},style:n.width?"width: "+n.width+"%":null,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[t._v("\n      "+t._s(n.label)+"\n    ")])}))],2)},i=[]},40272:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-slider",class:{"cursor-drag":t.isDragging},style:{width:t.width+"px"},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onMouseDown.apply(null,arguments))}}},[e("div",{staticClass:"_handler",class:{"non-clickable":t.isDragging},style:t.handlerStyle})])},i=[]},53839:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field field-switch",class:{"is-flex -with-half-gap":t.label,"-large":t.large}},[e("input",{attrs:{id:t.id,type:"checkbox",name:t.name||t.id,required:t.required,disabled:t.disabled},domProps:{value:t.value,checked:t.state},on:{change:t.toggle}}),t._v(" "),t.label?e("p",{staticClass:"label"},[t._v("\n    "+t._s(t.label)+"\n    "),t.description?e("small",{staticClass:"mt-2"},[t._v(t._s(t.description))]):t._e()]):t._e(),t._v(" "),e("label",{attrs:{for:t.id}},[t._v(" ")]),t._v(" "),t._t("default")],2)},i=[]},58540:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this;return(0,t._self._c)("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],attrs:{rows:"1"},domProps:{value:t.value},on:{input:[function(e){e.target.composing||(t.value=e.target.value)},t.onInput]}})},i=[]},13992:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field",class:{"has-errors":t.fieldError}},[e("div"),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.fieldError,expression:"fieldError"}],staticClass:"description"},[t._v("\n    "+t._s(t.fieldError)+"\n  ")])])},i=[]},91048:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field"},[t._t("default",(function(){return[t.label?e("label",[t._v(t._s(t.label))]):t._e()]})),t._v(" "),e("div",{staticClass:"ui-mention"},[e("div",{staticClass:"_field",attrs:{contenteditable:"true"},domProps:{innerHTML:t._s(t.valueHtml)},on:{focus:t.onFocus,blur:t.onBlur,paste:t.onPaste,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onKeyDown.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.onKeyDown.apply(null,arguments))}],keyup:t.onInput,mouseup:t.onInput,click:t.onClick}}),t._v(" "),e("icon-font",{staticClass:"_handler clickable",attrs:{icon:"plus"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDropdown.apply(null,arguments)}}})],1),t._v(" "),t._t("htmlAfter")],2)},i=[]},58524:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field field-wysiwyg",class:{"has-errors":t.fieldError}},[t.label||t.hasDefaultSlot?e("label",{attrs:{for:t.id}},[t._t("default",(function(){return[t._v(t._s(t.label))]}))],2):t._e(),t._v(" "),t._t("labelAfter"),t._v(" "),e("div",{class:t.editorWrapperClasses},[e("tinymce-editor",{attrs:{id:t.id,init:t.editorInit,"initial-value":t.valueAsString},on:{onFocus:t.onFocus,onBlur:t.onBlur,onKeyUp:t.onChangeDebounced,onChange:t.onChangeDebounced,onPaste:t.onChangeDebounced,onCut:t.onChangeDebounced,onInput:t.onChangeDebounced,onUndo:t.onChangeDebounced,onRedo:t.onChangeDebounced,onDirty:t.onChangeDebounced,onSetContent:t.onChangeDebounced,onSubmit:t.onChangeDebounced,onSaveContent:t.onChangeDebounced}})],1),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.fieldError,expression:"fieldError"}],staticClass:"description"},[t._v(t._s(t.fieldError))])],2)},i=[]},26556:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component",on:{mouseenter:t.onMouseEnter,mouseleave:t.onMouseLeave,click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseClick.apply(null,arguments)}}},[t._t("default"),t._v(" "),t.$slots.tooltip?e("div",{ref:"tooltip",staticClass:"hide"},[t._t("tooltip")],2):t._e()],2)},i=[]},19616:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("i",{staticClass:"nc-icon-wrapper"},[e("transition",{attrs:{name:"fade"}},[t.isSuccess?e("span",{key:t.constants.SAVING_STATUS_SUCCESS},[e("icon-font",{key:"check",class:t.successClassName,attrs:{icon:"check"}})],1):t.isError?e("span",{key:t.constants.SAVING_STATUS_ERROR},[e("icon-font",{key:"x",class:t.errorClassName,attrs:{icon:"x"}})],1):t.isLoading?e("span",{key:t.constants.SAVING_STATUS_LOADING},[e("icon-font",{key:"loading",class:t.savingClassName,attrs:{icon:"loading"}})],1):t.hasSlot?e("span",{key:"default"},[t._t("default")],2):t._e()])],1)},i=[]},6692:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component",staticClass:"g-grid g-align-center row-head"},t._l(t.headers,(function(n){return e("div",{key:n.id,class:n.className,style:n.style},[e("label",{staticClass:"heading",class:{"cursor-pointer":n.sort,"-current":t.sort[0]===n.id},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[t._v("\n      "+t._s(n.label)+"\n      "),n.sort?e("span",{staticClass:"ui-sorting text-gray-darkest",class:t.sort[0]===n.id?"-"+t.sort[1]:null},[t._o(e("icon-font",{staticClass:"asc",attrs:{icon:"triangle-up-sm"}}),0,n.id),t._v(" "),t._o(e("icon-font",{staticClass:"desc",attrs:{icon:"triangle-down-sm"}}),1,n.id)],1):t._e()])])})),0)},i=[]},63512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"ui-listing"},[t.headers.length?e("listing-head",{attrs:{columns:t.headers,sort:t.sort,resettable:t.resettable},on:{sort:function(e){return t.$emit("sort",e)}}}):t._e(),t._v(" "),t._l(t.items,(function(n){return e("li",{key:n.id,staticClass:"g-grid g-align-center row-single buttons-list-handler",class:{selected:t.xBarSelectedIds.includes(n.id)}},t._l(n.columns,(function(r,i){return e("div",{key:r.id,class:r.className,style:r.style},[i?r.buttons&&r.buttons.length?e("buttons-list",{attrs:{buttons:r.buttons,item:n.id}}):[t._t("columnContent",(function(){return[r.component?e(r.component,t._b({tag:"component"},"component",r.props,!1)):e("div",{staticClass:"text-overflow",class:{"-shadow":r.shadow}},[t._v("\n            "+t._s(r.label)+"\n            "),t._t("afterColumn",null,{item:n,column:r})],2)]}),{item:n,column:r})]:[t.isProjectView&&!t.isProjectEditable||!t.selectable?t._e():e("field-checkable",{attrs:{placeholder:!0,checked:t.xBarSelectedIds.includes(n.id)},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n.id)}}}),t._v(" "),e("div",{staticClass:"label text-overflow",class:{"-shadow":r.shadow}},[e("div",{staticClass:"is-flex"},[t._t("beforeName",null,{item:n,column:r,click:t.onClick}),t._v(" "),e("div",{class:{"style-link-invert":r.onClick&&!t.xBarSelectedIds.length},attrs:{title:r.label},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n.id,r.onClick)}}},[t._t("name",(function(){return[t._v("\n                "+t._s(r.label)+"\n              ")]}),{item:n,column:r})],2),t._v(" "),t._t("afterName",null,{item:n,column:r})],2)])]],2)})),0)}))],2)},i=[]},61404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ps-padding-bottom"},[t.xIsPageLoading&&!t.ignoreLoading?e("component-loading"):t.items.length?e("div",[t.buttons.length||t.buttonsLeft.length?e("div",{staticClass:"g-container"},[e("div",{staticClass:"g-grid g-justify-space-between g-align-center list-buttons"},[e("div",{staticClass:"g-col-8"},[t._t("description",(function(){return[t.buttonsLeft.length?e("div",{staticClass:"buttons-plain"},t._l(t.buttonsLeft,(function(n){return e("div",{key:n.icon,staticClass:"button",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[n.icon?e("icon-font",{attrs:{icon:n.icon}}):t._e(),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(n.label))])],1)})),0):t.descriptionText.length?e("p",{staticClass:"font-size-13 line-height-144"},[t._v("\n              "+t._s(t.descriptionText.join(" "))+"\n              "),t.currentDescription.link?e("link-help",{staticClass:"style-link",attrs:{id:t.currentDescription.link}},[t._v("\n                "+t._s(t.currentDescription.linkLabel||"Need help?")+"\n              ")]):t._e()],1):t._e()]}))],2),t._v(" "),e("div",{staticClass:"g-col-4 text-right project-toolbar-after"},t._l(t.buttons,(function(n,r){return e("span",{class:["button",r+1===t.buttons.length?"-primary":"-plain -highlight","-small"],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[t._v("\n            "+t._s(n.label)+"\n          ")])})),0)])]):t._e(),t._v(" "),t._t("toolbar"),t._v(" "),e("div",{staticClass:"g-container g-container-bleed g-align-center list-table",staticStyle:{"margin-top":"1em"}},[t._t("default",(function(){return[e("table-listing",{staticClass:"-smaller",attrs:{grid:t.grid,head:t.head,rows:t.sortedItemsRows,sort:t.sort,selectable:t.selectable},on:{sort:function(e){t.sort=e}}})]}))],2)],2):e("div",[e("div",{staticClass:"centered-container text-center",style:t.emptyContainerStyle},[t.currentDescription.image?[e("image-tag",t._b({},"image-tag",t.currentDescription.image,!1)),t._v(" "),e("hr",{staticClass:"spacer-225"})]:t._e(),t._v(" "),t.currentDescription.heading?e("p",{staticClass:"font-size-28 font-weight-700"},[t._v("\n        "+t._s(t.currentDescription.heading)+"\n      ")]):t._e(),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),t.descriptionText.length?e("p",{staticClass:"line-height-166"},[t._l(t.descriptionText,(function(n,r){return[r?e("br"):t._e(),t._v("\n          "+t._s(n)+"\n        ")]})),t._v(" "),t.currentDescription.link?e("link-help",{staticClass:"style-link",attrs:{id:t.currentDescription.link}},[t._v("\n          "+t._s(t.currentDescription.linkLabel||"Need help?")+"\n        ")]):t._e()],2):t._e(),t._v(" "),t.buttons.length?e("hr",{staticClass:"spacer-150"}):t._e(),t._v(" "),t._l(t.buttons,(function(n,r){return e("div",{class:["button",r+1===t.buttons.length?"-primary":"-plain -highlight"],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[t._v("\n        "+t._s(n.label)+"\n      ")])}))],2)])],1)},i=[]},41988:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.totalPages>1?e("div",{staticClass:"ui-pagination"},[e("ul",t._l(t.buttons,(function(n,r){return e("li",{key:r,class:n.className,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onPageClick(n,r)}}},[n.icon?e("icon-font",{attrs:{icon:n.icon}}):e("span",[t._v(t._s(n.number))])],1)})),0)]):t._e()},i=[]},20852:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[e("div",{staticClass:"blocks"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[e("div",{staticClass:"block"},[t.title?e("div",{staticClass:"titlebar"},[t.close?e("icon-font",{staticClass:"clickable",attrs:{icon:"left"},on:{click:t.onClose}}):t._e(),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.title))])],1):t._e(),t._v(" "),e("div",{staticClass:"content"},[t._t("default")],2)])])],1)])},i=[]},26924:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[null===t.revisionsLoaded?e("tab-loading",{key:"loading"}):!1===t.revisionsLoaded?e("div",{key:"error"},[e("notification-item",{attrs:{item:t.loadingError},on:{close:t.loadRevisions}})],1):e("div",{key:"list",staticClass:"blocks"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[e("ul",{staticClass:"ui-revisions-list"},t._l(t.revisionsLoaded,(function(n,r){return e("li",{key:n.id,class:{selected:t.selected===n.id,"cursor-pointer":t.selected!==n.id},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onRevisionClick(n)}}},[e("div",[t.selected!==n.id||!r&&n.active?t._e():e("span",{staticClass:"style-link clickable float-right font-size-12"},[t.isRestoring?e("div",{staticClass:"is-flex g-align-items-center"},[e("icon-font",{attrs:{icon:"loading"}})],1):e("div",{staticClass:"is-flex g-align-items-center",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onRevisionRestore(n)}}},[e("icon-font",{attrs:{icon:"restore"}}),t._v(" "),e("div",{staticClass:"ml-2"},[t._v("Restore")])],1)]),t._v(" "),e("div",{staticClass:"font-size-14 text-navy font-weight-500"},[t._v("\n              "+t._s(0===r&&n.active?"Current version":n.date)+"\n            ")]),t._v(" "),e("div",{staticClass:"is-flex g-align-items-center font-size-12 mt-4"},[e("div",{staticClass:"text-gray-darkest"},[t._v("\n                Status:\n              ")]),t._v(" "),e("i",{staticClass:"icon ml-3 mr-1"},[e("span",{staticClass:"workflow-status -with-margin",style:t.getStatusColor(n.status)})]),t._v(" "),e("div",[t._v(t._s(t.getStatusName(n.status)))])]),t._v(" "),n.user?e("div",{staticClass:"is-flex g-align-items-center font-size-12 mt-3"},[e("div",{staticClass:"text-gray-darkest"},[t._v("\n                Editor:\n              ")]),t._v(" "),e("user-avatar",{staticClass:"avatar-xs float-none ml-3 mr-2",attrs:{user:n.user,tooltip:!1,"display-empty":!0}}),t._v(" "),e("div",[t._v(t._s(n.user.name))])],1):t._e()])])})),0)])],1)],1)},i=[]},88336:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[e("form",{staticClass:"blocks",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("scrollable",{attrs:{height:t.scrollableHeight},on:{enabled:t.onScrollEnabled,disabled:t.onScrollDisabled}},["image"===t.type?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Image type\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding"},[e("div",{staticClass:"fields-vertical"},[e("field-checkable",{attrs:{type:"radio",size:"small",value:"png"},model:{value:t.formData.image_type,callback:function(e){t.$set(t.formData,"image_type",e)},expression:"formData.image_type"}},[t._v("\n              PNG\n            ")]),t._v(" "),e("field-checkable",{attrs:{type:"radio",size:"small",value:"eps"},model:{value:t.formData.image_type,callback:function(e){t.$set(t.formData,"image_type",e)},expression:"formData.image_type"}},[t._v("\n              EPS (vector)\n            ")])],1)])]):t._e(),t._v(" "),t.canChangePaperFormat?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Paper format\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding"},[e("field-select",{attrs:{options:t.paperSizes,"option-label":"value","option-value":"key"},model:{value:t.formData.paper,callback:function(e){t.$set(t.formData,"paper",e)},expression:"formData.paper"}}),t._v(" "),"AUTO"!==t.formData.paper?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.landscape,callback:function(e){t.$set(t.formData,"landscape",e)},expression:"formData.landscape"}},[t._v("\n            Landscape orientation\n          ")]):t._e(),t._v(" "),"AUTO"!==t.formData.paper?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.fit_to_page,callback:function(e){t.$set(t.formData,"fit_to_page",e)},expression:"formData.fit_to_page"}},[t._v("\n            Fit to page\n          ")]):t._e()],1)]):t._e(),t._v(" "),"slickplan"===t.type?e("div",{staticClass:"block"},[e("div",{staticClass:"content content-padding"},[t.isSitemapExport?e("p",{staticClass:"line-height-166"},[t._v("\n            Slickplan XML is used to\n            "),e("link-help",{staticClass:"style-link",attrs:{id:"wp_plugin"}},[t._v("\n              import content into WordPress via our plugin,\n            ")]),t._v("\n            exported as a backup or to interchange projects between different accounts.\n          ")],1):e("p",{staticClass:"line-height-166"},[t._v("\n            Slickplan diagram XML can be exported as a backup or to interchange projects between different accounts.\n          ")])])]):t._e(),t._v(" "),t.canCustomizeHeader?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Header layout\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding"},[t.hasProjectLogo?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.header_logo,callback:function(e){t.$set(t.formData,"header_logo",e)},expression:"formData.header_logo"}},[t._v("\n            Show project logo\n          ")]):t._e(),t._v(" "),e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.header_project_name,callback:function(e){t.$set(t.formData,"header_project_name",e)},expression:"formData.header_project_name"}},[t._v("\n            "+t._s(t.isSitemapExport?"Sitemap":"Diagram")+" name\n          ")]),t._v(" "),e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.header_date,callback:function(e){t.$set(t.formData,"header_date",e)},expression:"formData.header_date"}},[t._v("\n            "+t._s(t.isSitemapExport?"Date and version number":"Include date")+"\n          ")]),t._v(" "),t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.header_page_count,callback:function(e){t.$set(t.formData,"header_page_count",e)},expression:"formData.header_page_count"}},[t._v("\n            Page count\n          ")]):t._e()],1)]):t._e(),t._v(" "),void 0!==t.formData.csv_columns&&t.isSitemapExport&&"csv"===t.type?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          CSV columns\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding"},t._l(t.csvColumns,(function(n,r){return e("field-checkable",{key:r,attrs:{size:"small",value:r},model:{value:t.formData.csv_columns,callback:function(e){t.$set(t.formData,"csv_columns",e)},expression:"formData.csv_columns"}},[t._v("\n            "+t._s(n)+"\n          ")])})),1)]):t._e(),t._v(" "),t.hasAdditionalOptions?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Include additional options\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding"},[void 0!==t.formData.include_diagrams&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_diagrams,callback:function(e){t.$set(t.formData,"include_diagrams",e)},expression:"formData.include_diagrams"}},[t._v("\n            Diagrams\n          ")]):t._e(),t._v(" "),void 0!==t.formData.include_archetypes&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_archetypes,callback:function(e){t.$set(t.formData,"include_archetypes",e)},expression:"formData.include_archetypes"}},[t._v("\n            Page types\n          ")]):t._e(),t._v(" "),void 0!==t.formData.include_archetypes&&void 0!==t.formData.legend_archetypes&&t.formData.include_archetypes&&t.isSitemapExport?e("div",{staticClass:"indent-options"},[e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.legend_archetypes,callback:function(e){t.$set(t.formData,"legend_archetypes",e)},expression:"formData.legend_archetypes"}},[t._v("\n              Add page types legend\n            ")])],1):t._e(),t._v(" "),void 0!==t.formData.include_links&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_links,callback:function(e){t.$set(t.formData,"include_links",e)},expression:"formData.include_links"}},[t._v("\n            Page links\n          ")]):t._e(),t._v(" "),void 0!==t.formData.include_notes&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_notes,callback:function(e){t.$set(t.formData,"include_notes",e)},expression:"formData.include_notes"}},[t._v("\n            Page notes\n          ")]):t._e(),t._v(" "),void 0!==t.formData.include_comments?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_comments,callback:function(e){t.$set(t.formData,"include_comments",e)},expression:"formData.include_comments"}},[t._v("\n            "+t._s(t.isSitemapExport?"Page comments":"Comments")+"\n          ")]):t._e(),t._v(" "),void 0!==t.formData.include_seo_metadata&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_seo_metadata,callback:function(e){t.$set(t.formData,"include_seo_metadata",e)},expression:"formData.include_seo_metadata"}},[t._v("\n            SEO metadata\n          ")]):t._e(),t._v(" "),void 0!==t.formData.include_content_labels&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_content_labels,callback:function(e){t.$set(t.formData,"include_content_labels",e)},expression:"formData.include_content_labels"}},[t._v("\n            Content block labels\n          ")]):t._e(),t._v(" "),void 0!==t.formData.include_content_status&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_content_status,callback:function(e){t.$set(t.formData,"include_content_status",e)},expression:"formData.include_content_status"}},[t._v("\n            Content status\n          ")]):t._e(),t._v(" "),void 0!==t.formData.monochromatic?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.monochromatic,callback:function(e){t.$set(t.formData,"monochromatic",e)},expression:"formData.monochromatic"}},[t._v("\n            Monochromatic\n          ")]):t._e(),t._v(" "),void 0!==t.formData.include_css&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.include_css,callback:function(e){t.$set(t.formData,"include_css",e)},expression:"formData.include_css"}},[t._v("\n            Include CSS file for visual sitemap\n          ")]):t._e(),t._v(" "),void 0!==t.formData.page_numbering&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.page_numbering,callback:function(e){t.$set(t.formData,"page_numbering",e)},expression:"formData.page_numbering"}},[t._v("\n            Page numbering\n          ")]):t._e(),t._v(" "),void 0!==t.formData.embed_font?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.embed_font,callback:function(e){t.$set(t.formData,"embed_font",e)},expression:"formData.embed_font"}},[t._v("\n            Use unicode font\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Check this option to correctly display non-ASCII characters in exported file, for example Japanese, Chinese, or Korean.\n                ")])]},proxy:!0}],null,!1,1483132123)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.languages.length>1&&void 0!==t.formData.filter_page_language&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.filter_page_language,callback:function(e){t.$set(t.formData,"filter_page_language",e)},expression:"formData.filter_page_language"}},[t._v("\n            Limit to language\n          ")]):t._e(),t._v(" "),t.languages.length>1&&void 0!==t.formData.filter_page_language&&t.formData.filter_page_language&&t.isSitemapExport?e("div",{staticClass:"indent-options"},[e("field-select",{attrs:{placeholder:"Select language",options:t.languages},model:{value:t.formData.filter_page_language_string,callback:function(e){t.$set(t.formData,"filter_page_language_string",e)},expression:"formData.filter_page_language_string"}})],1):t._e(),t._v(" "),void 0!==t.formData.filter_page_status&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.filter_page_status,callback:function(e){t.$set(t.formData,"filter_page_status",e)},expression:"formData.filter_page_status"}},[t._v("\n            Limit to page status\n          ")]):t._e(),t._v(" "),void 0!==t.formData.filter_page_status&&t.formData.filter_page_status&&t.isSitemapExport?e("div",{staticClass:"indent-options"},[e("field-select",{attrs:{options:t.xContentStatuses,placeholder:"Select workflow status","option-label":"name","option-value":"alias"},model:{value:t.formData.filter_page_status_string,callback:function(e){t.$set(t.formData,"filter_page_status_string",e)},expression:"formData.filter_page_status_string"}})],1):t._e(),t._v(" "),void 0!==t.formData.exclude_collapsed_pages&&t.isSitemapExport?e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.exclude_collapsed_pages,callback:function(e){t.$set(t.formData,"exclude_collapsed_pages",e)},expression:"formData.exclude_collapsed_pages"}},[t._v("\n            Exclude collapsed pages\n          ")]):t._e()],1)]):t._e(),t._v(" "),e("div",{staticClass:"form-buttons",class:{disabled:t.stickyBottomBar}},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onCancel.apply(null,arguments))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n          "+t._s(t.$trans("export"))+"\n        ")])],1)]),t._v(" "),t.stickyBottomBar?e("div",{staticClass:"sticky-form-buttons"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onCancel.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n        "+t._s(t.$trans("export"))+"\n      ")])],1):t._e()],1)])},i=[]},52904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.isPreviewVisible?e("div",{staticClass:"wrapper",style:t.wrapperStyles},[t.info?e("span",{staticClass:"info text-gray-darkest font-size-13",style:t.formatStyles(t.info)},[t._v("\n    "+t._s(t.info.text)+"\n  ")]):t._e(),t._v(" "),t.foot?e("p",{staticClass:"foot text-gray-darkest font-size-13 text-center",style:t.formatStyles(t.foot)},[t._v("\n    "+t._s(t.foot.text)+"\n  ")]):t._e(),t._v(" "),t.logo||t.title.text.length?e("div",{staticClass:"title",style:t.formatStyles(t.title)},[t.logo?e("div",{staticClass:"logo"},[e("img",{attrs:{src:t.logo,alt:t.projectData.title}})]):t._e(),t._v(" "),t._l(t.title.text,(function(n,r){return t.title.text.length?e("p",{key:r,class:r?"text-gray-darkest font-size-14":"text-navy font-weight-600 font-size-15"},[t._v("\n      "+t._s(n)+"\n    ")]):t._e()}))],2):t._e()]):t._e()},i=[]},66920:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-wrapper"},[e("div",{staticClass:"blocks-container"},[t.xFilesLoaded?t.xFiles.length?e("div",{key:"files",staticClass:"blocks -full -no-margin"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[e("div",{staticClass:"ps-padding-bottom"},[t.selectable?t._e():e("div",{staticClass:"g-container-full"},[e("div",{staticClass:"g-grid g-justify-space-between g-align-center"},[e("div",{staticClass:"g-col-8"},[e("p",{staticClass:"font-size-16 font-weight-600"},[t._v("\n                  Currently using "+t._s(t.usedStorage)+" of "+t._s(t.allowedStorage)+"\n                ")])]),t._v(" "),e("div",{staticClass:"g-col-4 text-right"},t._l(t.buttons,(function(n,r){return e("span",{class:["button",r+1===t.buttons.length?"-primary":"-plain -highlight","-small"],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[t._v("\n                  "+t._s(n.label)+"\n                ")])})),0)])]),t._v(" "),e("div",{staticClass:"g-container-full"},[e("div",{staticClass:"g-grid g-align-center g-justify-space-between g-no-wrap"},[e("div",{staticClass:"g-col-auto g-col-bleed-y"},[e("div",{staticClass:"toolbar-search -fixed-width clearfix"},[e("input",{class:{focus:t.filters.search&&t.filters.search.length},attrs:{id:"field-filter-search",placeholder:"Search files..."},on:{keyup:t.onSearchChange}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}}),t._v(" "),t.filters.search?e("icon-font",{staticClass:"clickable clear",attrs:{icon:"close"},on:{click:t.onSearchReset}}):t._e()],1)]),t._v(" "),e("div",{staticClass:"g-col-auto g-col-bleed-y"},[e("div",{staticClass:"is-flex -align-end"},[t.selectable?t._e():e("dropdown",{staticClass:"font-size-14",attrs:{label:"File type",items:t.fileTypes,selected:t.filters.file_type},on:{select:function(e){return t.onSetFilter("file_type",e)}}}),t._v(" "),e("dropdown",{staticClass:"font-size-14",attrs:{label:"Show",items:t.filterSitemaps,selected:t.filters.show},on:{select:function(e){return t.onSetFilter("show",e)}}}),t._v(" "),t.filterUploadedBy.length?e("dropdown",{staticClass:"font-size-14",attrs:{label:"Uploaded by",items:t.filterUploadedBy,selected:t.filters.user},on:{select:function(e){return t.onSetFilter("user",e)}}}):t._e(),t._v(" "),t.selectable?t._e():e("dropdown",{staticClass:"font-size-14",attrs:{label:"Sort by",items:[{key:"name-asc",value:"Name"},{key:"filesize-desc",value:"Size"},{key:"date_timestamp-desc",value:"Date"}],selected:t.sort},on:{select:function(e){t.sort=e}}}),t._v(" "),e("buttons-view",{staticClass:"font-size-16",staticStyle:{"margin-left":"2rem"},attrs:{buttons:["grid","list"],value:t.viewType},on:{update:function(e){t.viewType=e}}})],1)])]),t._v(" "),e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12 g-col-bleed-y"},[e("hr",{staticClass:"bg-gray-darker"})])])]),t._v(" "),e("div",{staticClass:"g-container-full g-align-center",staticStyle:{"margin-top":"1em"}},[t.filteredSortedItems.length?"grid"===t.viewType?e("div",{key:"grid"},[e("div",{staticClass:"g-grid file-library-grid"},[t._l(t.paginatedFilteredSortedItems,(function(n){return e("grid",{key:n.alias,staticClass:"g-col-4",style:t.gridStyle,attrs:{file:n,"filename-class":"font-size-16 line-height-166 text-overflow","filesize-class":"line-height-166 text-gray-darkest filesize"}})})),t._v(" "),t.limitFilesToDisplay>0?e("div",{staticClass:"visibility-check"}):t._e()],2)]):e("div",{key:"listing",staticClass:"file-library-list g-grid"},t._l(t.filteredSortedItemsRowsColumns,(function(n,r){return e("div",{staticClass:"g-col-6",style:t.filteredSortedItemsRowsColumnsWidth},[e("table-listing",{staticClass:"-smaller",attrs:{grid:["calc(100% - 105px)","105px"],rows:n,"auto-hide-buttons":!0},scopedSlots:t._u([{key:"beforeName",fn:function(t){var n=t.item,r=t.column;return[n.meta.url_thumb?e("div",{staticClass:"contributor-avatar -file with-name mr-4"},[e("img",{attrs:{src:n.meta.url_thumb,alt:r.label,loading:"lazy",decoding:"async"}})]):e("div",{staticClass:"contributor-avatar text -file -empty with-name mr-4"},[e("icon-font",{attrs:{icon:n.meta.icon||"file-text",type:n.meta.icon?"fa":"nc"}})],1)]}},{key:"name",fn:function(n){var r=n.item,i=n.column;return[t._v("\n                    "+t._s(i.label)+"\n                    "),e("div",{staticClass:"font-size-13 text-gray-darkest mt-2"},[t._v("\n                      "+t._s(t.humanFileSize(r.meta.filesize))+"\n                    ")])]}}],null,!0)}),t._v(" "),t.limitFilesToDisplay>0&&r+1===t.filteredSortedItemsRowsColumns.length?e("div",{staticClass:"visibility-check"}):t._e()],1)})),0):e("div",{key:"empty"},[e("div",{staticClass:"centered-container text-center"},[e("p",[t._v("\n                  No files found.\n                  "),e("span",{staticClass:"style-link",on:{click:t.onResetFilters}},[t._v("Reset your search criteria.")])])])])])])])],1):e("div",{key:"empty",staticClass:"position-relative",style:{height:t.xWindowSize.height-t.$options.scrollableTitlebarHeight+"px"}},[e("div",{staticClass:"centered-container text-center"},[e("p",{staticClass:"font-size-28 font-weight-700"},[t._v("\n          Add files\n        ")]),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),e("p",{staticClass:"font-size-16 line-height-166"},[t._v("\n          Upload images, media, or documents to use in your project.\n        ")]),t._v(" "),t.canUpload?e("hr",{staticClass:"spacer-150"}):t._e(),t._v(" "),t.canUpload?e("div",{staticClass:"button -primary",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onUpload.apply(null,arguments)}}},[t._v("\n          Upload files\n        ")]):t._e()])]):e("tab-loading",{key:"loading"})],1)])},i=[]},80818:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.xCommentsLoading?e("panel-loading"):t.isGuestAndIntroductionNeeded?e("guest-form"):t.xCommentsGlobal.length?e("div",{staticClass:"global-comments"},[e("div",{staticClass:"navbar is-flex"},[e("div",{staticClass:"search-wrapper is-flex",staticStyle:{"flex-grow":"1"}},[e("div",{staticClass:"button search"},[e("icon-font",{attrs:{icon:"search"}})],1),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"search",attrs:{type:"text",placeholder:"Search"},domProps:{value:t.searchQuery},on:{input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.searchQuery,expression:"searchQuery"}],staticClass:"button clear",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.clearSearch.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"close"}})],1)]),t._v(" "),t.commentsTypes.length>2?e("dropdown",{staticClass:"font-size-12 smaller",attrs:{label:"Show",items:t.commentsTypes,selected:t.displayType},on:{select:function(e){return t.displayType=e}}}):t._e(),t._v(" "),e("dropdown",{staticClass:"font-size-12 smaller",attrs:{label:"Sort by",items:t.sortByFilter,selected:t.sortBy},on:{select:function(e){t.sortBy=e}}})],1),t._v(" "),t.canWriteComments?e("div",{staticClass:"navbar"},[e("comments-form",{on:{height:function(e){t.textareaHeight=e.height},added:t.onCommentAdded}})],1):t._e(),t._v(" "),t.sortedFilteredComments&&t.sortedFilteredComments.length?e("div",{staticClass:"comments-list",staticStyle:{padding:"4px 1px 0"}},[e("scrollable",{ref:"scrollable",attrs:{height:t.scrollableHeight}},[e("comments-list",{staticStyle:{padding:"8px"},attrs:{comments:t.sortedFilteredComments,meta:!0}})],1)],1):t._e()]):e("div",{staticStyle:{padding:"15px"}},[t.canWriteComments?e("comments-form",{on:{height:function(e){t.textareaHeight=e.height},added:t.onCommentAdded}}):t._e(),t._v(" "),e("hr",{staticClass:"spacer-175"}),t._v(" "),e("comments-empty")],1)},i=[]},41092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[e("form",{staticClass:"blocks",class:{"with-sticky-bar":t.hasSubmit&&t.stickyBottomBar},attrs:{"data-vv-scope":t.formHelper.scope,autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("scrollable",{attrs:{height:t.scrollableHeight},on:{enabled:t.onScrollEnabled,disabled:t.onScrollDisabled}},["template"===t.importCurrentForm?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Select template\n        ")]),t._v(" "),t.xPredefinedTemplates.length?e("div",{staticClass:"content content-padding"},t._l(t.xPredefinedTemplates,(function(n,r){return e("field-checkable",{key:n.key,class:{"mt-5":r},attrs:{type:"radio",name:"template",value:n.key,size:"smallest"},scopedSlots:t._u([{key:"html",fn:function(){return[e("icon-font",{staticClass:"ml-2 font-size-13 clickable style-link",attrs:{icon:"eye-o"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openTemplateDemo(n.key)}}})]},proxy:!0}],null,!0),model:{value:t.formData.template_id,callback:function(e){t.$set(t.formData,"template_id",e)},expression:"formData.template_id"}},[t._v("\n            "+t._s(n.value)+"\n            ")])})),1):e("div",{staticClass:"content content-padding content-padding-double text-center"},[e("icon-loading",{attrs:{status:!0}})],1)]):t._e(),t._v(" "),"ai"===t.importCurrentForm?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Describe the site in 1-2 sentences\n        ")]),t._v(" "),e("div",{staticClass:"content field plain text-left"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.formData.prompt,expression:"formData.prompt"}],staticStyle:{height:"8em",resize:"none"},attrs:{rows:"4",minlength:"10",maxlength:"1000",placeholder:"For example: “A local Miami gym specializing in CrossFit”"},domProps:{value:t.formData.prompt},on:{input:function(e){e.target.composing||t.$set(t.formData,"prompt",e.target.value)}}})])]):t._e(),t._v(" "),"ai"===t.importCurrentForm?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Settings\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding -cols"},[e("field-select",{attrs:{label:"Language",options:t.aiLanguages},model:{value:t.formData.language,callback:function(e){t.$set(t.formData,"language",e)},expression:"formData.language"}}),t._v(" "),e("field-select",{attrs:{label:"Number of pages",options:t.aiCounters},model:{value:t.formData.counter,callback:function(e){t.$set(t.formData,"counter",e)},expression:"formData.counter"}})],1)]):t._e(),t._v(" "),t.canUpload?e("block-upload",{on:{success:t.onUploadSuccess}}):t._e(),t._v(" "),t.hasSubmit&&"crawler"===t.importCurrentForm?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Import an existing website\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding import-options"},[void 0!==t.formData.url?e("div",[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url",type:"url",placeholder:"https://",label:"Enter your website's URL","field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.formData.url,callback:function(e){t.$set(t.formData,"url",e)},expression:"formData.url"}})],1):t._e()])]):t._e(),t._v(" "),t.hasSubmit&&"wordpress"===t.importCurrentForm?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Select page types\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding"},[e("div",{staticClass:"fields-vertical2"},t._l(t.postTypes,(function(n){return e("field-checkable",{key:n,attrs:{size:"small",value:n},model:{value:t.formData.post_types,callback:function(e){t.$set(t.formData,"post_types",e)},expression:"formData.post_types"}},[t._v("\n              "+t._s(n)+"\n            ")])})),1)])]):t._e(),t._v(" "),t.hasSubmit&&t.formData.cell_text?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Page label\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding import-options"},[e("field-checkable",{attrs:{type:"radio",size:"small",name:"cell_text",value:"path"},model:{value:t.formData.cell_text,callback:function(e){t.$set(t.formData,"cell_text",e)},expression:"formData.cell_text"}},[t._v("\n            File / directory name\n          ")]),t._v(" "),e("field-checkable",{attrs:{type:"radio",size:"small",name:"cell_text",value:"h1"},model:{value:t.formData.cell_text,callback:function(e){t.$set(t.formData,"cell_text",e)},expression:"formData.cell_text"}},[t._v("\n            Header\n            "),e("code",[t._v("<h1>")]),t._v("\n            tag\n          ")]),t._v(" "),e("field-checkable",{attrs:{type:"radio",size:"small",name:"cell_text",value:"title"},model:{value:t.formData.cell_text,callback:function(e){t.$set(t.formData,"cell_text",e)},expression:"formData.cell_text"}},[t._v("\n            Page\n            "),e("code",[t._v("<title>")]),t._v("\n            tag\n          ")]),t._v(" "),void 0!==t.formData.remove_title_text&&"path"!==t.formData.cell_text?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.remove_title_text,callback:function(e){t.$set(t.formData,"remove_title_text",e)},expression:"formData.remove_title_text"}},[t._v("\n            Exclude common text from pages on import\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  This option will remove common recurring text from title tags and file names that recur throughout\n                  your website."),e("br"),t._v("\n                  For example, if selecting the page title you can remove repetitive SEO text strings like\n                  "),e("strong",[e("code",[t._v("| Company Name")])]),t._v("\n                  that proceeds or follows the title text you want to appear in your page cell.\n                ")])]},proxy:!0}],null,!1,2670156111)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.formData.remove_title_text&&"path"!==t.formData.cell_text?e("div",{staticClass:"indent-options"},[e("div",{staticClass:"field textarea comment-field"},[e("field-textarea",{attrs:{size:"small",placeholder:"Each in new line",autosize:!0},model:{value:t.formData.remove_title_text_string,callback:function(e){t.$set(t.formData,"remove_title_text_string",e)},expression:"formData.remove_title_text_string"}})],1)]):t._e()],1)]):t._e(),t._v(" "),t.hasSubmit&&t.formData.follow_mode?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Follow mode\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding import-options"},[e("field-checkable",{attrs:{type:"radio",size:"small",name:"follow_mode",value:"1"},model:{value:t.formData.follow_mode,callback:function(e){t.$set(t.formData,"follow_mode",e)},expression:"formData.follow_mode"}},[t._v("\n            Domain and all subdomains\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Follows the domain and all subdomains.\n                  "),e("br"),t._v("\n                  For example, if you enter\n                  "),e("code",[t._v("https://example.com/")]),t._v("\n                  our Site Crawler will fetch pages from the\n                  "),e("code",[t._v("example.com")]),t._v("\n                  domain as well as all subdomains, e.g.\n                  "),e("code",[t._v("foo.example.com")]),t._v("\n                  or\n                  "),e("code",[t._v("bar.example.com")])])]},proxy:!0}],null,!1,1417005817)},[e("icon-font",{attrs:{icon:"question"}})],1)],1),t._v(" "),e("field-checkable",{attrs:{type:"radio",size:"small",name:"follow_mode",value:"2"},model:{value:t.formData.follow_mode,callback:function(e){t.$set(t.formData,"follow_mode",e)},expression:"formData.follow_mode"}},[t._v("\n            Domain only\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Follows links only from the specified domain, e.g.\n                  "),e("code",[t._v("example.com")]),t._v("\n                  (and also\n                  "),e("code",[t._v("www.example.com")]),t._v("\n                  )\n                ")])]},proxy:!0}],null,!1,1359348323)},[e("icon-font",{attrs:{icon:"question"}})],1)],1),t._v(" "),e("field-checkable",{attrs:{type:"radio",size:"small",name:"follow_mode",value:"3"},model:{value:t.formData.follow_mode,callback:function(e){t.$set(t.formData,"follow_mode",e)},expression:"formData.follow_mode"}},[t._v("\n            Domain and directory path only\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Restrict the access to a specific domain and the directory path only. If you enter\n                  "),e("code",[t._v("https://example.com/dir/")]),t._v("\n                  this will only follow links beginning with\n                  "),e("code",[t._v("https://example.com/dir/")]),t._v("\n                  and\n                  "),e("code",[t._v("https://www.example.com/dir/")])])]},proxy:!0}],null,!1,1672997332)},[e("icon-font",{attrs:{icon:"question"}})],1)],1),t._v(" "),e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.filter_dirty_urls,callback:function(e){t.$set(t.formData,"filter_dirty_urls",e)},expression:"formData.filter_dirty_urls"}},[t._v("\n            Don’t follow query string variables\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  This option will ignore all links that contain\n                  "),e("code",[t._v("?")]),t._v("\n                  or\n                  "),e("code",[t._v("&")]),t._v("\n                  characters, for example dynamically generated calendar pages or search results:\n                  "),e("code",[t._v("/calendar?year=2019&month=11")])])]},proxy:!0}],null,!1,2385418930)},[e("icon-font",{attrs:{icon:"question"}})],1)],1)],1)]):t._e(),t._v(" "),t.hasSubmit&&"slickplan"!==t.importCurrentForm&&"template"!==t.importCurrentForm&&"ai"!==t.importCurrentForm?e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n          Additional options\n        ")]),t._v(" "),e("div",{staticClass:"content content-padding import-options"},[void 0!==t.formData.add_links?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.add_links,callback:function(e){t.$set(t.formData,"add_links",e)},expression:"formData.add_links"}},[t._v("\n            Add links\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Adds complete URL into the sitemap link property\n                ")])]},proxy:!0}],null,!1,1314698530)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),void 0!==t.formData.meta_note?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.meta_note,callback:function(e){t.$set(t.formData,"meta_note",e)},expression:"formData.meta_note"}},[t._v("\n            Add meta description note\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Adds a page property note from the\n                  "),e("code",[t._v("<meta description>")]),t._v("\n                  tag contents on each crawled page\n                ")])]},proxy:!0}],null,!1,2365641891)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),void 0!==t.formData.limit?e("field-checkable",{attrs:{size:"small",value:"1",disabled:t.xAccountData.trial},model:{value:t.formData.limit,callback:function(e){t.$set(t.formData,"limit",e)},expression:"formData.limit"}},[t._v("\n            Limit number of pages\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Sets the maximum number of pages for the import tool to fetch. For example, entering 10 will\n                  download a maximum of 10 pages from the given website.\n                ")])]},proxy:!0}],null,!1,325966565)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.formData.limit&&t.xAccountData.trial?e("p",{staticClass:"indent-options text-gray-darkest font-size-12 line-height-144",staticStyle:{"margin-bottom":"0"}},[t._v("\n            Website crawls are limited to "+t._s(t.crawlerLimit)+" pages during the free trial.\n            "),t.$root.userCan(t.permissionsAccount.PAYMENTS)?e("span",[e("router-link",{staticClass:"style-link",attrs:{to:"/account/billing"}},[t._v("Upgrade")]),t._v("\n              to Pro or higher to unlock\n            ")],1):t._e()]):t._e(),t._v(" "),t.formData.limit?e("div",{staticClass:"indent-options",staticStyle:{width:"120px"}},[e("field-input",{attrs:{type:"number",min:"1",max:t.crawlerLimit},model:{value:t.formData.pages_limit,callback:function(e){t.$set(t.formData,"pages_limit",e)},expression:"formData.pages_limit"}})],1):t._e(),t._v(" "),void 0!==t.formData.filters?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.filters,callback:function(e){t.$set(t.formData,"filters",e)},expression:"formData.filters"}},[t._v("\n            Filter directories and files\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Select whether to crawl only certain designated directories, omit directories or a combination of\n                  both. Enter a directory name in the blank field. Include\n                  "),e("code",[t._v("*")]),t._v("\n                  as a wildcard to match zero or more characters.\n                ")])]},proxy:!0}],null,!1,2674627340)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.formData.filters?e("div",{staticClass:"indent-options g-grid"},[e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-bottom g-col-bleed-half-x g-col-bleed-left"},[e("div",{staticClass:"field textarea comment-field"},[e("label",[t._v("Designate directories (follow only)")]),t._v(" "),e("field-textarea",{staticStyle:{height:"62px"},attrs:{placeholder:"/example/*\n/about/*"},model:{value:t.formData.filter_follow,callback:function(e){t.$set(t.formData,"filter_follow",e)},expression:"formData.filter_follow"}})],1)]),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-bottom g-col-bleed-half-x g-col-bleed-right"},[e("div",{staticClass:"field textarea comment-field"},[e("label",[t._v("Omit directories (exclude)")]),t._v(" "),e("field-textarea",{staticStyle:{height:"62px"},attrs:{placeholder:"/example/subdir/*\n/about/company"},model:{value:t.formData.filter_exclude,callback:function(e){t.$set(t.formData,"filter_exclude",e)},expression:"formData.filter_exclude"}})],1)])]):t._e(),t._v(" "),void 0!==t.formData.basic_auth?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.basic_auth,callback:function(e){t.$set(t.formData,"basic_auth",e)},expression:"formData.basic_auth"}},[t._v("\n            Use Basic HTTP Authentication\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  If your website is password protected select this option and enter your username and password. Note:\n                  currently it works only with the HTTP Basic Auth method\n                ")])]},proxy:!0}],null,!1,2715974863)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.formData.basic_auth?e("div",{staticClass:"indent-options g-grid"},[e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-bottom g-col-bleed-half-x g-col-bleed-left"},[e("field-input",{attrs:{placeholder:"Username"},model:{value:t.formData.basic_auth_login,callback:function(e){t.$set(t.formData,"basic_auth_login",e)},expression:"formData.basic_auth_login"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-bottom g-col-bleed-half-x g-col-bleed-right"},[e("field-input",{attrs:{type:"password",maxlength:"255",placeholder:"Password",autocomplete:"new-password"},model:{value:t.formData.basic_auth_password,callback:function(e){t.$set(t.formData,"basic_auth_password",e)},expression:"formData.basic_auth_password"}})],1)]):t._e(),t._v(" "),void 0!==t.formData.ignore_robots_txt?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.ignore_robots_txt,callback:function(e){t.$set(t.formData,"ignore_robots_txt",e)},expression:"formData.ignore_robots_txt"}},[t._v("\n            Ignore\n            "),e("code",[t._v("robots.txt")]),t._v("\n            file rules\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Some websites have a robots exclusion standard. This standard specifies how to inform the web robot\n                  about which areas of the website should not be processed or scanned. You can tell our crawler to\n                  simply ignore this ruleset file.\n                ")])]},proxy:!0}],null,!1,2278981813)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),void 0!==t.formData.ignore_cookies?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.ignore_cookies,callback:function(e){t.$set(t.formData,"ignore_cookies",e)},expression:"formData.ignore_cookies"}},[t._v("\n            Ignore HTTP Cookies\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Disregards cookies that your website tries to store\n                ")])]},proxy:!0}],null,!1,923535172)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),void 0!==t.formData.custom_user_agent?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.custom_user_agent,callback:function(e){t.$set(t.formData,"custom_user_agent",e)},expression:"formData.custom_user_agent"}},[t._v("\n            Use a custom User Agent string\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Some websites have custom firewalls which block everything with 'crawler' in the name. This option\n                  by default is pre-populated with your browser's name, so our crawler will pretend to be a real\n                  browser, and your firewall system will not block it.\n                ")])]},proxy:!0}],null,!1,2856949433)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.formData.custom_user_agent?e("div",{staticClass:"indent-options"},[e("field-input",{attrs:{placeholder:"User Agent ID"},model:{value:t.formData.custom_user_agent_string,callback:function(e){t.$set(t.formData,"custom_user_agent_string",e)},expression:"formData.custom_user_agent_string"}})],1):t._e(),t._v(" "),void 0!==t.formData.import_content?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.import_content,callback:function(e){t.$set(t.formData,"import_content",e)},expression:"formData.import_content"}},[t._v("\n            Import page content to Content Planner\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Adds page content to the content planner\n                ")])]},proxy:!0}],null,!1,184871566)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),void 0!==t.formData.import_metadata?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.import_metadata,callback:function(e){t.$set(t.formData,"import_metadata",e)},expression:"formData.import_metadata"}},[t._v("\n            Import SEO metadata to Content Planner\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Adds the meta/focus keywords,\n                  "),e("code",[t._v("<title>")]),t._v("\n                  tag contents,\n                  "),e("br"),t._v("\n                  and meta description to the content planner\n                ")])]},proxy:!0}],null,!1,4164421948)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),void 0!==t.formData.set_project_settings?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.set_project_settings,callback:function(e){t.$set(t.formData,"set_project_settings",e)},expression:"formData.set_project_settings"}},[t._v("\n            Update project settings (Site Title and URL)\n          ")]):t._e(),t._v(" "),void 0!==t.formData.parse_javascript?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.parse_javascript,callback:function(e){t.$set(t.formData,"parse_javascript",e)},expression:"formData.parse_javascript"}},[t._v("\n            Render JavaScript content\n            "),e("small",{staticClass:"text-gray-darkest"},[t._v("(beta)")]),t._v(" "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  This utilises headless browser to render the page. Since it takes time to compile all the JavaScript in order to render the page, "),e("b",[t._v("the process can be significantly slower")]),t._v("."),e("br"),t._v("\n                  Please use this option only if you need to crawl JavaScript-based websites.\n                ")])]},proxy:!0}],null,!1,3295052482)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.xPlanLimits.beta_testing&&void 0!==t.formData.requests_limit?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.requests_limit,callback:function(e){t.$set(t.formData,"requests_limit",e)},expression:"formData.requests_limit"}},[t._v("\n            Limit crawler speed\n            "),e("small",{staticClass:"text-gray-darkest"},[t._v("(option only for Awmous team members)")])]):t._e(),t._v(" "),t.canImportIntoSection?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.to_section,callback:function(e){t.$set(t.formData,"to_section",e)},expression:"formData.to_section"}},[t._v("\n            Import into a section\n            "),e("has-tooltip",{staticClass:"icon-help",attrs:{tag:"span"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"text-tooltip"},[t._v("\n                  Importing sitemaps into sections is the best way to add part of the structure without overwriting an\n                  entire existing sitemap.\n                ")])]},proxy:!0}],null,!1,3201847024)},[e("icon-font",{attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.canImportIntoSection&&t.formData.to_section?e("div",{staticClass:"indent-options"},[t.sectionsList.length?e("field-radio-bar",{attrs:{radios:t.toSectionTypes},model:{value:t.formData.to_section_type,callback:function(e){t.$set(t.formData,"to_section_type",e)},expression:"formData.to_section_type"}}):t._e(),t._v(" "),"new"===t.formData.to_section_type?e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],key:"new",attrs:{name:"new",placeholder:"Select Page",options:t.dropdownCellsList,"option-label":t.constants.CELL_DATA_KEY_LABEL,"option-value":t.constants.CELL_DATA_KEY_ID,"field-error":t.formFieldError("new")},model:{value:t.formData.to_section_id,callback:function(e){t.$set(t.formData,"to_section_id",e)},expression:"formData.to_section_id"}}):e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],key:"existing",attrs:{name:"existing",placeholder:"Select Section",options:t.sectionsListDropdown,"field-error":t.formFieldError("existing")},model:{value:t.formData.to_section_id,callback:function(e){t.$set(t.formData,"to_section_id",e)},expression:"formData.to_section_id"}})],1):t._e()],1)]):t._e(),t._v(" "),t.hasSubmit?e("div",{staticClass:"form-buttons",class:{disabled:t.stickyBottomBar}},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onCancel.apply(null,arguments))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n          "+t._s("ai"===t.importCurrentForm?"Generate":"Import")+"\n        ")])],1):t._e()],1),t._v(" "),t.hasSubmit&&t.stickyBottomBar?e("div",{staticClass:"sticky-form-buttons"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onCancel.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n        "+t._s("ai"===t.importCurrentForm?"Generate":"Import")+"\n      ")])],1):t._e()],1)])},i=[]},38560:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n    "+t._s(t.title)+"\n  ")]),t._v(" "),"text"===t.xImportCurrentForm||"xml"===t.fileExtension?e("div",{staticClass:"content content-padding style-md"},["text"===t.xImportCurrentForm?e("p",[t._v("\n      Slickplan supports text files using dash hierarchy."),e("br"),t._v("\n      Download a "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSampleFileDownload.apply(null,arguments)}}},[t._v("template file")]),t._v("\n      or see the "),e("link-help",{attrs:{id:"import_txt"}},[t._v("\n        help section\n      ")]),t._v(" for details.\n    ")],1):e("p",[t._v("\n      Slickplan supports\n      "+t._s(t.isStandaloneDiagram?"Slickplan XML file format.":"WordPress XML, Google Sitemap XML, and Slickplan XML file formats.")+"\n      See the\n      "),e("link-help",{attrs:{id:"import_xml"}},[t._v("\n        help section\n      ")]),t._v("\n      for details.\n    ")],1)]):t._e(),t._v(" "),e("div",[t.isUploadingVisible||"text"!==t.importCurrentForm?t._e():e("div",{staticClass:"content content-padding"},[e("field-radio-bar",{attrs:{radios:t.uploadTypes},model:{value:t.xImportFormData.file_type,callback:function(e){t.$set(t.xImportFormData,"file_type",e)},expression:"xImportFormData.file_type"}})],1),t._v(" "),t.isUploadForm?e("upload-internal",{key:"upload",staticClass:"content content-padding",attrs:{url:t.importUrl,"accepted-files":t.fileExtension,"form-data":t.xImportFormData},on:{file:t.onUploadSuccess,success:t.onUploadResponse}}):e("div",{key:"text",staticClass:"content content-padding text-center"},[e("div",{staticClass:"field text-left"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.xImportFormData.file_content,expression:"xImportFormData.file_content"}],staticStyle:{height:"141px"},attrs:{readonly:t.isUploading,rows:"5",placeholder:"Paste the content here"},domProps:{value:t.xImportFormData.file_content},on:{input:function(e){e.target.composing||t.$set(t.xImportFormData,"file_content",e.target.value)}}})]),t._v(" "),e("button",{staticClass:"-primary -small",staticStyle:{"margin-top":"1rem"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onSavePastedContent.apply(null,arguments))}}},[t._v("\n        "+t._s(t.$trans("submit"))+"\n      ")])])],1)])},i=[]},29872:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("transition",{attrs:{name:"transition-panel-preview",duration:{enter:490,leave:330},tag:"div"}},[t.xPanelVisible&&(t.hasOverlay||t.hasPreviewComponent)?e("div",{staticClass:"project-panel-preview",class:{"is-overlay":t.hasOverlay}},[t.hasPreviewComponent?e("div",{staticClass:"outer-wrapper",style:t.panelPreviewWidthStyle},[e(t.xPanelPreviewComponent.component,t._b({key:t.xPanelPreviewComponent.component.name,tag:"component"},"component",t.xPanelPreviewComponent.props,!1))],1):t._e()]):t._e()]),t._v(" "),e("transition",{attrs:{name:"transition-panel",tag:"div"},on:{"before-enter":t.onBeforeEnter,"after-enter":t.onAfterEnter,"before-leave":t.onBeforeLeave,"after-leave":t.onAfterLeave}},[t.xPanelVisible?e("div",{staticClass:"project-panel",class:t.xPanelId?"-id-".concat(t.xPanelId):null,style:t.panelWidthStyle},[!1!==t.xPanelTitle?e("div",{staticClass:"titlebar"},[e("icon-font",{staticClass:"clickable icon",attrs:{icon:"x"},on:{click:t.onPanelClose}}),t._v(" "),e("span",{staticClass:"label"},[t._v("\n          "+t._s(t.xPanelTitle||"")+"\n        ")]),t._v(" "),t._l(t.xPanelButtons,(function(n){return e("div",{key:n.icon||n.label,staticClass:"icon cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonClick(n)}}},[n.icon?e("icon-font",{attrs:{icon:n.icon}}):t._e(),t._v(" "),n.label?e("span",{staticClass:"font-size-12",staticStyle:{"padding-left":"0.5em"}},[t._v(t._s(n.label))]):t._e()],1)}))],2):t._e(),t._v(" "),t.tabsMenu.length>1?e("div",{staticClass:"navbar clearfix"},[e("ol",{staticClass:"tab-menu -narrow -alt"},t._l(t.tabsMenu,(function(n){return e("li",{key:n.id,class:{_active:!n.disabled&&t.xPanelCurrentTab===n.id,_disabled:n.disabled},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onTabClick(n)}}},[t._v("\n            "+t._s(n.name)+"\n          ")])})),0)]):t._e(),t._v(" "),t.xPanelStandalone&&t.currentComponent?e("div",{key:"standalone-"+t.currentComponentId},[e(t.currentComponent,t._b({key:t.currentComponentId,tag:"component"},"component",t.currentComponentProps,!1))],1):t.currentComponent?e("transition-group",{key:"transition",staticClass:"blocks-wrapper",attrs:{tag:"div",name:t.componentTransition},on:{"after-enter":t.onComponentAfterEnter}},[e(t.currentComponent,t._b({key:t.currentComponentId,tag:"component"},"component",t.currentComponentProps,!1))],1):t._e(),t._v(" "),t.xIsPanelResizeable?e("div",{staticClass:"resize-handler",on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),t.resizeStart.apply(null,arguments))}}}):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.xPanelOverlay,expression:"xPanelOverlay"}],class:["overlay",t.xPanelOverlay]},[t.notification?e("notification-item",{attrs:{item:t.notification},on:{close:t.onNotificationClose}}):t._e()],1)],1):t._e()])],1)},i=[]},91964:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this._self._c;return t("div",{staticClass:"text-center",staticStyle:{padding:"2rem 0"}},[t("icon-font",{attrs:{icon:"loading"}})],1)},i=[]},34800:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"content content-padding"},[e("p",[t._v("\n      Date Range:\n      "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDatepickerOpen.apply(null,arguments)}}},[t._v(t._s(t.rangeText))])]),t._v(" "),e("p",{staticClass:"text-gray-darkest",staticStyle:{"padding-top":"1em"}},[t._v("\n      URL: "),e("code",[t._v(t._s(t.url))])])]),t._v(" "),t._l(t.chartsSmall,(function(n){return e("div",{key:n,staticClass:"content content-padding"},[e("p",{staticClass:"font-size-18"},[t._v("\n      "+t._s(t.chartsData[n].label)+"\n    ")]),t._v(" "),e("p",{staticClass:"font-size-34 text-blue font-weight-300",staticStyle:{"padding-top":"7px"}},[t._v("\n      "+t._s(t.chartsData[n].total)+"\n    ")]),t._v(" "),e("div",{staticClass:"chart-canvas"},[e("canvas",{attrs:{id:"canvas-".concat(n),width:"195",height:"50"}})])])}))],2)},i=[]},54536:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{padding:"1em 0"}},[e("div",{staticClass:"filters font-size-14",staticStyle:{padding:"0.5em 0.5em 1em 2em"}},[e("span",{staticClass:"text-gray-darkest"},[t._v("Date Range:")]),t._v(" "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDatepickerOpen.apply(null,arguments)}}},[t._v("\n      "+t._s(t.rangeText)+"\n      "),e("icon-font",{attrs:{icon:"triangle-down-sm","icon-class":"is-dropdown-arrow ref"}})],1),t._v(" "),e("dropdown",{staticClass:"font-size-14",staticStyle:{"margin-left":"1.5em"},attrs:{label:"Top pages filter:",items:t.topPagesFilters,selected:t.topPagesFilter},on:{select:function(e){t.topPagesFilter=e}}})],1),t._v(" "),e("div",{staticClass:"g-grid g-justify-space-between"},[e("div",{staticClass:"g-col-5 g-col-bleed-half"},[e("div",{staticClass:"block -single"},[e("div",{staticClass:"content content-padding"},[e("p",{staticClass:"font-size-20"},[t._v("\n            Top pages\n          ")]),t._v(" "),!0===t.topPages?e("div",{staticClass:"font-size-28 mt-5 mb-5"},[e("icon-font",{attrs:{icon:"loading"}})],1):t.topPages?e("table",{staticClass:"metrics selectable"},[e("thead",[e("tr",[e("th",[t._v("Page path")]),t._v(" "),e("th",[t._v(t._s(t.topPagesFilters[t.topPagesFilter]))])])]),t._v(" "),e("tbody",t._l(t.topPages,(function(n,r){return e("tr",[e("td",[t._v(t._s(r))]),t._v(" "),e("td",[t._v(t._s(n))])])})),0)]):t._e()])])]),t._v(" "),e("div",{staticClass:"g-col-7 g-col-bleed-half"},[e("div",{staticClass:"block -single -outside"},[e("div",{staticClass:"content content-padding"},[e("p",{staticClass:"font-size-20"},[t._v("\n            "+t._s(t.chartsData[t.chartsMain[0]].label)+"\n          ")]),t._v(" "),e("p",{staticClass:"font-size-42 text-blue font-weight-300 selectable",staticStyle:{"padding-top":"7px"}},[t._v("\n            "+t._s(t.chartsData[t.chartsMain[0]].total)+"\n          ")]),t._v(" "),e("div",{staticClass:"chart-canvas"},[e("canvas",{attrs:{id:"canvas-".concat(t.chartsMain[0]),width:"785",height:"200"}})])])]),t._v(" "),e("div",{staticClass:"block -single -outside"},[e("div",{staticClass:"content content-padding"},[e("p",{staticClass:"font-size-18"},[t._v("\n            "+t._s(t.chartsData[t.chartsMain[1]].label)+"\n          ")]),t._v(" "),e("div",{staticClass:"g-grid g-align-content-center g-align-center"},[e("div",{staticClass:"g-col-5"},[e("div",{staticClass:"chart-canvas",staticStyle:{padding:"1em 1em 0 1em"}},[e("canvas",{attrs:{id:"canvas-".concat(t.chartsMain[1]),width:"200",height:"200"}})])]),t._v(" "),e("div",{staticClass:"g-col-7"},[e("ul",{style:t.chartsData[t.chartsMain[1]].labels.length>4?{columns:2}:null},t._l(t.chartsData[t.chartsMain[1]].labels,(function(n,r){return e("li",{staticStyle:{padding:"0.5em 0"}},[e("div",{style:{width:"16px",height:"16px",display:"inline-block",borderRadius:"100px",marginRight:"1em",backgroundColor:t.$options.chartColors[r]||"#eee"}}),t._v("\n                  "+t._s(n)+"\n                ")])})),0)])])])])]),t._v(" "),t._l(t.chartsSmall,(function(n,r){return e("div",{staticClass:"g-col-4 g-col-bleed-half"},[e("div",{staticClass:"block -single",class:{"-outside":(r+1)%3==0}},[e("div",{staticClass:"content content-padding"},[e("p",{staticClass:"font-size-18"},[t._v("\n            "+t._s(t.chartsData[n].label)+"\n          ")]),t._v(" "),e("p",{staticClass:"font-size-34 text-blue font-weight-300",staticStyle:{"padding-top":"7px"}},[t._v("\n            "+t._s(t.chartsData[n].total)+"\n          ")]),t._v(" "),e("div",{staticClass:"chart-canvas"},[e("canvas",{attrs:{id:"canvas-"+n,width:"195",height:"50"}})])])])])})),t._v(" "),t._l(t.tables,(function(n,r){return e("div",{staticClass:"g-col-6 g-col-bleed-half"},[e("div",{staticClass:"block -single",class:{"-outside":(r+1)%2==0}},[e("div",{staticClass:"content content-padding"},[e("p",{staticClass:"font-size-20"},[t._v("\n            "+t._s(n.caption)+"\n          ")]),t._v(" "),e("table",{staticClass:"metrics selectable"},[e("thead",[e("tr",t._l(n.data.columns,(function(n){return e("th",[t._v("\n                  "+t._s(n)+"\n                ")])})),0)]),t._v(" "),e("tbody",t._l(n.data.rows,(function(n,r){return e("tr",[e("td",[t._v(t._s(r))]),t._v(" "),t._l(n,(function(n){return e("td",[t._v("\n                  "+t._s(n)+"\n                ")])}))],2)})),0)])])])])}))],2)])},i=[]},45564:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[t.isProjectShared?e("div",{staticClass:"content content-padding text-center content-padding-double"},[t._m(0)],1):e("form",{staticClass:"content content-padding",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onConnectGa4.apply(null,arguments)}}},[e("p",{staticClass:"font-montserrat font-weight-500 line-height-144"},[t._v("\n      Enter Google Analytics 4 account information\n    ")]),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"property_id","label-class":"is-flex -with-half-gap","field-error":t.formFieldError("property_id"),autocomplete:!1},model:{value:t.formData.property_id,callback:function(e){t.$set(t.formData,"property_id",e)},expression:"formData.property_id"}},[[e("span",[t._v("Property ID:")]),t._v(" "),e("link-help",{attrs:{id:"ga4"}},[e("icon-font",{attrs:{icon:"question"}})],1)]],2),t._v(" "),e("div",{staticClass:"field mt-5"},[e("label",{staticClass:"is-flex -with-half-gap"},[e("span",[t._v("Service Account:")]),t._v(" "),e("link-help",{attrs:{id:"ga4"}},[e("icon-font",{attrs:{icon:"question"}})],1)],1),t._v(" "),t.formData.credentials?e("field-radio-bar",{ref:"credentials",attrs:{name:"credentials",radios:[{label:"Custom",value:"custom"},{label:"Slickplan",value:"slickplan"}]},model:{value:t.formData.credentials,callback:function(e){t.$set(t.formData,"credentials",e)},expression:"formData.credentials"}}):t._e()],1),t._v(" "),"custom"===t.formData.credentials?e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required_if:credentials,custom",expression:"'required_if:credentials,custom'"}],staticClass:"mt-4",attrs:{name:"ga4_json",type:"textarea",placeholder:"Paste your JSON Credentials file here","field-error":t.formFieldError("ga4_json"),autocomplete:!1},model:{value:t.formData.ga4_json,callback:function(e){t.$set(t.formData,"ga4_json",e)},expression:"formData.ga4_json"}}):t._e(),t._v(" "),e("div",{staticClass:"text-right mt-5"},[e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmitGa4}},[t._v("\n        Connect\n      ")])],1)],1)])},i=[function(){return(0,this._self._c)("svg-metrics")}]},19064:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},["loading"===t.screen?e("tab-loading",{key:"loading"}):!1===t.screen?e("div",{key:"error",staticClass:"blocks"},[e("div",{staticClass:"block"},[e("div",{staticClass:"content content-padding content-padding-double text-center"},[e("p",{staticClass:"font-size-14 line-height-144 text-red selectable"},[t._v("\n          "+t._s(t.loadingError)+"\n        ")]),t._v(" "),e("div",{staticClass:"mt-5"},[e("span",{staticClass:"button -secondary -smallest",class:{"-disabled":t.disconnecting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDisconnect.apply(null,arguments)}}},[t._v("\n            Disconnect Service\n          ")])])])])]):t.screen?e("div",{key:"loaded",staticClass:"blocks -full -no-margin -bg"},[e("scrollable",{attrs:{height:t.scrollableHeight}},["metrics"===t.screen||"metrics-ga4"===t.screen?e("metrics-dashboard",{key:t.screen,attrs:{charts:t.charts,"is-ga4":"metrics-ga4"===t.screen}}):"cell"===t.screen||"cell-ga4"===t.screen?e("metrics-cell",{key:t.screen,attrs:{charts:t.charts,url:t.url,"is-ga4":"cell-ga4"===t.screen}}):t._e()],1)],1):e("div",{key:"empty",staticClass:"blocks"},[e("metrics-empty",{key:"empty2"})],1)],1)},i=[]},75776:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-wrapper"},[e("div",{staticClass:"blocks-container",staticStyle:{"min-width":"1200px"}},[t.xFilesLoaded?t.allFiles.length?e("form",{key:"files",staticClass:"blocks -with-grid",attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"g-grid g-align-center"},[e("div",{staticClass:"g-col-11"},[e("p",{staticClass:"font-weight-600 font-size-16 line-height-180"},[t._v("\n            Assign mockups\n          ")]),t._v(" "),e("p",{staticClass:"font-size-13 line-height-180"},[t._v("\n            Select the pages your mockups are assigned to\n          ")])]),t._v(" "),e("div",{staticClass:"g-col-1 text-right"},[e("icon-font",{staticClass:"clickable icon text-gray-darkest font-size-16",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.closePanel.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"g-col-12",staticStyle:{"padding-top":"0"}},[e("hr",{staticClass:"bg-gray-darker"})])]),t._v(" "),e("scrollable",{attrs:{height:t.scrollableHeight}},[e("div",{staticClass:"g-grid g-align-center file-library-grid"},t._l(t.allFiles,(function(n){return e("div",{key:n.alias,staticClass:"g-col-3 file-grid-item -mockup"},[e("div",{staticClass:"file-thumb",class:{"has-image":n.url_thumb,"has-icon":!n.url_thumb,active:t.xBarSelectedIds.includes(n.alias)}},[e("field-checkable",{attrs:{placeholder:!0,checked:t.xBarSelectedIds.includes(n.alias)},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCheckToggle(n.alias)}}},[t._v("\n                "+t._s(n.filename)+"\n                "),e("small",[t._v(t._s(t.humanFileSize(n.filesize)))])]),t._v(" "),e("div",{staticClass:"thumb-content absolute clickable",class:{"-empty":!n.url_thumb},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCheckToggle(n.alias)}}},[n.url_thumb?e("img",{attrs:{src:n.url_thumb,alt:n.filename,loading:"lazy",decoding:"async"}}):t._o(e("icon-font",{attrs:{icon:n.icon||"file-text",type:n.icon?"fa":"nc"}}),0,n.alias)],1),t._v(" "),e("div",{staticStyle:{"margin-top":"12px"}},[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"cell_id",placeholder:"Assign to page",options:t.dropdownCellsList,"option-label":t.constants.CELL_DATA_KEY_LABEL,"option-value":t.constants.CELL_DATA_KEY_ID},model:{value:t.selected[n.alias],callback:function(e){t.$set(t.selected,n.alias,e)},expression:"selected[file.alias]"}})],1)],1)])})),0)]),t._v(" "),e("div",{staticClass:"g-grid g-align-center"},[e("div",{staticClass:"g-col-12 text-right"},[e("button-submit",{staticClass:"-small",attrs:{"is-disabled":!t.canSubmit,"is-submitting":t.isSubmitting}},[t._v("\n            Save & add mockups\n          ")])],1)])],1):t._e():e("tab-loading",{key:"loading"})],1),t._v(" "),t.xBarIsVisible?e("portal",{attrs:{to:"actionBar-afterLinks"}},[e("span",{ref:"move",staticClass:"item style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openMovePagesPicker.apply(null,arguments)}}},[t._m(0),t._v("\n      Assign\n    ")],1)]):t._e()],1)},i=[function(){return(0,this._self._c)("icon-font",{staticClass:"ref",attrs:{icon:"folder-open"}})}]},21056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"_buttons"},[t.preview&&t.mockupFigmaData?e("has-tooltip",{staticClass:"cursor-pointer",attrs:{tooltip:"Open Figma file",tag:"li"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonClickFigma.apply(null,arguments)}}},[t._m(0)],1):t._e(),t._v(" "),t.canManage&&t.preview?e("has-tooltip",{staticClass:"cursor-pointer",attrs:{tooltip:"Upload new mockup",tag:"li"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonUploadClick.apply(null,arguments)}}},[t._m(1)],1):t._e(),t._v(" "),t.preview?e("has-tooltip",{staticClass:"cursor-pointer",attrs:{tooltip:"Download",tag:"li"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDownload(t.mockup)}}},[t._m(2)],1):t._e(),t._v(" "),t.preview?t._e():e("has-tooltip",{staticClass:"cursor-pointer",attrs:{tooltip:"Preview",tag:"li"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickMockup(t.mockup)}}},[t._m(3)],1),t._v(" "),e("has-tooltip",{staticClass:"cursor-pointer",attrs:{tooltip:"Share",tag:"li"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickShare.apply(null,arguments)}}},[t._m(4)],1),t._v(" "),t.canManage&&(t.preview||"grid"===t.xFilters.view)?e("has-tooltip",{staticClass:"cursor-pointer",attrs:{tooltip:"Delete",tag:"li"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonDeleteClick.apply(null,arguments)}}},[t._m(5)],1):t._e()],1)},i=[function(){return(0,this._self._c)("icon-font",{staticClass:"font-size-14 mr-1",attrs:{icon:"figma"}})},function(){return(0,this._self._c)("icon-font",{staticClass:"font-size-16 mr-1",attrs:{icon:"upload"}})},function(){return(0,this._self._c)("icon-font",{attrs:{icon:"download"}})},function(){return(0,this._self._c)("icon-font",{attrs:{icon:"eye"}})},function(){return(0,this._self._c)("icon-font",{attrs:{icon:"share"}})},function(){return(0,this._self._c)("icon-font",{attrs:{icon:"trash"}})}]},75660:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"content content-padding text-center content-padding-double"},[e("img",{staticStyle:{width:"80px"},attrs:{src:"/images/integrations/figma.svg",alt:"Figma"}}),t._v(" "),t.isProjectShared?t._e():[e("hr",{staticClass:"spacer-75"}),t._v(" "),t._m(0),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("div",{staticClass:"button -primary -small",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onConnect.apply(null,arguments)}}},[t._v("\n        Connect account\n      ")])]],2)])},i=[function(){var t=this,e=t._self._c;return e("p",{staticClass:"font-size-14 line-height-144"},[t._v("\n        Connect to your\n        "),e("br"),t._v("\n        Figma account\n      ")])}]},14318:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{staticClass:"blocks -full -no-margin",on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"g-container-full"},[e("div",{staticClass:"g-grid g-align-center g-justify-space-between g-no-wrap"},[e("div",{staticClass:"g-col-auto g-col-bleed-y"},[e("div",{staticClass:"toolbar-search -fixed-width clearfix"},[e("input",{class:{focus:t.filterSearch&&t.filterSearch.length},attrs:{id:"field-filter-search",placeholder:"Search files..."},on:{keyup:function(e){t.filterSearch=e.target.value}}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}}),t._v(" "),t.filterSearch?e("icon-font",{staticClass:"clickable clear",attrs:{icon:"close"},on:{click:function(e){t.filterSearch=""}}}):t._e()],1)]),t._v(" "),e("div",{staticClass:"g-col-auto g-col-bleed-y"},[e("div",{staticClass:"is-flex -align-end"},[t.categories.length?e("dropdown",{staticClass:"font-size-14",attrs:{label:"Page",items:t.categories,selected:t.filterCategory},on:{select:function(e){t.filterCategory=e}}}):t._e()],1)])]),t._v(" "),t._m(0)]),t._v(" "),e("scrollable",{attrs:{height:t.scrollableHeight}},[e("div",{staticClass:"mockups-grid -assign"},[e("div",{staticClass:"ui-listing -cols-4"},t._l(t.filteredAllFiles,(function(n){var r;return e("div",{key:n.figma_key,staticClass:"row-single",class:{active:n.alias&&t.xBarSelectedIds.includes(n.alias)}},[e("div",{staticClass:"_meta5"},[e("field-checkable",{class:{"cursor-not-allowed":!n.alias},attrs:{placeholder:!0,checked:n.alias&&t.xBarSelectedIds.includes(n.alias),"text-overflow":!0},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCheckToggle(n.alias)}}},[t._v("\n              "+t._s(null!==(r=n.filename)&&void 0!==r?r:n.name)+"\n            ")]),t._v(" "),n.filesize?e("p",{staticClass:"text-gray-darkest text-right font-size-14"},[t._v("\n              "+t._s(t.humanFileSize(n.filesize))+"\n            ")]):t._e()],1),t._v(" "),n.alias?e("div",{staticClass:"_thumbs clickable",style:{backgroundImage:n.alias?"url("+n.url_thumb+")":null},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCheckToggle(n.alias)}}}):e("div",{staticClass:"_thumbs"},[e("icon-font",{attrs:{icon:t.canceled?"notify-warning":"loading"}})],1),t._v(" "),e("div",{class:{_hidden:!n.alias},staticStyle:{"margin-top":"12px"}},[e("field-select",{attrs:{name:"cell_id",placeholder:"Assign to page",options:t.dropdownCellsList,"option-label":t.constants.CELL_DATA_KEY_LABEL,"option-value":t.constants.CELL_DATA_KEY_ID},model:{value:t.selected[n.alias],callback:function(e){t.$set(t.selected,n.alias,e)},expression:"selected[file.alias]"}})],1)])})),0)])]),t._v(" "),e("div",{staticClass:"g-grid g-align-center"},[e("div",{staticClass:"g-col-12 text-right"},[e("button-submit",{staticClass:"-small",attrs:{"is-disabled":!t.canSubmit,"is-submitting":t.isSubmitting}},[t._v("\n        Save & add mockups\n      ")])],1)]),t._v(" "),t.xBarIsVisible?e("portal",{attrs:{to:"actionBar-afterLinks"}},[e("span",{ref:"move",staticClass:"item style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openMovePagesPicker.apply(null,arguments)}}},[t._m(1),t._v("\n      Assign\n    ")],1)]):t._e()],1)},i=[function(){var t=this._self._c;return t("div",{staticClass:"g-grid"},[t("div",{staticClass:"g-col-12 g-col-bleed-y"},[t("hr",{staticClass:"bg-gray-darker"})])])},function(){return(0,this._self._c)("icon-font",{staticClass:"ref",attrs:{icon:"folder-open"}})}]},63940:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-wrapper"},[e("div",{staticClass:"blocks-container"},["loading"===t.screen?e("tab-loading",{key:"loading"}):!1===t.screen?e("div",{key:"error",staticClass:"blocks"},[e("div",{staticClass:"block"},[e("div",{staticClass:"content content-padding content-padding-double text-center"},[e("p",{staticClass:"font-size-14 line-height-144 text-red"},[t._v("\n            "+t._s(t.loadingError)+"\n          ")])])])]):"pages"===t.screen?e("div",{key:"pages"},[e("figma-files-selector",{attrs:{files:t.loadedPagesAndFrames},on:{close:t.closePanel}})],1):"select"===t.screen?e("div",{key:"select",staticClass:"is-flex"},[e("div",{staticClass:"position-relative",style:{height:t.scrollableHeight+"px",flex:1}},[e("div",{staticClass:"-figma",attrs:{id:"login-dialog-wrapper"}},[e("div",{staticClass:"_dialog"},[e("div",{staticClass:"heading"},[e("h1",{staticClass:"font-size-21 font-weight-500 is-flex"},[e("img",{staticClass:"mr-2",attrs:{src:"/images/integrations/figma.svg",alt:"Figma"}}),t._v("\n                Connect Figma files\n              ")]),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.isTeamSelect,expression:"isTeamSelect"}],staticClass:"text-gray-darkest mt-5"},[t._v("\n                To view and assign your designs to Slickplan pages enter the Figma Team ID\n              ")])]),t._v(" "),e("form",{staticClass:"g-container-full form-wrapper",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"form-inner-wrapper"},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12"},[t.isTeamSelect?e("field-input",{attrs:{name:"team",spellcheck:!1,autocomplete:!1,label:"Team ID"},model:{value:t.selectedTeamId,callback:function(e){t.selectedTeamId=e},expression:"selectedTeamId"}}):t._e(),t._v(" "),t.isTeamSelect?t._e():e("field-select",{attrs:{name:"project",placeholder:"Select project",label:"Project",options:t.loadedProjects,"option-label":"name","option-value":"id"},model:{value:t.selectedProject,callback:function(e){t.selectedProject=e},expression:"selectedProject"}}),t._v(" "),t.isTeamSelect?t._e():e("field-select",{attrs:{name:"file",placeholder:"Select file",label:"File",disabled:!t.loadedFiles,options:t.loadedFiles||[],"option-label":"name","option-value":"key"},model:{value:t.selectedFile,callback:function(e){t.selectedFile=e},expression:"selectedFile"}})],1)]),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-space-between"},[e("div",{staticClass:"g-col-6 g-col-bleed-bottom"},[t.isTeamSelect?t._e():e("button",{staticClass:"is-flex -plain",staticStyle:{margin:"0"},attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onBackClick.apply(null,arguments))}}},[e("icon-font",{staticClass:"mr-3",attrs:{icon:"back-arrow"}}),t._v("\n                      Back\n                    ")],1)]),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-bottom text-right"},[e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":t.isSubmitDisabled}},[t._v("\n                      "+t._s(t.isTeamSelect?"Submit Figma Team ID":"Submit Figma file")+"\n                    ")])],1)])])])]),t._v(" "),e("p",{staticClass:"text-center text-gray-darkest",staticStyle:{"padding-bottom":"2em"}},[t._v("\n            Or, "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openFilesModal.apply(null,arguments)}}},[t._v("Skip this")]),t._v(" and enter the file URLs for each page manually\n          ")])])]),t._v(" "),e("div",{staticClass:"bg-white is-flex",style:t.sideStyles},[e("div",{staticClass:"prose",staticStyle:{width:"370px",margin:"auto","padding-bottom":"1em"}},[e("h2",[t._v("Finding your Figma Team ID")]),t._v(" "),e("p",[t._v("To locate your Figma Team ID you'll need to open Figma in your browser, you can't get the Team ID from the desktop app. Once you open Figma in your browser do the following:")]),t._v(" "),e("ul",[e("li",[t._v('Click on the Figma icon in the upper left, then click on "Back to files" in the dropdown menu')]),t._v(" "),e("li",[t._v("In the left-hand navigation, click on your team name")]),t._v(" "),e("li",[t._v("Once on your team's page, you'll need to highlight and copy the Team ID from the URL in the address bar (see screenshot below)")])]),t._v(" "),e("img",{attrs:{src:"/images/import/figma-link.svg",alt:"Figma Team ID"}}),t._v(" "),e("p",[t._v('Your Team ID is the first string of numbers shown after "/team/" in the URL This number is highlighted with with blue in the above screenshot for reference. Copy & paste this Team ID into Slickplan to set up your integration.')])])])]):t.modalData?e("div",{key:"empty",staticClass:"blocks"},[e("figma-empty",{attrs:{modal:t.modalData}})],1):t._e()],1)])},i=[]},6356:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.isLoading?e("panel-loading"):t.items.length?e("scrollable",{staticClass:"user-notifications"},t._l(t.groups,(function(n){return e("div",{key:n.group,staticClass:"_group"},[t.groups.length>1?e("p",{staticClass:"font-weight-600"},[t._v("\n      "+t._s(n.group)+"\n    ")]):t._e(),t._v(" "),t._l(n.items,(function(n,r){return e("div",{key:r,staticClass:"_item"},[e("div",{staticClass:"mr-4"},[e("user-avatar",{staticClass:"avatar-xl",attrs:{user:!!n.system||(n.user?n.user.id:0),tooltip:!1,"display-empty":!0,"name-fallback":null==n?void 0:n.user}})],1),t._v(" "),e("div",{staticClass:"_body"},[e("p",{domProps:{innerHTML:t._s(n.body)},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown.apply(null,arguments)}}}),t._v(" "),e("small",[t._v(t._s(n.date))])]),t._v(" "),n.read?t._e():e("div",{staticClass:"ml-4 _unread",attrs:{title:"Unread"}})])}))],2)})),0):e("div",{staticStyle:{"padding-top":"4rem"}},[e("comments-empty",{attrs:{text:"No notifications",description:"You’re up-to-date with everything!"}})],1)},i=[]},63972:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:t.isEdit?"Edit Page Type":"Add Page Type"},on:{close:t.onClose}},[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"g-grid g-grid-bleed g-align-center"},[t.formData.icon?e("div",{staticClass:"g-col-1 g-align-self-end",staticStyle:{width:"2.5rem","padding-bottom":"0.5rem"}},[e("icon-font",{staticClass:"font-size-23",attrs:{icon:t.formData.icon,type:"fa"}})],1):t._e(),t._v(" "),e("div",{staticClass:"g-col-12",style:!!t.formData.icon&&"width: calc(100% - 2.5rem)"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:"Page Type Name",autocomplete:!1,"field-error":t.formFieldError("name")},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name","string"==typeof e?e.trim():e)},expression:"formData.name"}})],1),t._v(" "),e("div",{staticClass:"g-col-12",staticStyle:{"padding-top":"15px"}},[e("field-wysiwyg",{staticClass:"with-border",attrs:{label:"Description",name:"description",toolbar:"simplest"},model:{value:t.formData.description,callback:function(e){t.$set(t.formData,"description",e)},expression:"formData.description"}})],1),t._v(" "),e("div",{staticClass:"g-col-12",staticStyle:{"padding-top":"15px"}},[e("div",{staticClass:"toolbar-search clearfix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.iconFilter,expression:"iconFilter"}],staticClass:"font-size-13",attrs:{placeholder:"Find icons"},domProps:{value:t.iconFilter},on:{input:function(e){e.target.composing||(t.iconFilter=e.target.value)}}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}})],1),t._v(" "),e("scrollable",{staticClass:"fa-icons-listing font-size-20",attrs:{"max-height":t.maxIconsHeight}},t._l(t.filteredIcons,(function(n){return e("i",{class:["fa","fa-"+n,t.formData.icon==="fa-"+n?"text-blue":""],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onIconSelect(n)}}})})),0),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"margin-top":"2rem"}},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n            Cancel\n          ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n            Apply\n          ")])],1)],1)])])])},i=[]},32480:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[e("div",{staticClass:"blocks"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[e("div",{staticClass:"block"},[t._m(0),t._v(" "),t.filteredCustomArchetypes.length?e("div",{staticClass:"content content-padding-half"},[e("div",{staticClass:"g-grid"},t._l(t.filteredCustomArchetypes,(function(n){return e("archetypes-item",{key:n,staticClass:"g-col-grid g-col-4 g-col-bleed-half text-center",style:t.itemStyles,attrs:{"archetype-id":n,"is-selected":t.selectedArchetypeId===n},scopedSlots:t._u([{key:"buttons",fn:function(r){r.isHovering;return[e("div",{staticClass:"buttons font-size-11 text-right"},[e("buttons-list",{attrs:{buttons:t.getButtonsList(n)}})],1)]}}],null,!0)})})),1),t._v(" "),t.hasMoreThanLimit?e("div",{staticClass:"text-center",staticStyle:{padding:".5rem"}},[e("span",{staticClass:"style-link font-size-12 font-weight-600",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.limit=0)}}},[t._v("+ Show more")])]):t._e()]):e("div",{staticClass:"content content-padding-double text-center"},[t._m(1),t._v(" "),e("p",{staticClass:"font-size-14 line-height-300"},[t._v("\n            No custom page types\n          ")]),t._v(" "),e("button",{staticClass:"-primary -small",staticStyle:{"margin-top":".5em"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm.apply(null,arguments)}}},[t._v("\n            Add custom page type\n          ")])],1)]),t._v(" "),e("div",{staticClass:"block"},[t._m(2),t._v(" "),e("div",{staticClass:"content content-padding-half"},[e("div",{staticClass:"g-grid"},t._l(t.predefinedArchetypes,(function(n){return e("archetypes-item",{key:n,staticClass:"g-col-grid g-col-4 g-col-bleed-half text-center",style:t.itemStyles,attrs:{"archetype-id":n,"is-selected":t.selectedArchetypeId===n}})})),1)])])])],1)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"titlebar"},[e("icon-font",{staticClass:"clickable",attrs:{icon:"left"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.panelCloseComponents.apply(null,arguments)}}}),t._v(" "),e("span",{staticClass:"label"},[t._v("Custom page types")]),t._v(" "),e("icon-font",{staticClass:"clickable icon font-size-16",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm.apply(null,arguments)}}})],1)},function(){return(0,this._self._c)("svg-file")},function(){var t=this,e=t._self._c;return e("div",{staticClass:"titlebar"},[e("icon-font",{staticClass:"clickable",attrs:{icon:"left"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.panelCloseComponents.apply(null,arguments)}}}),t._v(" "),e("span",{staticClass:"label"},[t._v("System page types")])],1)}]},38692:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:t.isEdit?"Edit Diagram":"Add Diagram"}},[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:"Diagram Name",autocomplete:!1,"field-error":t.formFieldError("name")},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name","string"==typeof e?e.trim():e)},expression:"formData.name"}}),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"margin-top":"2rem"}},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.panelCloseComponents.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n        Apply\n      ")])],1)],1)])},i=[]},44314:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:t.isEdit?"Edit Link":"Add Link"}},[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-radio-bar",{attrs:{radios:t.linkTypes},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}}),t._v(" "),e("div",{staticStyle:{padding:"1rem 0"}},["internal"===t.formData.type?e("div",[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"page",label:"Select Page",placeholder:"Select Page",options:t.dropdownCellsList,"option-label":t.constants.CELL_DATA_KEY_LABEL,"option-value":t.constants.CELL_DATA_KEY_ID,"field-error":t.formFieldError("page")},model:{value:t.formData.page,callback:function(e){t.$set(t.formData,"page",e)},expression:"formData.page"}})],1):e("div",[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url",label:"Enter URL","field-error":t.formFieldError("url"),autocomplete:!1,placeholder:""},model:{value:t.formData.url,callback:function(e){t.$set(t.formData,"url","string"==typeof e?e.trim():e)},expression:"formData.url"}}),t._v(" "),e("field-input",{attrs:{name:"label",label:"Label Name",autocomplete:!1},model:{value:t.formData.label,callback:function(e){t.$set(t.formData,"label","string"==typeof e?e.trim():e)},expression:"formData.label"}})],1)]),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.panelCloseComponents.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n        Apply\n      ")])],1)],1)])},i=[]},86192:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:"Add Section"}},[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-checkable",{attrs:{type:"radio",name:"type",value:"new",size:"small"},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[t._v("\n      Create a new empty section\n    ")]),t._v(" "),"new"===t.formData.type?e("div",{staticClass:"indent-options"},[e("field-checkable",{attrs:{size:"small"},model:{value:t.copyStyling,callback:function(e){t.copyStyling=e},expression:"copyStyling"}},[t._v("\n        Copy styling\n      ")])],1):t._e(),t._v(" "),e("field-checkable",{attrs:{type:"radio",name:"type",value:"move",size:"small"},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[t._v("\n      Move child pages to section\n    ")]),t._v(" "),"move"===t.formData.type?e("div",{staticClass:"indent-options"},[e("field-checkable",{attrs:{size:"small"},model:{value:t.copyStyling,callback:function(e){t.copyStyling=e},expression:"copyStyling"}},[t._v("\n        Copy styling\n      ")])],1):t._e(),t._v(" "),t.sectionsListDropdown.length?e("field-checkable",{attrs:{type:"radio",name:"type",value:"link",size:"small"},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[t._v("\n      Link to existing section\n    ")]):t._e(),t._v(" "),t.sectionsListDropdown.length&&"link"===t.formData.type?e("div",{staticClass:"indent-options"},[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"section",options:t.sectionsListDropdown,placeholder:"Select Section",label:"Select Section","field-error":t.formFieldError("section")},model:{value:t.formData.source_section_id,callback:function(e){t.$set(t.formData,"source_section_id",e)},expression:"formData.source_section_id"}})],1):t._e(),t._v(" "),t.sectionsListDropdown.length?e("field-checkable",{attrs:{type:"radio",name:"type",value:"clone",size:"small"},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[t._v("\n      Clone from existing section\n    ")]):t._e(),t._v(" "),t.sectionsListDropdown.length&&"clone"===t.formData.type?e("div",{staticClass:"indent-options"},[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"section",options:t.sectionsListDropdown,placeholder:"Select Section",label:"Select Section","field-error":t.formFieldError("section")},model:{value:t.formData.source_section_id,callback:function(e){t.$set(t.formData,"source_section_id",e)},expression:"formData.source_section_id"}}),t._v(" "),e("field-checkable",{attrs:{size:"small"},model:{value:t.copyStyling,callback:function(e){t.copyStyling=e},expression:"copyStyling"}},[t._v("\n        Copy styling\n      ")]),t._v(" "),t._l(t.cloneOptions,(function(n,r){return e("field-checkable",{key:r,attrs:{value:r,size:"small"},model:{value:t.formData.keys,callback:function(e){t.$set(t.formData,"keys",e)},expression:"formData.keys"}},[t._v("\n        "+t._s(n)+"\n      ")])}))],2):t._e(),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"margin-top":"2rem"}},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.panelCloseComponents.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n        Apply\n      ")])],1)],1)])},i=[]},8776:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:"Remove Section"}},[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.move,callback:function(e){t.$set(t.formData,"move",e)},expression:"formData.move"}},[t._v("\n      Move section pages to main sitemap?\n    ")]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"margin-top":"2rem"}},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.panelCloseComponents.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n        Apply\n      ")])],1)],1)])},i=[]},80040:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:"Clone Pages",close:!1}},[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onCloneSubmit.apply(null,arguments)}}},[e("div",{staticStyle:{"padding-bottom":"1rem"}},[e("label",{staticClass:"label"},[t._v("Clone:")]),t._v(" "),t.canSelectType?e("div",[e("field-checkable",{attrs:{size:"small",type:"radio",name:"type",value:"all"},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[t._v("\n          Selected page and child pages\n        ")]),t._v(" "),e("field-checkable",{attrs:{size:"small",type:"radio",name:"type",value:"page"},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[t._v("\n          Only selected page\n        ")]),t._v(" "),e("field-checkable",{attrs:{size:"small",type:"radio",name:"type",value:"childs"},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[t._v("\n          Only child pages\n        ")])],1):e("div",[t._v("\n        Only selected page\n      ")])]),t._v(" "),e("div",{staticStyle:{"padding-bottom":"1rem"}},[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"destination_cell_id",label:"Clone To",placeholder:"Select Parent Page",options:t.dropdownCellsList,"option-label":t.constants.CELL_DATA_KEY_LABEL,"option-value":t.constants.CELL_DATA_KEY_ID,"field-error":t.formFieldError("destination_cell_id")},model:{value:t.formData.destination_cell_id,callback:function(e){t.$set(t.formData,"destination_cell_id",e)},expression:"formData.destination_cell_id"}})],1),t._v(" "),e("div",{staticStyle:{"padding-bottom":"1rem"}},[e("label",{staticClass:"label"},[t._v("Include:")]),t._v(" "),t._l(t.cloneOptions,(function(n,r){return e("field-checkable",{key:r,attrs:{size:"small",value:r},model:{value:t.formData.keys,callback:function(e){t.$set(t.formData,"keys",e)},expression:"formData.keys"}},[t._v("\n        "+t._s(n)+"\n      ")])}))],2),t._v(" "),e("div",{staticStyle:{"padding-bottom":"1rem"}},[e("label",{staticClass:"label"},[t._v("Options:")]),t._v(" "),t.destinationCellLevel!==t.constants.CELL_LEVEL_HOME?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.formData.to_section,callback:function(e){t.$set(t.formData,"to_section",e)},expression:"formData.to_section"}},[t._v("\n        Clone into a section\n      ")]):t._e(),t._v(" "),e("field-checkable",{attrs:{size:"small",value:"sections"},model:{value:t.formData.keys,callback:function(e){t.$set(t.formData,"keys",e)},expression:"formData.keys"}},[t._v("\n        Link sections\n      ")])],1),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onTabClick(0))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n        Clone\n      ")])],1)])])},i=[]},60368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:"Delete Pages",close:!1}},[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("p",{staticClass:"font-size-14 line-height-166 text-red",staticStyle:{"margin-bottom":"1em"}},[t._v("\n      Are you sure you want to permanently delete\n      "),t.hasChilds?e("span",[t._v("this page and all child pages?")]):e("span",[t._v("this page?")])]),t._v(" "),t.hasExtraData?e("p",{staticClass:"font-size-14 line-height-166",staticStyle:{"margin-bottom":"1em"}},[t.hasChilds?e("span",[t._v("Some pages have")]):e("span",[t._v("This page has")]),t._v("\n      files, diagrams, or contents, that will be deleted.\n    ")]):t._e(),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onTabClick(0))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n        Delete\n      ")])],1)])])},i=[]},59932:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[t.xCommentsLoading?e("tab-loading",{key:"loading"}):t.isGuestAndIntroductionNeeded?e("guest-form",{key:"guest"}):e("div",{key:"comments"},[t.canWriteCommentsAlt?e("div",{staticClass:"navbar white",staticStyle:{height:"auto",padding:"1rem"}},[e("comments-form",{attrs:{readonly:Boolean(t.xCommentReply||t.xCommentEdit)},on:{height:function(e){t.textareaHeight=e.height},added:t.onSaved}})],1):t._e(),t._v(" "),t.isMockupsType||t.isDiagramType?e("div",{staticClass:"navbar clearfix is-flex",staticStyle:{gap:"0.5em",padding:"0 1rem",height:"44px"}},[e("div",{staticClass:"search-wrapper is-flex",staticStyle:{"flex-grow":"1"}},[e("div",{staticClass:"button search mr-2 text-gray-darkest"},[e("icon-font",{attrs:{icon:"search"}})],1),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"search",attrs:{type:"text",placeholder:"Search"},domProps:{value:t.searchQuery},on:{input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}})]),t._v(" "),t.allComments.length!==t.xComments.length||"resolved"===t.showBy?e("dropdown",{staticClass:"font-size-12 smaller",attrs:{label:"Show",items:t.showByFilter,selected:t.showBy},on:{select:function(e){t.showBy=e}}}):t._e(),t._v(" "),e("dropdown",{staticClass:"font-size-12 smaller",attrs:{label:"Sort by",items:t.sortByFilter,selected:t.sortBy},on:{select:function(e){t.sortBy=e}}})],1):t._e(),t._v(" "),t.sortedFilteredComments&&t.sortedFilteredComments.length?e("div",{staticClass:"comments-list",style:{padding:t.isMockupsType||t.isDiagramType?null:"0 5px",marginTop:t.isMockupsType||t.isDiagramType?0:"10px"}},[e("scrollable",{ref:"scrollable",attrs:{height:t.scrollableHeight-(t.isMockupsType||t.isDiagramType?0:t.textareaHeight+32)}},[e("comments-list",{style:{padding:t.isMockupsType||t.isDiagramType?null:"0 8px"},attrs:{comments:t.sortedFilteredComments}})],1)],1):e("div",{staticClass:"comments-list text-center",staticStyle:{padding:"2rem 0"}},[e("comments-empty",{attrs:{description:t.isMockupsType||t.isDiagramType?"Click anywhere on the ".concat(t.isMockupsType?"mockup":"diagram"," to add a new comment."):null}})],1)])],1)},i=[]},17912:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[t.xFilesLoaded?t.xFiles.length?e("files-listing",{key:"listing"}):e("div",{key:"empty",staticClass:"blocks"},[t._m(0)]):e("tab-loading",{key:"loading"})],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[e("span",{staticClass:"label"},[t._v("Files")]),t._v(" "),t.isProjectStructureEditable?e("icon-font",{staticClass:"clickable icon font-size-16",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onUploadSelect.apply(null,arguments)}}}):t._e()],1),t._v(" "),e("files-empty",{attrs:{editable:t.isProjectStructureEditable}})],1)}]},41724:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content content-padding content-padding-double text-center"},[e("svg-file"),t._v(" "),e("p",{staticClass:"font-size-14 line-height-300"},[t._v("\n    No files uploaded\n  ")]),t._v(" "),t.editable?e("p",{staticClass:"text-gray-darkest font-size-14 line-height-144"},[e("span",{ref:"clickable",staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onUploadSelect.apply(null,arguments)}}},[t._v("Select manually")]),t._v("\n    or choose "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAddFromLibrary.apply(null,arguments)}}},[t._v("from library")])]):t._e()],1)},i=[]},60824:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"file-grid-item -library",on:{mouseleave:function(e){t.isHovering=!1}}},[e("div",{staticClass:"file-thumb buttons-list-handler",class:{"has-image":t.file.url_thumb,"has-icon":!t.file.url_thumb,active:t.isChecked}},[e("div",{staticClass:"buttons text-right",class:t.buttonsClass},[e("buttons-list",{attrs:{buttons:t.file.buttons||t.rowButtons(t.file)}})],1),t._v(" "),t.isProjectEditable?e("field-checkable",{attrs:{placeholder:!0,checked:t.isChecked,size:t.checkboxSize},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSelect.apply(null,arguments)}}}):t._e(),t._v(" "),e("div",{staticClass:"thumb-content absolute",class:{clickable:t.xBarSelectedIds.length||t.isProjectEditable,"-empty":!t.file.url_thumb},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSelect.apply(null,arguments)}}},[t.file.url_thumb?e("img",{attrs:{src:t.file.url_thumb,alt:t.tooltipTitle,loading:"lazy",decoding:"async"}}):t._m(0)],1)],1),t._v(" "),t._m(1),t._v(" "),t._m(2)])},i=[function(){var t=this;return(0,t._self._c)("icon-font",{attrs:{icon:t.file.icon||"file-text",type:t.file.icon?"fa":"nc"}})},function(){var t=this;return(0,t._self._c)("div",{class:t.filenameClass,staticStyle:{"padding-top":"0.5em"},attrs:{title:t.tooltipTitle}},[t._v("\n    "+t._s(t.file.filename)+"\n  ")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-flex-footer"},[e("div",{class:t.filesizeClass},[t._v("\n      "+t._s(t.humanFileSize(t.file.filesize))+"\n    ")])])}]},29084:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block-item block-option is-flex"},[e("div",{staticClass:"label cursor-pointer is-flex -flex-01a",style:t.labelWidth,attrs:{title:t.tooltipTitle},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick.apply(null,arguments)}}},[t.canBeChecked?e("field-checkable",{staticClass:"mr-2",attrs:{size:t.checkboxSize,placeholder:!0,checked:t.isChecked}}):t._e(),t._v(" "),t.file.url_thumb?e("div",{staticClass:"mr-3"},[t._m(0)]):t._e(),t._v(" "),e("div",{staticClass:"text-overflow"},[t._v("\n      "+t._s(t.fileName)+"\n    ")]),t._v(" "),e("div",{staticClass:"ml-2 text-gray-darkest"},[t._v("\n      "+t._s(t.fileSizeValue)+"\n    ")])],1),t._v(" "),t.file.url_preview?e("div",{staticClass:"col"},[e("icon-font",{staticClass:"clickable",attrs:{icon:"eye-o"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickPreview.apply(null,arguments)}}})],1):t._e(),t._v(" "),t.file.url_download?e("div",{staticClass:"col"},[e("icon-font",{staticClass:"clickable",attrs:{icon:"download"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDownload(t.file)}}})],1):t._e(),t._v(" "),t.canDelete?e("div",{staticClass:"col"},[e("icon-font",{staticClass:"clickable",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDeleteRow.apply(null,arguments)}}})],1):t._e()])},i=[function(){var t=this;return(0,t._self._c)("img",{staticClass:"thumb",attrs:{src:t.file.url_thumb,alt:t.fileName,loading:"lazy",decoding:"async"}})}]},49172:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{ref:"navbar",staticClass:"navbar clearfix"},[e("div",{staticClass:"g-grid g-grid-bleed"},[e("div",{staticClass:"g-col-9"},[e("dropdown",{staticClass:"font-size-12 smaller",attrs:{label:"Show",items:t.filtersType,selected:t.displayTypes},on:{select:function(e){return t.displayTypes=e}}}),t._v(" "),e("dropdown",{staticClass:"font-size-12 smaller",attrs:{label:"Sort by",items:t.filtersSort,selected:t.sortBy},on:{select:function(e){t.sortBy=e}}})],1),t._v(" "),e("div",{staticClass:"g-col-3 text-right"},[e("buttons-view",{attrs:{value:t.viewType},on:{update:function(e){t.viewType=e}}})],1)])]),t._v(" "),e("div",{staticClass:"blocks",style:"top: ".concat(t.scrollableOffset,"px")},[e("scrollable",{attrs:{height:t.scrollableHeight-t.scrollableOffset}},[e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[e("span",{staticClass:"label"},[t._v("\n            "+t._s("all"===t.displayTypes?"Files":t.filtersType[t.displayTypes])+"\n            "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.filteredFiles.length,expression:"filteredFiles.length"}]},[t._v("("+t._s(t.filteredFiles.length)+")")])]),t._v(" "),t.isProjectEditable?e("icon-font",{staticClass:"clickable icon font-size-16",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onUploadSelect.apply(null,arguments)}}}):t._e()],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.filteredFiles.length,expression:"filteredFiles.length"}],staticClass:"content",class:{"g-grid":"grid"===t.viewType}},t._l(t.filteredFiles,(function(n){return e(t.viewType,{key:n.id,tag:"component",class:t.columnClass,style:t.columnStyle,attrs:{file:n,"buttons-class":t.buttonsClass,checkable:!0,"checkbox-size":"tiny"}})})),1),t._v(" "),t.filteredFiles.length||"all"===t.displayTypes?t.filteredFiles.length?t._e():e("files-empty"):e("div",{staticClass:"content content-padding content-padding-double text-center"},[e("p",{staticClass:"font-size-13 line-height-300"},[t._v("\n            No "+t._s(t.displayTypes)+"s found.\n            "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.displayTypes="all")}}},[t._v("Reset filter")])])])],1)])],1)])},i=[]},79340:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[e("div",{staticClass:"blocks"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[t.isProjectEditable?e("block-label"):t._e(),t._v(" "),e("block-note",{attrs:{"allow-edit":t.canEditNote}}),t._v(" "),e("block-links",{attrs:{"allow-edit":t.canEditLinks}}),t._v(" "),t.isProjectEditable?e("block-options"):t._e(),t._v(" "),t.isProjectEditable?t._e():e("preview-archetype"),t._v(" "),t.isProjectEditable?t._e():e("preview-diagrams"),t._v(" "),t.isProjectStructureEditable&&!t.hasSection?e("block-colors"):t._e()],1)],1)])},i=[]},81352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block",class:{active:t.panelHighlightActive},on:{mouseenter:t.panelHighlightUpdate}},[e("div",{staticClass:"titlebar"},[t._v("\n    Page Style\n  ")]),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"block-item block-styles"},[e("div",{staticClass:"clearfix"},[e("color-chip",{attrs:{type:t.constants.CELL_DATA_KEY_BG_COLOR,"required-feature":t.constants.FEATURE_CELL_BG_COLOR}}),t._v(" "),e("color-chip",{attrs:{type:t.constants.CELL_DATA_KEY_TEXT_COLOR,"required-feature":t.constants.FEATURE_CELL_TEXT_COLOR}})],1)])])])},i=[]},2448:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.canEdit||t.pageType?e("div",[e("div",{staticClass:"block-item block-option is-flex"},[e("div",{staticClass:"col"},[t.pageType?e("icon-archetype",{attrs:{"archetype-id":t.pageType.id}}):e("icon-font",{attrs:{icon:"page"}})],1),t._v(" "),e("span",{staticClass:"label",style:{width:"calc(100% - "+(t.pageType?3:2)+" * 28px)"}},[t._v("\n      "+t._s(t.pageType?"Page type:":"Assign page type")+"\n      "),t.pageTypeName?e("span",{staticClass:"text-blue ml-2"},[t._v("\n        "+t._s(t.pageTypeName)+"\n      ")]):t._e()]),t._v(" "),t.pageType&&t.canEdit?e("div",{staticClass:"col"},[e("icon-font",{key:"edit",staticClass:"clickable",attrs:{icon:"edit"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAdd.apply(null,arguments)}}})],1):t._e(),t._v(" "),t.canEdit?e("div",{staticClass:"col"},[t.pageType?e("icon-loading",{attrs:{status:t.isUnassigning}},[e("icon-font",{key:"delete",staticClass:"clickable",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onUnassign.apply(null,arguments)}}})],1):e("icon-font",{key:"add",staticClass:"font-size-16 clickable",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAdd.apply(null,arguments)}}})],1):t._e()]),t._v(" "),t.pageTypeDescription?e("div",{staticClass:"block-item block-option block-merge"},[e("span",{staticClass:"label"},[e("p",{staticClass:"item-description style-content",domProps:{innerHTML:t._s(t.pageTypeDescription)}})])]):t._e()]):t._e()},i=[]},51040:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){this._self._c;return this._m(0)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"block-item block-option is-flex"},[e("div",{staticClass:"col"},[e("image-tag",{attrs:{src:"/images/content.png"}})],1),t._v(" "),e("div",{staticClass:"label"},[t._v("\n    Add content\n  ")]),t._v(" "),e("div",{staticClass:"col"},[e("icon-font",{staticClass:"font-size-16 clickable",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAdd.apply(null,arguments)}}})],1)])}]},1067:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.cellDiagrams.length>0||t.canModify?e("div",[e("div",{staticClass:"block-item block-option is-flex"},[e("div",{staticClass:"col"},[e("image-tag",{attrs:{src:"/images/diagram.png"}})],1),t._v(" "),e("div",{staticClass:"label"},[t._v("\n      "+t._s(t.canModify?"Add diagram":"Diagrams")+"\n    ")]),t._v(" "),t.canModify?e("div",{staticClass:"col"},[e("icon-font",{staticClass:"font-size-16 clickable",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm.apply(null,arguments)}}})],1):t._e()]),t._v(" "),t.cellDiagrams.length?e("div",{staticClass:"block-indent"},t._l(t.cellDiagrams,(function(n){return e("div",{key:n.id,staticClass:"block-item block-option is-flex"},[e("div",{staticClass:"label",attrs:{title:n.name}},[e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDiagramOpen(n.id)}}},[t._v("\n          "+t._s(n.name)+"\n          "),e("icon-font",{staticClass:"ml-2",attrs:{icon:"link-external"}})],1)]),t._v(" "),t.canModify?e("div",{staticClass:"col"},[e("icon-font",{staticClass:"clickable",attrs:{icon:"edit"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm(n.id)}}})],1):t._e(),t._v(" "),t.canModify?e("div",{staticClass:"col"},[e("icon-font",{staticClass:"clickable",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onRemove(n)}}})],1):t._e()])})),0):t._e()]):t._e()},i=[]},27640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.canUpload||t.hasDesignMockups?e("div",[e("div",{staticClass:"block-item block-option is-flex"},[t._m(0),t._v(" "),e("div",{staticClass:"label"},[t._v("\n      "+t._s(t.canUpload?"Add design mockup":"Design mockups")+"\n      "),t.hasDesignMockups?e("icon-font",{staticClass:"clickable style-link ml-2",attrs:{icon:t.isExpanded?"triangle-up-sm":"triangle-down-sm"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.isExpanded=!t.isExpanded)}}}):t._e()],1),t._v(" "),t.canUpload?e("div",{staticClass:"col"},[e("icon-font",{staticClass:"font-size-16 clickable",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAdd.apply(null,arguments)}}})],1):t._e()]),t._v(" "),!t.isExpanded||!t.xFiles.length&&t.xFilesLoaded?t._e():e("div",{staticClass:"block-indent"},[t.xFiles.length?t._l(t.xFiles,(function(t){return e("listing-list",{key:t.alias,attrs:{file:t,"file-size":!1,"is-mockup":!0}})})):e("div",{staticClass:"text-center",staticStyle:{padding:"16px 0"}},[t._m(1)],1)],2)]):t._e()},i=[function(){var t=this._self._c;return t("div",{staticClass:"col"},[t("image-tag",{attrs:{src:"/images/mockups.png"}})],1)},function(){return(0,this._self._c)("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"loading"}})}]},90464:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block-item block-option is-flex"},[t._m(0),t._v(" "),e("div",{staticClass:"label"},[t._v("\n    "+t._s(t.sectionId?"Page section":"Add section")+"\n    "),t.sectionName?e("span",{staticClass:"style-link ml-2",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick.apply(null,arguments)}}},[t._v("\n      "+t._s(t.sectionName)+"\n      "),e("icon-font",{staticClass:"ml-2",attrs:{icon:t.isLinked?"link":"link-external"}})],1):t._e()]),t._v(" "),e("div",{staticClass:"col"},[t.sectionId?e("icon-loading",{attrs:{status:t.isRemoving}},[e("icon-font",{staticClass:"clickable",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onRemove.apply(null,arguments)}}})],1):e("icon-font",{staticClass:"font-size-16 clickable",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAdd.apply(null,arguments)}}})],1)])},i=[function(){var t=this._self._c;return t("div",{staticClass:"col"},[t("icon-font",{attrs:{icon:"folder-add"}})],1)}]},20696:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"block-item block-option is-flex"},[t._m(0),t._v(" "),e("div",{staticClass:"label"},[t._v("\n      Add page status / label\n    ")]),t._v(" "),t._m(1)]),t._v(" "),t.filteredStatuses.length?e("form",{staticClass:"block-indent",staticStyle:{"padding-bottom":"12px"}},[t._l(t.filteredStatuses,(function(n){return e("div",{key:n.alias,staticClass:"block-item block-option is-flex"},[e("field-checkable",{staticClass:"col",attrs:{type:"radio",name:"status",value:n.alias,size:"smallest"},model:{value:t.selectedStatus,callback:function(e){t.selectedStatus=e},expression:"selectedStatus"}}),t._v(" "),e("div",{staticClass:"label cursor-pointer",class:{"text-gray-darkest":n.alias!==t.selectedStatus},staticStyle:{width:"calc(100% - 3 * 28px)"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.selectedStatus=n.alias)}}},[t._v("\n        "+t._s(n.name)+"\n        "),t.isAssigning===n.alias?e("icon-loading",{staticClass:"ml-2",attrs:{status:!0}}):t._e()],1),t._v(" "),e("div",{staticClass:"col"},[e("span",{staticClass:"workflow-status -bigger",style:{backgroundColor:n.color||"white"}})]),t._v(" "),e("div",{staticClass:"col"},[e("icon-font",{staticClass:"icon clickable icon-action",attrs:{icon:"edit"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm(n)}}})],1)],1)})),t._v(" "),t.isMoreThanLimit?e("div",{staticClass:"block-item block-option is-flex"},[e("div",{staticClass:"label",staticStyle:{width:"100%"}},[e("span",{staticClass:"font-size-12 style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.limit=99999)}}},[t._v("+ show more")])])]):t._e()],2):t._e()])},i=[function(){var t=this._self._c;return t("div",{staticClass:"col"},[t("icon-font",{attrs:{icon:"tags"}})],1)},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col"},[e("icon-font",{staticClass:"font-size-16 clickable",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm.apply(null,arguments)}}})],1)}]},92690:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block transparent field textarea"},[e("field-textarea",{attrs:{autosize:!0,readonly:!t.isProjectStructureEditable},on:{input:t.onChange},nativeOn:{blur:function(e){return t.onSubmit.apply(null,arguments)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.target.blur())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.target.blur())}]},model:{value:t.labelText,callback:function(e){t.labelText=e},expression:"labelText"}})],1)},i=[]},22936:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block",class:{active:t.panelHighlightActive},on:{mouseenter:t.panelHighlightUpdate}},[e("div",{staticClass:"titlebar"},[e("span",{staticClass:"label"},[t._v("Links")]),t._v(" "),t.allowEdit?e("icon-font",{staticClass:"icon font-size-16 clickable",attrs:{icon:"add"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm.apply(null,arguments)}}}):t._e()],1),t._v(" "),t.links.length?e("div",{key:"links",staticClass:"content"},t._l(t.links,(function(n,r){return e("div",{key:n.id,staticClass:"block-item is-flex g-justify-space-between"},[e("icon-font",{staticClass:"icon first",attrs:{icon:"external"===n.type?"chain":"link"}}),t._v(" "),e("span",{staticClass:"label",style:t.styleAttr,attrs:{title:n.url||!1}},["external"===n.type?e("a",{staticClass:"style-link-invert",attrs:{href:n.url,target:"_blank",rel:"noreferrer noopener"}},[t._v("\n          "+t._s(n.label)+"\n        ")]):e("span",{staticClass:"style-link-invert",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[t._v("\n          "+t._s(n.label)+"\n        ")])]),t._v(" "),t.allowEdit?e("icon-font",{staticClass:"icon clickable",attrs:{icon:"edit"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm(n,r)}}}):t._e(),t._v(" "),t.allowEdit?e("icon-loading",{staticClass:"icon",attrs:{status:t.isDeleting===r}},[e("icon-font",{staticClass:"clickable",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDelete(n,r)}}})],1):t._e()],1)})),0):e("div",{key:"empty",staticClass:"content"},[e("p",{staticClass:"text-center text-gray-darkest",staticStyle:{padding:"2.5em 0"}},[t._m(0),t._v(" "),e("span",{staticStyle:{display:"inline-block",padding:"0.2em 0 0 0.5em"}},[t._v("No links added yet")])],1)])])},i=[function(){return(0,this._self._c)("icon-font",{attrs:{icon:"link"}})}]},77652:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block block-wysiwyg",class:{active:t.panelHighlightActive},on:{mouseenter:t.panelHighlightUpdate}},[e("div",{staticClass:"titlebar"},[t._v("\n    Notes\n  ")]),t._v(" "),t.allowEdit?e("div",{key:t.xCurrentCellAlias,staticClass:"content"},[e("field-wysiwyg",{attrs:{name:"notes",value:t.initialValue,placeholder:"Page description, side notes",height:134,"max-height":300},on:{change:t.onContentChange,blur:t.onContentBlur}})],1):e("div",{staticClass:"content"},[t.initialValue?e("div",{staticClass:"line-height-144 style-content selectable",staticStyle:{padding:"1em"},domProps:{innerHTML:t._s(t.initialValue)}}):e("p",{staticClass:"text-center text-gray-darkest",staticStyle:{padding:"2.5em 0"}},[t._v("\n      No notes added\n    ")])])])},i=[]},62807:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block",class:{active:t.panelHighlightActive},on:{mouseenter:t.panelHighlightUpdate}},[e("div",{staticClass:"titlebar"},[t._v("\n    Page Options\n  ")]),t._v(" "),e("div",{staticClass:"content"},[e("item-archetype"),t._v(" "),t.isProjectStructureEditable?e("item-section"):t._e(),t._v(" "),e("item-diagrams"),t._v(" "),t.canModifyContent?e("item-content"):t._e(),t._v(" "),e("item-mockups"),t._v(" "),t.canModifyContent?e("item-workflow"):t._e()],1)])},i=[]},22944:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.pageType?e("div",{staticClass:"block",class:{active:t.panelHighlightActive},on:{mouseenter:t.panelHighlightUpdate}},[e("div",{staticClass:"titlebar"},[t._v("\n    Page Options\n  ")]),t._v(" "),t._m(0)]):t._e()},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"content"},[e("div",{staticClass:"block-item"},[e("icon-archetype",{staticClass:"icon first",attrs:{"archetype-id":t.pageType.id}}),t._v(" "),e("span",{staticClass:"label row-icons-1"},[e("p",{staticClass:"line-height-122"},[t._v(t._s(t.pageTypeName))]),t._v(" "),t.pageTypeDescription?e("p",{staticClass:"item-description style-content",domProps:{innerHTML:t._s(t.pageTypeDescription)}}):t._e()])],1)])}]},58164:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.cellDiagrams.length?e("div",{staticClass:"block",class:{active:t.panelHighlightActive},on:{mouseenter:t.panelHighlightUpdate}},[e("div",{staticClass:"titlebar"},[t._v("\n    User Flow Diagrams\n  ")]),t._v(" "),e("div",{key:"diagrams",staticClass:"content"},t._l(t.cellDiagrams,(function(n){return e("div",{key:n.id,staticClass:"block-item block-link"},[e("span",{staticClass:"label",attrs:{title:n.name}},[e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDiagramOpen(n.id)}}},[t._v("\n          "+t._s(n.name)+"\n          "),e("icon-font",{staticClass:"ml-2",attrs:{icon:"link-external"}})],1)])])})),0)]):t._e()},i=[]},1036:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){return(0,this._self._c)("metrics",{attrs:{cell:!0}})},i=[]},46235:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:t.isEdit?"Edit Page Status":"Add Page Status"}},[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:"Status Name",autocomplete:!1,"field-error":t.formFieldError("name")},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}}),t._v(" "),e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.readonly,callback:function(e){t.$set(t.formData,"readonly",e)},expression:"formData.readonly"}},[t._v("\n      Read-only\n    ")]),t._v(" "),e("div",{staticClass:"text-center",staticStyle:{margin:"2em auto"}},[e("field-colorpicker",{model:{value:t.formData.color,callback:function(e){t.$set(t.formData,"color",e)},expression:"formData.color"}})],1),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"color",label:"Status Color",autocomplete:!1,"field-error":t.formFieldError("color"),maxlength:"7"},scopedSlots:t._u([{key:"labelAfter",fn:function(){return[e("span",{staticClass:"workflow-status",style:{backgroundColor:t.validHexColor,marginLeft:"0.2em"}})]},proxy:!0}]),model:{value:t.formData.color,callback:function(e){t.$set(t.formData,"color",e)},expression:"formData.color"}}),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"margin-top":"2rem"}},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.panelCloseComponents.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n        Apply\n      ")])],1)],1)])},i=[]},28736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[e("div",{staticClass:"blocks"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[t._m(0)])],1)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"content content-padding-x shortcuts"},t._l(t.shortcuts,(function(n,r){return e("div",{key:r,staticClass:"row is-flex g-justify-space-between"},[e("div",{staticClass:"line-height-144",staticStyle:{flex:"0 1 auto"}},[t._v("\n              "+t._s(n.label)+"\n            ")]),t._v(" "),e("div",{staticClass:"ml-2"},t._l(n.keys.slice().reverse(),(function(n){return e("span",{staticClass:"key"},[0===n.indexOf("nc-")?e("icon-font",{attrs:{icon:n.replace("nc-","")}}):e("span",[t._v(t._s(n))])],1)})),0)])})),0)])}]},55228:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"style-swatch"},[e("div",{class:t.classes,style:{background:t.color},attrs:{title:t.color},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onTryClick.apply(null,arguments)}}}),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.label))])])},i=[]},91712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[t._v("\n    Global Colors\n  ")]),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"block-item block-styles"},[e("div",{staticClass:"clearfix"},t._l(t.chips,(function(t){return e("color-chip",{key:t,attrs:{type:t}})})),1)])]),t._v(" "),e("div",{staticClass:"titlebar -plain",staticStyle:{"padding-top":"10px"}},[e("span",{staticClass:"label"},[t._v("Customize sitemap level")]),t._v(" "),t.customPalette.length?e("div",{staticClass:"cursor-pointer is-flex",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onUpdate()}}},[e("icon-font",{attrs:{icon:"restore"}}),t._v(" "),e("span",{staticClass:"font-size-12 ml-2"},[t._v("Reset")])],1):t._e()]),t._v(" "),e("div",{staticClass:"content",class:{"-disabled":!t.isPalette}},[e("div",{staticClass:"block-item block-customize clearfix",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSwatchClick.apply(null,arguments)}}},[e("swatches",{attrs:{swatches:t.customPalette},on:{update:t.onUpdate}})],1)])])},i=[]},66048:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-container"},[null===t.themesLoaded?e("tab-loading",{key:"loading"}):!1===t.themesLoaded?e("div",{key:"error"},[e("notification-item",{attrs:{item:t.loadingError},on:{close:t.loadThemes}})],1):e("div",{key:"list",staticClass:"blocks"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[e("block-default-colors"),t._v(" "),e("block-themes")],1)],1)],1)},i=[]},46976:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e(t.label?"has-tooltip":"div",{tag:"component",staticClass:"swatch",style:t.styles,attrs:{tooltip:t.label}},[t.archetype?e("span",{staticClass:"icon"},[e("icon-archetype",{staticClass:"icon first",attrs:{"archetype-id":t.archetype.id}})],1):e("span",{staticClass:"icon"},[t._v(t._s(t.icon))])])},i=[]},18768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",t._l(t.loadedSwatches,(function(n,r){return e("swatch",{key:n.id||n.level,staticClass:"cursor-pointer",attrs:{swatch:n,"default-background":t.defaults.background,"default-text":t.defaults.text},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(e,r)}}})})),1)},i=[]},67964:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("block-wrapper",{attrs:{title:t.isEdit?"Edit a custom theme":"Create a custom theme"},on:{close:t.onClose}},[e("form",{staticStyle:{padding:"0"},attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticStyle:{padding:"1rem"},attrs:{name:"name",label:"Theme Name",autocomplete:!1,"field-error":t.formFieldError("name")},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name","string"==typeof e?e.trim():e)},expression:"formData.name"}}),t._v(" "),e("div",{staticClass:"block-item block-styles",staticStyle:{border:"0"}},[e("div",{staticClass:"clearfix"},t._l(t.swatches,(function(n){return e("div",{staticClass:"style-swatch"},[e("div",{staticClass:"color-preview cursor-pointer",style:{background:n.color},attrs:{title:n.color},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}}),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(n.label))])])})),0)]),t._v(" "),e("div",{staticClass:"block-item block-customize clearfix",staticStyle:{border:"0"}},[e("swatches",{attrs:{swatches:t.swatchesColors,"default-swatch":t.defaultSwatch},on:{update:t.onSwatchesUpdate}})],1),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{margin:"1rem"}},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n        Save\n      ")])],1)],1)])},i=[]},61248:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"theme",class:{active:t.isSelected}},[t.isSystemTheme?t._e():e("div",{staticClass:"buttons"},[e("icon-loading",{staticClass:"icon",attrs:{status:t.isRemoving}},[e("icon-font",{key:"delete",staticClass:"clickable",attrs:{icon:"trash"},on:{click:t.onRemove}})],1),t._v(" "),e("icon-font",{staticClass:"clickable icon",attrs:{icon:"edit"},on:{click:function(e){return t.$parent.onForm(t.theme.id)}}})],1),t._v(" "),e("div",{staticClass:"meta clearfix cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSelect.apply(null,arguments)}}},[e("field-checkable",{attrs:{placeholder:!0,checked:t.isSelected,size:"tiny"}},[t._v("\n      "+t._s(t.theme.name||"Unnamed theme")+"\n    ")])],1),t._v(" "),e("div",{staticClass:"swatches clearfix cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSelect.apply(null,arguments)}}},t._l(t.theme.colors,(function(n){return e("swatch",{key:n.level,attrs:{swatch:n,"default-background":t.defaultSwatch.background,"default-text":t.defaultSwatch.text}})})),1)])},i=[]},94712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"titlebar"},[e("span",{staticClass:"label"},[t._v("Color Themes")]),t._v(" "),e("icon-font",{staticClass:"clickable icon font-size-16",attrs:{icon:"add"},on:{click:t.onForm}})],1),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"block-item block-theme"},t._l(t.xGetColorThemes,(function(t){return e("theme-item",{key:t.id,attrs:{theme:t}})})),1)])])},i=[]},20774:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"popover-archetypes"},[t.types?e("field-radio-bar",{attrs:{radios:t.types},model:{value:t.currentType,callback:function(e){t.currentType=e},expression:"currentType"}}):t._e(),t._v(" "),e("div",{staticStyle:{margin:"0.6rem -7.5px 0"}},[e("scrollable",{attrs:{height:345}},[e("div",{staticClass:"g-grid"},t._l(t.currentArchetypesListing,(function(n){return e("archetypes-item",{key:n,staticClass:"g-col-grid g-col-3 g-col-bleed-half text-center",attrs:{"archetype-id":n,"is-selected":t.currentlySelected===n},on:{select:function(e){return t.onSelect(n)}}})})),1)])],1)],1)},i=[]},45984:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"popover-colorpicker"},[t.title?e("div",{staticClass:"title font-size-14 font-weight-600 mb-4"},[t._v("\n    "+t._s(t.title)+"\n  ")]):t._e(),t._v(" "),t.levels?e("field-select",{staticClass:"mb-4",attrs:{name:"level",label:"Page Level",options:t.levelsDropdown},model:{value:t.selectedLevel,callback:function(e){t.selectedLevel=e},expression:"selectedLevel"}}):t._e(),t._v(" "),t.colors.length>1?e("field-radio-bar",{staticClass:"mb-4",attrs:{radios:t.colorTypes},model:{value:t.colorIndex,callback:function(e){t.colorIndex=e},expression:"colorIndex"}}):t._e(),t._v(" "),t.close?e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("cancel")}}}):t._e(),t._v(" "),t.canDelete?e("icon-font",{staticClass:"clickable close",staticStyle:{right:"2.5rem"},attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("delete")}}}):t._e(),t._v(" "),e("div",{staticClass:"content",class:{"-with-tiles":t.tiles&&t.currentTiles&&t.savedTiles[t.currentTiles].length}},[e("field-colorpicker",{attrs:{field:!0,resettable:!!t.resettable&&t.defaultColor,opacity:t.opacity},model:{value:t.currentValueForPicker,callback:function(e){t.currentValueForPicker=e},expression:"currentValueForPicker"}}),t._v(" "),t.tiles&&t.tilesDropdown.length>1?e("dropdown",{staticClass:"font-size-13 mt-5",attrs:{items:t.tilesDropdown,selected:t.currentTiles,"selected-class":"","auto-open":!1},on:{select:function(e){t.currentTiles=e}}}):t.tiles&&t.tilesDropdown.length?e("p",{staticClass:"font-size-13 mt-5 text-gray-darkest"},[t._v("\n      "+t._s(t.tilesDropdown[0].value)+"\n    ")]):t._e(),t._v(" "),t.tiles&&t.currentTiles&&t.savedTiles[t.currentTiles].length?e(t.savedTiles[t.currentTiles].length>21?"scrollable":"div",{tag:"component",attrs:{"max-height":71}},[e("div",{staticClass:"tiles"},t._l(t.savedTiles[t.currentTiles],(function(n){return e("div",{style:{backgroundColor:n},attrs:{title:n},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.currentValueForPicker=n)}}})})),0)]):t._e()],1)],1)},i=[]},84204:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("table",{staticClass:"table-condensed"},[e("thead",[e("tr",[e("th",{staticClass:"prev available",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.prevMonth.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"left"}})],1),t._v(" "),e("th",{staticClass:"month",attrs:{colspan:"5"}},[t._v("\n        "+t._s(t.currentMonthDate.format("MMM YYYY"))+"\n      ")]),t._v(" "),e("th",{staticClass:"next available",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.nextMonth.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"right"}})],1)])]),t._v(" "),e("tbody",[e("tr",t._l(t.daysOfWeek,(function(n){return e("th",{key:n},[t._v("\n        "+t._s(n)+"\n      ")])})),0),t._v(" "),t._l(t.calendar,(function(n,r){return e("tr",{key:r},t._l(n,(function(n,r){return e("td",{key:r,class:t.$parent.dayClass(t.currentMonthDate,n),on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("click",n)},mouseover:function(e){return t.$emit("hover",n)}}},[t._v("\n        "+t._s(n.date())+"\n      ")])})),0)}))],2)])},i=[]},9672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ranges"},[e("ul",t._l(t.ranges,(function(n,r){return e("li",{key:r,class:t.rangeClass(n),on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[t._v("\n      "+t._s(n.label)+"\n    ")])})),0)])},i=[]},58240:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"daterangepicker"},[e("div",{staticClass:"calendars clearfix"},[t.hasRanges?e("calendar-ranges",{attrs:{ranges:t.ranges,"current-range":t.currentRange},on:{click:t.onRangeClick}}):t._e(),t._v(" "),t._l(t.calendarsOffsets,(function(n){return e("div",{key:n,staticClass:"drp-calendar"},[e("div",{staticClass:"calendar-table"},[e("calendar",{attrs:{"month-date":t.monthDate,start:t.start,end:t.end,offset:n},on:{update:t.dateUpdate,click:t.dateClick,hover:t.hoverDate}})],1)])}))],2),t._v(" "),t.autoApply?t._e():e("div",{staticClass:"drp-buttons"},[t.showRangeText?e("span",{staticClass:"drp-selected text-gray-darkest"},[t._v(t._s(t.rangeText))]):t._e(),t._v(" "),e("button",{staticClass:"-plain -smaller -highlight",attrs:{type:"button"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.clickAway.apply(null,arguments)}}},[t._v("\n      "+t._s(t.cancelButtonLabel)+"\n    ")]),t._v(" "),e("button",{staticClass:"-primary -smaller",attrs:{disabled:t.inSelection,type:"button"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.clickedApply.apply(null,arguments)}}},[t._v("\n      Apply\n    ")])])])},i=[]},68656:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ol",{staticClass:"listing blocks no-wrap"},t._l(t.lines,(function(n,r){return e("li",{key:r,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("submit",r)}}},[e("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"60",height:"20","pointer-events":"none"}},t._l(n,(function(n){return e("line",t._b({},"line",n,!1))})),0)])})),0)},i=[]},36636:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-radio-bar",{attrs:{radios:t.linkTypes},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}}),t._v(" "),e("div",{staticStyle:{padding:"1rem 0 0",height:"165px"}},["internal"===t.formData.type?e("div",[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"page",label:"Select Page",placeholder:"Select Page",options:t.dropdownCellsList,"option-label":t.constants.CELL_DATA_KEY_LABEL,"option-value":t.constants.CELL_DATA_KEY_ID,"field-error":t.formFieldError("page")},model:{value:t.formData.page,callback:function(e){t.$set(t.formData,"page",e)},expression:"formData.page"}})],1):e("div",[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url","field-class":"compact",label:"Enter URL","field-error":t.formFieldError("url"),autocomplete:!1,placeholder:""},model:{value:t.formData.url,callback:function(e){t.$set(t.formData,"url","string"==typeof e?e.trim():e)},expression:"formData.url"}}),t._v(" "),e("field-input",{attrs:{name:"label","field-class":"compact",label:"Label Name",autocomplete:!1},model:{value:t.formData.label,callback:function(e){t.$set(t.formData,"label","string"==typeof e?e.trim():e)},expression:"formData.label"}})],1)]),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain -smaller -highlight -first",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("clear"))}}},[t._v("\n      Clear Links\n    ")]),t._v(" "),e("button-submit",{staticClass:"-smaller",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      Apply\n    ")])],1)],1)},i=[]},38760:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ol",{staticClass:"listing pops no-wrap font-size-13"},[t.isEmpty?e("li",{staticClass:"non-clickable"},[t._v("\n    "+t._s(t.emptyMessage)+"\n  ")]):t._l(t.items,(function(n){return e("li",{key:n.value,staticClass:"style-link-invert",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[e("div",{staticClass:"is-flex g-align-items-center non-clickable"},[t.multiple?e("field-checkable",{attrs:{size:"tiny",placeholder:!0,checked:t.isSelected(n)}}):t._e(),t._v(" "),n.icon?e("div",{staticClass:"side-icon"},[e("icon-font",{attrs:{icon:n.icon}})],1):t._e(),t._v(" "),e("div",[t._v(t._s(n.label))])],1)])}))],2)},i=[]},52540:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"134px"}},[e("field-wysiwyg",{attrs:{name:"notes",value:t.initialValue,placeholder:"Page description, side notes"},on:{input:function(e){return t.$emit("change",e)}}})],1)},i=[]},89376:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e(t.hasScrollbar?"scrollable":"div",{ref:"scrollable",tag:"component",attrs:{height:t.scrollableHeight}},[e("ol",{staticClass:"listing no-wrap"},t._l(t.xContentStatuses,(function(n){return e("li",{key:n.alias,staticClass:"style-link-invert",attrs:{title:n.name},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[e("i",{staticClass:"icon font-size-12"},[e("span",{staticClass:"workflow-status",style:t.statusClasses(n)})]),t._v(" "),e("span",{staticClass:"font-size-13"},[t._v(t._s(n.name))])])})),0)])},i=[]},62756:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("scrollable",{attrs:{"max-height":t.xWindowHeight-150}},[e("ol",{staticClass:"listing pops no-wrap font-size-13"},t._l(t.contributors,(function(n){return e("li",{key:n.id,staticClass:"style-link-invert",on:{click:function(e){return t.onClick(n.id)}}},[e("div",{staticClass:"is-flex g-align-items-center non-clickable"},[t.multiple?e("field-checkable",{attrs:{size:"tiny",placeholder:!0,checked:t.isChecked(n.id)}}):t._e(),t._v(" "),e("user-avatar",{staticClass:"avatar-xs float-none",attrs:{user:n,tooltip:!1,"display-empty":!0}}),t._v(" "),e("div",[t._v(t._s(n.name))])],1)])})),0)]),t._v(" "),t.multiple?e("div",{staticClass:"text-right",staticStyle:{"margin-top":"15px"}},[e("span",{staticClass:"button -plain -smaller",on:{click:function(e){return t.$emit("clear")}}},[t._v(t._s(t.cancelLabel))]),t._v(" "),e("span",{staticClass:"button -primary -smaller",class:{"-disabled":!t.checked.length},on:{click:t.onSubmit}},[t._v(t._s(t.submitLabel))])]):t._e()],1)},i=[]},93188:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ol",{staticClass:"listing pops no-wrap font-size-13"},t._l(t.statuses,(function(n){return e("li",{key:n.alias,staticClass:"style-link-invert",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("submit",n.alias)}}},[e("i",{staticClass:"icon"},[e("span",{staticClass:"workflow-status -with-margin",style:{backgroundColor:n.color}})]),t._v("\n    "+t._s(n.name)+"\n  ")])})),0)},i=[]},65864:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-grid g-grid-bleed-y"},[e("div",{staticClass:"g-col-12"},[!t.canSelectUsers||"sitemap"!==t.showPermissions&&"diagram"!==t.showPermissions?t._e():e("p",{staticStyle:{"padding-top":"15px"}},[t._v("\n      Choose who can access this project\n    ")]),t._v(" "),t.canSelectUsers?e("div",{staticClass:"toolbar-search-wrapper position-relative",style:{marginTop:t.showPermissions?"16px":0}},[e("div",{staticClass:"toolbar-search clearfix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"font-size-16 font-weight-600",attrs:{placeholder:"Add a team member"},domProps:{value:t.searchQuery},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.onSearchEsc.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onSearchEnter.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onSearchUp.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onSearchDown.apply(null,arguments))}],keyup:function(e){return t.contributorSearch(e.target.value)},focus:function(e){return t.contributorSearch(e.target.value)},input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}})],1),t._v(" "),e("hr",{staticClass:"bg-gray-darker"}),t._v(" "),e("transition",{attrs:{name:"transition-dropdown"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:null!==t.contributorsSearchQuery,expression:"contributorsSearchQuery !== null"}],staticClass:"toolbar-dropdown",style:{padding:0}},[t.foundContributors.length?e("scrollable",{ref:"dropdown",attrs:{"min-height":60,"max-height":t.maxHeight-175}},t._l(t.foundContributors,(function(n){return e("div",{key:n,staticClass:"item",class:{"-selected":n===t.temporarilySelected},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.contributorSelected(n)}}},[e("user-avatar",{staticClass:"avatar-xl non-clickable",attrs:{user:n,tooltip:!1}}),t._v(" "),e("span",{staticClass:"label non-clickable"},[t._v("\n                "+t._s(t.xGetTeamMemberData(n,"name"))+"\n                "),t.alwaysCanSelect?e("small",[t._v(t._s(t.xGetTeamMemberData(n,"email")))]):t._e()])],1)})),0):e("div",[e("span",{staticClass:"label none"},[t._v(t._s(t.$trans("messages.no_users_found")))])]),t._v(" "),t.canAddNewMember?e("div",{staticClass:"item -add is-flex -with-half-gap font-size-14",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.newContributor.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"plus"}}),t._v(" "),e("span",[t._v("Create new user")])],1):t._e()],1)])],1):t._e(),t._v(" "),t.showPermissions?e("div",{staticClass:"is-flex -with-gap g-justify-space-between",staticStyle:{"margin-top":"24px"}},[e("span",[t._v("All team members ("+t._s(t.sortedContributors.length)+")")]),t._v(" "),e("link-help",{staticClass:"is-flex -with-half-gap style-link-invert",attrs:{id:"user_roles"}},[t._v("\n        Learn roles "),e("icon-font",{staticClass:"text-blue",attrs:{icon:"question"}})],1)],1):t._e(),t._v(" "),t.showSelectedUsers&&t.contributors.length?e("scrollable",{ref:"scrollable",staticStyle:{"margin-top":"24px"},attrs:{"min-height":t.minHeight,"max-height":t.maxHeight}},[e("transition-group",{attrs:{name:"transition-fade"}},t._l(t.sortedContributors,(function(n){var r;return e("div",{key:n.id,staticClass:"contributors-row",style:{display:n.isActive?null:"none"},attrs:{"data-id":n.id}},[e("user-avatar",{staticClass:"avatar-xl",attrs:{user:n.id,tooltip:!1}}),t._v(" "),e("div",{staticClass:"_label"},[e("p",[t._v(t._s(n.name))]),t._v(" "),e("p",[t._v(t._s(n.email))])]),t._v(" "),t.showPermissions&&!t.showAccountType&&null!==n.seen?e("span",{staticClass:"_status",class:{"-active":n.seen,"-pending":!n.seen&&n.isContributor}},[t._v(t._s(n.seen?"Active":n.isContributor?"Pending":"Inactive"))]):t.showPermissions&&t.showAccountType&&!n.isContributor?e("span",{staticClass:"_status"},[t._v(t._s(n.isOwner?"Owner":"Admin"))]):t._e(),t._v(" "),t.showPermissions?e("div",{staticClass:"_permission"},[n.isOwner||n.isAdministrator||!t.canSelectUsers||n.id===t.xAccountData.id?e("span",{staticClass:"non-clickable"},[t._v("\n              "+t._s((null===(r=t.usersGroups[n.group])||void 0===r?void 0:r.name)||"Custom")+"\n            ")]):e("dropdown",{attrs:{items:t.usersGroupsDropdown,selected:n.group,"align-right":!0,"auto-open":!1,detached:!0},on:{select:function(e){return t.onGroupSelect(n.id,e)}}})],1):t._e(),t._v(" "),t.hasButtonsColumn?e("div",{staticClass:"text-right",staticStyle:{width:"calc(72px - 1em)"}},[n.canEdit?e("has-tooltip",{staticClass:"cursor-pointer",attrs:{tooltip:"Edit custom role",tag:"span"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.contributorPermissions(n.id)}}},[e("icon-font",{staticClass:"nc-icon-bigger text-gray-darkest",attrs:{icon:"edit"}})],1):t._e(),t._v(" "),n.canDelete?e("has-tooltip",{staticClass:"cursor-pointer",attrs:{tooltip:"Remove user",tag:"span"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.contributorRemoved(n.id)}}},[e("icon-font",{staticClass:"nc-icon-bigger text-gray-darkest",attrs:{icon:"trash"}})],1):t._e()],1):t._e()],1)})),0)],1):t._e()],1)])},i=[]},10944:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"project-header"}},[e("div",{staticClass:"_left",style:t.leftStyle},[e("has-tooltip",{staticClass:"_nav",class:{"-back":t.hasBackButton},attrs:{tooltip:t.backButtonTooltip,position:"below",delay:10,"leave-delay":10,offset:20},on:{click:t.onBackClick}},[e("icon-font",{attrs:{icon:t.hasBackButton?"right-sm":"dashboard2"}})],1),t._v(" "),e("div",{staticClass:"_name",class:{"-breadcrumbs":t.breadcrumbsItems.length,"-open-menu":t.hasFileMenu&&t.fileMenuVisible}},[t._l(t.breadcrumbsItems,(function(n,r){return e("span",{key:r,staticClass:"_item",class:{"cursor-pointer":null==n?void 0:n.onClick,_breadcrumb:r+1<t.breadcrumbsItems.length,_separator:"separator"===n},attrs:{title:null==n?void 0:n.name},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:function(){return null!=n&&n.onClick?n.onClick():null}.apply(null,arguments)}}},[t._v("\n        "+t._s((null==n?void 0:n.name)||("separator"===n?"/":""))+"\n      ")])})),t._v(" "),t.hasFileMenu?e("icon-font",{staticClass:"clickable",attrs:{icon:"right-sm"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.toggleFileMenu.apply(null,arguments)}}}):t._e(),t._v(" "),t.hasFileMenu&&t.fileMenuVisible?e("partial-dropdown",{attrs:{menu:t.fileMenuItems},on:{close:function(e){t.fileMenuVisible=!1}}}):t._e()],2),t._v(" "),t._l(t.projectMeta,(function(n){return e("div",{class:[n.pill?"_pill":"_meta",n.className||null],attrs:{title:n.tooltip||null}},[t._v("\n      "+t._s(n.text||"")+"\n      "),n.timestamp?e("dynamic-timestamp",{attrs:{timestamp:n.timestamp,"past-postfix":n.past||null,"future-prefix":n.future||null,"allow-days":n.allowDays||!1,"allow-months":n.allowMonths||!1,"allow-years":n.allowYears||!1}}):t._e()],1)})),t._v(" "),e("svg-loading-circle",{attrs:{status:t.savingStatus}})],2),t._v(" "),t.isProjectToolsNavVisible?e("ul",{staticClass:"_center"},t._l(t.projectNav,(function(n){return e("li",{key:n.elId,class:n.className,attrs:{id:n.elId},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMainNavClick(n.id)}}},[t._v("\n      "+t._s(n.name)+"\n    ")])})),0):t._e(),t._v(" "),e("partial-side-buttons",{staticClass:"_right"})],1)},i=[]},71648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_dropdown"},[e("ul",t._l(t.menu,(function(n){return e("li",{class:{_separator:"separator"===n,"-current":n.current,"-button":"version-form"===n&&!t.versionForm,"-form":"version-form"===n&&t.versionForm},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[null!=n&&n.icon?e("icon-font",{attrs:{icon:n.icon}}):t._e(),t._v(" "),null!=n&&n.label?e("span",[t._v(t._s(n.label))]):t._e(),t._v(" "),"version-form"!==n||t.versionForm?"version-form"===n&&t.versionForm?e("version-form"):t._e():e("span",[t._v("+ New Version")])],1)})),0)])},i=[]},50640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ul",t._l(t.sideButtons,(function(n){return e("has-tooltip",{key:n.icon,class:{"-active":t.sideButtonDropdown===n.icon},attrs:{tag:"li",tooltip:n.tooltip,position:"below",delay:10,"leave-delay":10,offset:20},on:{click:n.onClick},nativeOn:{mouseenter:function(e){t.sideButtonDropdown=n.icon},mouseleave:function(e){t.sideButtonDropdown=!1}}},[t._o(e("icon-font",{attrs:{icon:n.icon}}),0,n.icon),t._v(" "),n.counter?e("sup",[t._v(t._s(n.counter))]):t._e(),t._v(" "),n.submenu?e("partial-dropdown",{directives:[{name:"show",rawName:"v-show",value:t.sideButtonDropdown===n.icon,expression:"sideButtonDropdown === button.icon"}],attrs:{menu:n.submenu},on:{close:function(e){t.sideButtonDropdown=!1}}}):t._e()],1)})),1)},i=[]},28560:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return!t.isContentPage||t.isRevisionViewer||t.isProjectShared||t.xIsPageLoading?t.isContent&&!t.isProjectShared&&t.canModifyContentTools?e("toolbar-content"):t.isContent||t.isContentPage||!t.hasAnyToolbar?t._e():e("div",t._l(t.toolbarItems,(function(n,r){return e("div",{key:r,staticClass:"toolbar",class:"-"+r},t._l(n,(function(t,n){return e("separator"===t?"div":t,{key:((null==t?void 0:t.name)||t)+n,tag:"component",class:"separator"===t?"_item -separator":null})})),1)})),0):e("toolbar-content-page")},i=[]},10628:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_group"},t._l(t.buttons,(function(n){return e("div",{key:n.key,staticClass:"_wrapper"},[e("has-tooltip",{staticClass:"_item",class:{"-disabled":t.xProjectSavingProcesses.length,"-active":t.isVisible===n.key},attrs:{tooltip:n.label,position:"below",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n.key)}}},[e("icon-font",{attrs:{icon:n.icon}})],1),t._v(" "),t.isVisible===n.key?e("ul",{staticClass:"_dropdown"},t._l(n.options,(function(r){return e("li",{key:r.value,class:{"-active":n.value===r.value},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSelect(n.key,r.value)}}},[r.icon?e("icon-font",{attrs:{icon:r.icon}}):t._e(),t._v(" "),e("span",[t._v(t._s(r.label))])],1)})),0):t._e()],1)})),0)},i=[]},46092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_group"},t._l(t.buttons,(function(n){return e("has-tooltip",{key:n.icon,staticClass:"_item",class:{"-disabled":n.disabled},attrs:{tooltip:n.label,position:"below",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:n.icon}})],1)})),1)},i=[]},7055:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.otherUsers.length?e("div",{staticClass:"_group"},[e("has-tooltip",{staticClass:"_item -pink",attrs:{tooltip:"Instant chat",position:"bottom",delay:10,"leave-delay":10},on:{click:t.onChatClick}},[e("icon-font",{attrs:{icon:"tool-chat"}})],1),t._v(" "),e("user-avatars",{staticClass:"_users",attrs:{users:t.otherUsers,limit:4,"with-avatars":!0,"tooltip-offset":8}})],1):t._e()},i=[]},98184:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isRevisionViewer,expression:"!isRevisionViewer"}],staticClass:"toolbar-legacy"},[e("div",{staticClass:"_item"},[e("icon-font",{attrs:{icon:"person"}}),t._v(" "),e("span",[t._v("Assigned to:")]),t._v(" "),t.$root.userCan(t.permissionsProject.MANAGE_CONTENT)||t.currentAssignee.length?t._e():e("span",{staticClass:"text-gray-darkest"},[t._v("\n      Unassigned\n    ")])],1),t._v(" "),t.$root.userCan(t.permissionsProject.MANAGE_CONTENT)&&t.pageIsEditable?e("div",{staticClass:"buttons-group-wrapper"},[e("ul",{staticClass:"ui-dropdown dropdown-custom"},[e("li",{class:{hover:"assignee"===t.isSubmenuVisible}},["assignee"===t.isSubmenuVisible?e("ul",[e("scrollable",{attrs:{"max-height":t.maxDropdownHeight}},t._l(t.projectUsers,(function(n){return e("li",{key:n.id,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.assignUser(n.id)}}},[e("div",{staticClass:"is-flex g-align-items-center non-clickable"},[e("field-checkable",{attrs:{size:"tiny",placeholder:!0,checked:t.currentAssignee.includes(n.id)}}),t._v(" "),e("user-avatar",{staticClass:"avatar-xs float-none",attrs:{user:n,tooltip:!1,"display-empty":!0}}),t._v(" "),e("div",[t._v(t._s(n.name))])],1)])})),0)],1):t._e(),t._v(" "),e("div",{staticClass:"buttons-group active-button",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openSubmenu("assignee")}}},[t.currentAssignee.length?e("span",{staticClass:"label autosize"},[t._v(t._s(t.currentAssigneeText))]):e("span",{staticClass:"label autosize text-gray-darkest"},[t._v("Unassigned")]),t._v(" "),e("div",{staticClass:"button-item"},[e("icon-font",{attrs:{icon:t.isSavingUsers?"loading":"assignee"===t.isSubmenuVisible?"triangle-up-sm":"triangle-down-sm"}})],1)])])])]):t.currentAssignee.length?e("div",{staticClass:"buttons-group-wrapper"},[e("user-avatars",{attrs:{users:t.currentAssignee,size:"sm"}})],1):t._e(),t._v(" "),e("div",{staticClass:"_item cursor-default"},[e("icon-font",{attrs:{icon:"clock-2"}}),t._v(" "),e("span",{staticClass:"label"},[t._v("\n      Status:\n      "),t.pageIsEditable?t._e():e("span",{staticClass:"ml-2",class:{"text-gray-darkest":t.currentStatus.alias===t.constants.CONTENT_STATUS_UNASSIGNED}},[e("span",{staticClass:"workflow-status -with-margin",style:{backgroundColor:t.currentStatus.color}}),t._v("\n        "+t._s(t.currentStatus.name)+"\n      ")])])],1),t._v(" "),t.pageIsEditable?e("div",{staticClass:"buttons-group-wrapper"},[e("ul",{staticClass:"ui-dropdown dropdown-custom"},[e("li",{class:{hover:"status"===t.isSubmenuVisible}},["status"===t.isSubmenuVisible?e("ul",t._l(t.xContentStatuses,(function(n){return e("li",{key:n.alias,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.switchStatus(n.alias)}}},[e("div",{staticClass:"workflow-status -with-space",style:{backgroundColor:n.color}}),t._v(" "),e("span",{staticClass:"label"},[t._v("\n              "+t._s(n.name)+"\n              "),n.readonly?e("icon-font",{staticClass:"ml-2 font-size-10 text-gray-darkest",attrs:{icon:"lock"}}):t._e()],1)])})),0):t._e(),t._v(" "),e("div",{staticClass:"buttons-group active-button",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openSubmenu("status")}}},[e("span",{staticClass:"label autosize",class:{"text-gray-darkest":t.currentStatus.alias===t.constants.CONTENT_STATUS_UNASSIGNED}},[e("span",{staticClass:"workflow-status -with-margin",style:{backgroundColor:t.currentStatus.color}}),t._v("\n            "+t._s(t.currentStatus.name)+"\n            "),t.currentStatus.readonly?e("icon-font",{staticClass:"ml-2 font-size-10 text-gray-darkest",attrs:{icon:"lock"}}):t._e()],1),t._v(" "),e("div",{staticClass:"button-item"},[e("icon-font",{attrs:{icon:t.isSavingStatus?"loading":"status"===t.isSubmenuVisible?"triangle-up-sm":"triangle-down-sm"}})],1)])])])]):t._e(),t._v(" "),t.languages.length>1?e("div",{staticClass:"_item cursor-default"},[e("icon-font",{attrs:{icon:"translation"}}),t._v(" "),e("span",{staticClass:"label"},[t._v("Language:")])],1):t._e(),t._v(" "),t.languages.length>1?e("div",{staticClass:"buttons-group-wrapper"},[e("ul",{staticClass:"ui-dropdown dropdown-custom"},[e("li",{class:{hover:"language"===t.isSubmenuVisible}},["language"===t.isSubmenuVisible?e("ul",t._l(t.languages,(function(n){return e("li",{key:n.value,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.switchLanguage(n.value)}}},[e("span",{staticClass:"label"},[t._v(t._s(n.label))])])})),0):t._e(),t._v(" "),e("div",{staticClass:"buttons-group active-button",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openSubmenu("language")}}},[e("span",{staticClass:"label autosize"},[t._v(t._s(t.currentLanguage.label))]),t._v(" "),e("div",{staticClass:"button-item"},[e("icon-font",{attrs:{icon:"language"===t.isSubmenuVisible?"triangle-up-sm":"triangle-down-sm"}})],1)])])])]):t._e(),t._v(" "),t.languagesForClone.length&&!t.pageIsLocked?e("div",{staticClass:"_item cursor-default"},[e("icon-font",{attrs:{icon:"clone"}}),t._v(" "),e("span",{staticClass:"label"},[t._v("Clone from:")])],1):t._e(),t._v(" "),t.languagesForClone.length&&!t.pageIsLocked?e("div",{staticClass:"buttons-group-wrapper"},[e("ul",{staticClass:"ui-dropdown dropdown-custom"},[e("li",{class:{hover:"clonelang"===t.isSubmenuVisible}},["clonelang"===t.isSubmenuVisible?e("ul",t._l(t.languagesForClone,(function(n){return e("li",{key:n.value,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCloneFromLanguage(n.value)}}},[e("span",{staticClass:"label"},[t._v(t._s(n.label))])])})),0):t._e(),t._v(" "),e("div",{staticClass:"buttons-group active-button",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openSubmenu("clonelang")}}},[e("span",{staticClass:"label autosize"},[t._v("Select...")]),t._v(" "),e("div",{staticClass:"button-item"},[e("icon-font",{attrs:{icon:"clonelang"===t.isSubmenuVisible?"triangle-up-sm":"triangle-down-sm"}})],1)])])])]):t._e(),t._v(" "),t.pageIsEditable?e("div",{staticClass:"_item buttons-plain",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openRevisions.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"stopwatch"}}),t._v(" "),e("span",{staticClass:"label"},[t._v("Page revisions")])],1):t._e(),t._v(" "),t.canShare?e("div",{staticClass:"buttons-group"},[e("span",{staticClass:"button-item auto -single",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onShareClick.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"share"}}),t._v(" "),e("span",{staticClass:"_label"},[t._v("Share page")])],1)]):t._e()])},i=[]},9808:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.buttons.length?e("div",{staticClass:"toolbar-tabs"},t._l(t.buttons,(function(n){return e("div",{key:n.id,staticClass:"_item",class:{"-active":n.active},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[t._o(e("icon-font",{attrs:{icon:n.icon}}),0,n.id),t._v(" "),e("span",[t._v(t._s(n.name))])],1)})),0):t._e()},i=[]},82280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("has-tooltip",{staticClass:"_item",class:{"-active":t.isCommentMode,"-disabled":!t.canSeeComments},attrs:{tooltip:"Comments",position:"bottom",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openComments.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:t.isLoading?"loading":"tool-comment"}}),t._v(" "),t.xCommentsCount.total>0?e("sub",{class:{"text-green":t.xCommentsCount.unread>0}}):t._e()],1)},i=[]},93068:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_group"},[e("has-tooltip",{staticClass:"_item -primary",class:{"-disabled":!t.isDiagramStructureEditable,"-active":"insert"===t.isVisible},attrs:{tooltip:"Insert",position:"below",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onInsertClick.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"tool-plus"}})],1),t._v(" "),e("div",{staticClass:"_item -separator"}),t._v(" "),t._l(t.buttons,(function(n){return e("has-tooltip",{key:n.type,staticClass:"_item",class:{"-disabled":!t.isDiagramStructureEditable,"-active":n.submenu&&t.isVisible===n.submenu},attrs:{id:"button-"+n.type,tooltip:n.tooltip,position:"below",delay:10,"leave-delay":10},nativeOn:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonMouseDown(e,n)}}},[e("icon-font",{attrs:{icon:n.icon}})],1)})),t._v(" "),t.isDiagramStructureEditable?e("ul",{staticClass:"ui-dropdown dropdown-diagram-elements",on:{mouseleave:t.hideSubmenu}},[e("li",{class:{hover:t.isVisible}},[e("ul",{directives:[{name:"show",rawName:"v-show",value:"insert"===t.isVisible,expression:"isVisible === 'insert'"}]},[t._l(t.submenus[0].shapes,(function(n){return e("li",{key:n.id,on:{mouseenter:t.hideSubmenu,mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonMouseDown(e,n)}}},[e("span",{staticClass:"_shape"},[e("shape-svg",{attrs:{shape:n.id,size:16}})],1),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(n.name))])])})),t._v(" "),e("li",{staticClass:"spacer",on:{mouseenter:t.hideSubmenu}}),t._v(" "),t._l(t.submenus.slice(1),(function(n){return e("li",{key:n.id,staticClass:"has-submenu",class:{hover:t.isSubmenu===n.id},staticStyle:{"justify-content":"space-between","padding-right":"0"},on:{mouseenter:function(e){t.isSubmenu=n.id}}},[e("div",[e("span",{staticClass:"_shape"},[e("shape-svg",{attrs:{shape:n.shapes[0].id,size:16}})],1),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(n.label))]),t._v(" "),e("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"triangle-right-sm"}})],1),t._v(" "),e("ul",{staticClass:"submenu",class:{"columns-3":n.shapes.length>10,"-bottom":n.shapes.length<8}},t._l(n.shapes,(function(n){return e("li",{key:n.id,on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonMouseDown(e,n)}}},[e("span",{staticClass:"_shape"},[e("shape-svg",{attrs:{shape:n.id,size:16}})],1),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(n.name))])])})),0)])}))],2),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:"image"===t.isVisible,expression:"isVisible === 'image'"}],style:{transform:"translateX(85px)"}},[e("li",{on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onUploadManually.apply(null,arguments)}}},[e("span",{staticClass:"label"},[t._v("Upload files")])]),t._v(" "),e("li",{on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSelectFromLibrary.apply(null,arguments)}}},[e("span",{staticClass:"label"},[t._v("Choose from library")])])])])]):t._e(),t._v(" "),t.isDiagramStructureEditable?e("div",{ref:"clickable",staticClass:"position-absolute",staticStyle:{top:"-99vw",left:"-99vh"}}):t._e()],2)},i=[]},56556:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this;return(0,t._self._c)("has-tooltip",{staticClass:"_item",class:{"-active":t.$store.state.diagram.grid},attrs:{tooltip:"Grid",position:"bottom",delay:10,"leave-delay":10},on:{click:function(e){return t.$store.commit("diagram/setGrid",!t.$store.state.diagram.grid)}}},[t._m(0)],1)},i=[function(){return(0,this._self._c)("icon-font",{attrs:{icon:"tool-grid"}})}]},79984:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_wrapper"},[e("has-tooltip",{staticClass:"_item",class:{"-active":t.isVisible,"-dropdown":t.canEdit,"-none":!t.canEdit},attrs:{tooltip:t.isVisible?"":"Status",position:"below",delay:10,"leave-delay":10},on:{click:t.onMenuClick}},[e("span",{staticClass:"_pill",style:{backgroundColor:t.currentStatus.color}},[t._v("\n      "+t._s(t.currentStatus.name||t.currentStatus.label)+"\n    ")]),t._v(" "),t.canEdit?e("icon-font",{attrs:{icon:"right-sm"}}):t._e()],1),t._v(" "),t.isVisible?e("ul",{staticClass:"_dropdown -pills"},t._l(t.xDiagramWorkflow,(function(n){return e("li",{key:n.alias,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[e("span",{staticClass:"_pill",style:{backgroundColor:n.color}},[t._v("\n        "+t._s(n.name||n.label)+"\n      ")])])})),0):t._e()],1)},i=[]},46488:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_wrapper"},[e("has-tooltip",{staticClass:"_item",class:{"-disabled":t.xProjectSavingProcesses.length,"-active":t.isVisible},attrs:{tooltip:"Orientation",position:"below",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onToggle.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"tool-"+t.currentTemplate}})],1),t._v(" "),t.isVisible?e("ul",{staticClass:"_dropdown"},t._l(t.orientations,(function(n){return e("li",{key:n.id,class:{"-active":n.active},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onChange(n)}}},[e("icon-font",{attrs:{icon:n.icon}}),t._v("\n      "+t._s(n.title)+"\n    ")],1)})),0):t._e()],1)},i=[]},77132:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_group"},t._l(t.buttons,(function(n){return e("has-tooltip",{key:n.id,staticClass:"_item",class:{"-disabled":n.disabled},attrs:{tooltip:n.name,delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.loadRevision(n.id)}}},[e("icon-font",{attrs:{icon:"tool-".concat(n.id,"2")}})],1)})),1)},i=[]},45764:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_wrapper"},[e("has-tooltip",{staticClass:"_item",class:{"-active":t.isEnabled,"font-size-14":t.isEnabled},attrs:{tooltip:"Search",position:"bottom",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onToggle.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:t.isEnabled?"tool-x":"tool-loupe"}})],1),t._v(" "),e("div",{staticClass:"_search",class:{"-hide":!t.isEnabled}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],attrs:{type:"text",placeholder:"Search"},domProps:{value:t.search},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onEscape.apply(null,arguments)},blur:t.onBlur,input:function(e){e.target.composing||(t.search=e.target.value)}}}),t._v(" "),t.isEnabled&&t.search?e("icon-font",{staticClass:"clickable",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClear.apply(null,arguments)}}}):t._e()],1)],1)},i=[]},99436:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("has-tooltip",{staticClass:"_item",class:{"-active":t.isCommentMode,"-disabled":!t.canSeeComments},attrs:{tooltip:"Comments",position:"bottom",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openComments.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"tool-comment"}})],1)},i=[]},85472:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_group"},t._l(t.buttons,(function(n){return e("has-tooltip",{key:n.icon,staticClass:"_item",class:{"-disabled":n.disabled,"-active":!n.disabled&&n.feature===t.currentPanelVisible},attrs:{tooltip:n.label,position:"bottom",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n)}}},[e("icon-font",{attrs:{icon:n.icon}})],1)})),1)},i=[]},26152:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_group"},[e("has-tooltip",{staticClass:"_item",class:{"-disabled":!t.zoomOutAllowed},attrs:{tooltip:"Zoom out",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.zoomOut.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"tool-minus"}})],1),t._v(" "),e("div",{staticClass:"_item -text",on:{dblclick:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.zoom(100)}}},[t._v("\n    "+t._s(t.scale)+"%\n  ")]),t._v(" "),e("has-tooltip",{staticClass:"_item",class:{"-disabled":!t.zoomInAllowed},attrs:{tooltip:"Zoom in",delay:10,"leave-delay":10},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.zoomIn.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"tool-plus"}})],1)],1)},i=[]},30956:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{staticClass:"field-numeric",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.version,expression:"version"}],staticClass:"compact",attrs:{type:"text",inputmode:"numeric",pattern:"[0-9]+(\\.[0-9]{1,4})?",required:""},domProps:{value:t.version},on:{input:function(e){e.target.composing||(t.version=e.target.value)}}}),t._v(" "),e("icon-font",{staticClass:"clickable",attrs:{icon:"triangle-up-sm"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.increase.apply(null,arguments)}}}),t._v(" "),e("icon-font",{staticClass:"clickable",attrs:{icon:"triangle-down-sm"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.decrease.apply(null,arguments)}}}),t._v(" "),e("button",{staticClass:"button-compact",class:{"is-loading":t.formHelper.isSubmitting},attrs:{type:"submit"}},[e("icon-font",{attrs:{icon:t.formHelper.isSubmitting?"loading":"check"}})],1)],1)},i=[]},56520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.isVisible?e("portal",{attrs:{to:"actionBar-afterButtons"}},[e("span",t._l(t.buttons,(function(n){return e("span",{key:n.key,staticClass:"button-item item-wider cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(e,n)}}},[n.icon?e("icon-font",{attrs:{icon:n.icon,"icon-class":"non-clickable ref"}}):e("div",{staticClass:"non-clickable color-preview smaller ref",style:{background:t.colors[n.key]}}),t._v("\n        "+t._s(n.label)+"\n      ")],1)})),0)]):t._e()],1)},i=[]},79914:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{class:t.classes,style:t.styles,attrs:{id:t.cellId},on:{mouseenter:function(e){return t.xSetCellOnHover(t.cellId)},mouseleave:function(e){return t.xSetCellOnHover()},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown.apply(null,arguments)},dragstart:!1}},[e("div",{staticClass:"main"},[t.hasStatus&&"large"!==t.xCellsDesign.boxSize?e("workflow-status",{staticClass:"status",attrs:{status:t.hasStatus,detailed:!1}}):t._e(),t._v(" "),t.archetype?e("has-tooltip",{staticClass:"archetype",attrs:{tooltip:t.archetype.name}},[e("icon-archetype",{attrs:{"archetype-id":t.archetype.id}})],1):t._e(),t._v(" "),t.isPlaceholder?t._e():e("has-tooltip",{staticClass:"label",class:{"non-clickable":t.isSectionHome},attrs:{tooltip:t.labelTooltip,tag:"div","relative-to":".textarea"}},[e("field-textarea",{staticClass:"textarea",class:{"text-uppercase":!t.xSitemapData.meta.regular_case},attrs:{placeholder:"Enter Page Name",readonly:t.isReadonly||!t.isProjectStructureEditable,autosize:t.autosizeKey,spellcheck:"false",autocomplete:"off"},on:{autosize:function(e){t.textareaHeight=e.height}},nativeOn:{mouseup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onInputFocus.apply(null,arguments)},focus:function(e){return t.onInputFocus.apply(null,arguments)},blur:function(e){return t.onInputBlur.apply(null,arguments)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),e.target.blur())},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),e.target.blur())}},model:{value:t.labelTextWithNumbering,callback:function(e){t.labelTextWithNumbering=e},expression:"labelTextWithNumbering"}}),t._v(" "),t.hasStatus&&"large"===t.xCellsDesign.boxSize?e("workflow-status",{staticClass:"status",attrs:{status:t.hasStatus}}):t._e()],1),t._v(" "),t.hasSection&&!t.isSectionHome?e("has-tooltip",{staticClass:"section",attrs:{tooltip:"Open section"}},[e("icon-font",{class:{clickable:!t.xPanelVisible},attrs:{icon:t.subsectionIsLink?"link":"link-external"},on:{click:t.onSectionIconClick}})],1):t._e()],1),t._v(" "),t.isPlaceholder||t.isNew||!t.buttons.length||"small"===t.xCellsDesign.boxSize?t._e():e("ul",{staticClass:"properties",class:{"non-clickable":t.isSectionHome}},t._l(t.buttons,(function(n){return e("has-tooltip",{key:n.icon,attrs:{tooltip:n.tooltip,tag:"li","relative-to":".nc-icon"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n.prop,n.prop?t.xCell[n.prop]:null)}}},[e("icon-font",{attrs:{icon:n.icon,"icon-class":n.classes}}),t._v(" "),n.count>0?e("span",[t._v("\n        "+t._s(n.count)+"\n      ")]):t._e()],1)})),1),t._v(" "),e("has-tooltip",{key:t.propertiesButton.icon,staticClass:"properties-button",class:t.isSectionHome?"non-clickable":"cursor-pointer",attrs:{tooltip:t.propertiesButton.tooltip,"relative-to":".nc-icon"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(t.propertiesButton.prop)}}},[e("icon-font",{attrs:{icon:t.propertiesButton.icon,"icon-class":t.propertiesButton.classes}})],1),t._v(" "),t.hasConnection?e("div",{staticClass:"connection"}):t._e(),t._v(" "),!t.isPlaceholder&&t.isHover&&t.hasAddHomepage&&!t.isSearchResult?e("has-tooltip",{key:"add-home",staticClass:"func add add-home",attrs:{tooltip:"Add home page","relative-to":".nc-icon"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickAddPage(t.constants.CELL_LEVEL_HOME)}}},[e("icon-font",{attrs:{icon:"add"}})],1):t._e(),t._v(" "),!t.isPlaceholder&&t.isHover&&t.hasAddPrevPage&&!t.isSearchResult?e("has-tooltip",{key:"add-prev",staticClass:"func add add-prev",attrs:{tooltip:"Add page before","relative-to":".nc-icon"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickAddPage(t.constants.CELL_ADD_BEFORE)}}},[e("icon-font",{attrs:{icon:"add"}})],1):t._e(),t._v(" "),!t.isPlaceholder&&t.isHover&&t.hasAddNextPage&&!t.isSearchResult?e("has-tooltip",{key:"add-next",staticClass:"func add add-next",attrs:{tooltip:"Add page after","relative-to":".nc-icon"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickAddPage(t.constants.CELL_ADD_AFTER)}}},[e("icon-font",{attrs:{icon:"add"}})],1):t._e(),t._v(" "),t.isPlaceholder||!t.canCollapse||!t.isHover&&!t.hasCollapsed||t.isSearchResult?t._e():e("has-tooltip",{key:"collapse",staticClass:"func collapse",attrs:{tooltip:t.hasCollapsed?"Expand child pages":"Collapse child pages",position:"below","relative-to":".nc-icon"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickExpandCollapse.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:t.hasCollapsed?"triangle-down-sm":"triangle-up-sm"}})],1),t._v(" "),!t.isPlaceholder&&t.isHover&&t.hasAddSubpage&&!t.isSearchResult?e("has-tooltip",{key:"add-sub",staticClass:"func add add-sub",attrs:{tooltip:"Add sub page",position:"below","relative-to":".nc-icon"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickAddPage(t.constants.CELL_ADD_SUBPAGE)}}},[e("icon-font",{attrs:{icon:"add"}})],1):t._e(),t._v(" "),t.isSectionHome?e("div",{staticClass:"section-back",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSectionBack.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"left"}})],1):t.isNew||t.isPlaceholder||!t.isProjectStructureEditable||!t.isHover&&!t.isBatchEdit?t._e():e("field-checkable",{attrs:{placeholder:!0,size:"smaller",checked:!!t.isChecked},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCellSelect.apply(null,arguments)}}}),t._v(" "),t.isPlaceholder&&!0===t.xSitemapCellDragging.clone?e("icon-font",{attrs:{icon:"loading"}}):t._e(),t._v(" "),t._l(t.dropareas,(function(t){return e("div",{key:t,class:["cell-droparea",t],attrs:{"data-type":t}})})),t._v(" "),t.xWebsocketEditingBy?e("blocked-by",{attrs:{user:t.xWebsocketEditingBy}}):t._e()],2)},i=[]},52144:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pages-list-select",class:{"-groups":t.pagesTrees.length>1}},[e("scrollable",{ref:"scrollable",attrs:{height:t.height,"max-height":t.maxHeight}},[t._l(t.pagesTrees,(function(n){return[t.pagesTrees.length>1?e("strong",{staticClass:"_group-label"},[t._v(t._s(n.group))]):t._e(),t._v(" "),e("tree",{staticClass:"pages-list font-size-14",attrs:{tree:n.pages},scopedSlots:t._u([{key:"label",fn:function(n){var r=n.node;return[e("div",{staticClass:"name",class:[t.disabledPages[r.id]?"disabled":"style-link-invert"],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(r)}}},[t._v("\n            "+t._s(r.text)+"\n          ")])]}}],null,!0)})]}))],2)],1)},i=[]},45884:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("li",[t._t("label",(function(){return[t._v("\n    "+t._s(t.node.text)+"\n  ")]}),{node:t.node}),t._v(" "),t.hasChilds?e("tree",{attrs:{tree:t.node.childs},scopedSlots:t._u([t._l(Object.keys(t.$scopedSlots),(function(e){return{key:e,fn:function(n){return[t._t(e,null,null,n)]}}}))],null,!0)},[t._l(Object.keys(t.$slots),(function(e){return t._t(e,null,{slot:e})}))],2):t._e()],2)},i=[]},23204:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ol",{staticClass:"hierarchical"},t._l(t.tree,(function(n,r){return e("tree-node",{key:r,attrs:{node:n,hide:t.hide},scopedSlots:t._u([t._l(Object.keys(t.$scopedSlots),(function(e){return{key:e,fn:function(n){return[t._t(e,null,null,n)]}}}))],null,!0)},[t._l(Object.keys(t.$slots),(function(e){return t._t(e,null,{slot:e})}))],2)})),1)},i=[]},88704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"upload-block"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isUploadingVisible,expression:"isUploadingVisible"}],staticClass:"_previews"},[e("div",{staticClass:"_items"},[e("div",{staticClass:"_item is-flex"},[e("div",{staticClass:"_thumb is-flex"},[e("icon-font",{attrs:{icon:"file-text"}})],1),t._v(" "),e("div",{staticClass:"_meta"},[e("p",{staticClass:"font-size-14"},[t._v("\n            "+t._s(t.fileData.name)+"\n          ")]),t._v(" "),t.isUploading?e("div",{staticClass:"progress-bar"},[e("div",{staticClass:"_bar",style:t.uploadProgressWidth})]):t._e(),t._v(" "),t.isUploading||t.fileData.size?e("p",{staticClass:"font-size-12 text-gray-darkest"},[t.isUploading?e("span",[t._v(t._s(t.uploadProgressText)+" ("+t._s(t.uploadProgressPercent)+"%)")]):e("span",[t._v(t._s(t.humanFileSize(t.fileData.size)))])]):t._e()]),t._v(" "),t.fileData.id?e("div",{staticClass:"_buttons"},[e("icon-font",{staticClass:"clickable",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onFileDelete.apply(null,arguments)}}})],1):t._e()])])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isUploadingVisible,expression:"!isUploadingVisible"}],staticClass:"_dropzone",class:{"-active":t.uploadDropzoneStatus},style:{height:t.dropzoneHeight+"px"},attrs:{id:t.dropzoneId}},[e("div",[e("p",[t._v(t._s(t.descriptionText))]),t._v(" "),e("span",{ref:"button",staticClass:"button -secondary -smaller",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.uploadFileSelect.apply(null,arguments))}}},[t._v("\n        "+t._s(t.buttonLabelText)+"\n      ")])])])])},i=[]},48504:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.displayEmpty||t.contributor?e(t.tooltip?"has-tooltip":"div",{tag:"component",staticClass:"contributor-avatar",class:t.className,style:t.avatarStyles,attrs:{tooltip:t.tooltipCopy,position:t.tooltipPosition,offset:t.tooltipOffset}},[t.contributor&&t.contributor.avatar?e("img",{attrs:{src:t.contributor.avatar,alt:t.contributor.username}}):e("span",[t._v(t._s(t.contributor?t.contributor.initials:""))])]):t._e()},i=[]},46180:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.usersData.length>t.limit?e("div",[t._l(t.limit-1,(function(n){return e("user-avatar",{key:t.usersData[n-1].id,staticClass:"item",class:t.sizeClass,attrs:{user:t.usersData[n-1],tooltip:t.tooltip,"tooltip-offset":t.tooltipOffset}})})),t._v(" "),e("has-tooltip",{staticClass:"contributor-avatar item text more",class:t.sizeClass,attrs:{position:"below",offset:t.tooltipOffset},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"contributors-with-avatars"},t._l(t.aboveLimitCount,(function(n){return e("div",{key:t.usersData[n+t.limit-2].id},[t.withAvatars?e("user-avatar",{key:t.usersData[n+t.limit-2].id,staticClass:"avatar-sm",class:{"with-border":t.withBorders},attrs:{user:t.usersData[n+t.limit-2],tooltip:!1}}):t._e(),t._v(" "),e("span",[t._v(t._s(t.usersData[n+t.limit-2].name))])],1)})),0)]},proxy:!0}],null,!1,1025015292)},[t._v("\n      +"+t._s(t.aboveLimitCount)+"\n      ")])],2):t._l(t.usersData,(function(n){return e("user-avatar",{key:n.id,staticClass:"item",class:t.sizeClass,attrs:{user:n,tooltip:t.tooltip,"tooltip-offset":t.tooltipOffset}})}))],2)},i=[]},71120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.$root.isSuspendedEmailActivation?e("div",{style:t.wrapperHeight,attrs:{id:"email-verify-screen"}},[t.isChangeEmail?e("form",{attrs:{method:"post","data-vv-scope":"update",autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmitUpdate.apply(null,arguments)}}},[e("h1",[t._v("Change email address")]),t._v(" "),e("div",{staticClass:"form-update"},[e("h4",[t._v("Enter your new email")]),t._v(" "),e("p",[t._v("Please enter a new email and we’ll send you a verification code")]),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|email",expression:"'required|email'"}],attrs:{name:"email",type:"email",label:"Email",maxlength:"255","field-error":t.formFieldError("email","update"),autocomplete:!1,autofocus:!0},model:{value:t.newEmail,callback:function(e){t.newEmail=e},expression:"newEmail"}}),t._v(" "),e("div",{staticClass:"modal-buttons text-center"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),void(t.isChangeEmail=!1))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n          Change email\n        ")])],1)],1)]):e("form",{attrs:{method:"post","data-vv-scope":t.formHelper.scope,autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmitVerify.apply(null,arguments)}}},[e("h1",[t._v("Verify email address")]),t._v(" "),e("div",{staticClass:"form-verify"},[e("h4",[t._v("Enter your verification code")]),t._v(" "),e("p",[t._v("Please enter the 6-digit code sent to "),e("b",[t._v(t._s(t.xAccountData.email))]),e("br"),t._v("Check your spam folder if you don’t see the email")]),t._v(" "),e("div",{staticClass:"field",class:{"has-errors":t.formError}},[t._l(6,(function(n){return e("input",{directives:[{name:"model",rawName:"v-model",value:t.emailVerify[n-1],expression:"emailVerify[i - 1]"}],key:"code"+n,staticClass:"input",attrs:{id:"email-code-"+(n-1),type:"text",inputmode:"numeric",pattern:"[0-9]{1}",autocomplete:!1,autofocus:1===n,minlength:"1",maxlength:"1",placeholder:" ",required:""},domProps:{value:t.emailVerify[n-1]},on:{keyup:function(e){return t.onKeyup(e,n-1)},paste:function(e){return e.preventDefault(),e.stopPropagation(),t.onPaste(e,n-1)},input:function(e){e.target.composing||t.$set(t.emailVerify,n-1,e.target.value)}}})})),t._v(" "),t.formError?e("span",{staticClass:"description"},[t._v(t._s(t.formError))]):t._e()],2),t._v(" "),e("p",[e("span",[t._v("\n          Didn’t receive the OTP?\n          "),t.hasResendTimestamp?e("dynamic-timestamp",{attrs:{timestamp:t.resendTimestamp,"time-countdown":!0},on:{update:t.updateResendTimestamp}}):t._e()],1),t._v(" "),t.resendLoading?e("icon-loading",{attrs:{status:!0}}):e("span",{class:{"style-link":!t.hasResendTimestamp},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onResendClick.apply(null,arguments)}}},[t._v("Resend")])],1),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n        Verify code\n      ")]),t._v(" "),e("p",[t._v("\n        Need help?\n        "),e("a",{staticClass:"style-link",attrs:{href:t.supportUrl,target:"_blank",rel:"noreferrer noopener"}},[t._v("Contact support")]),t._v(" "),e("br"),t._v(" "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.isChangeEmail=!0)}}},[t._v("Change email address")])])],1)])]):t._e()},i=[]},58280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"workflow-status-list"},[t._t("default"),t._v(" "),e("div",{staticClass:"g-container-narrow g-container-bleed"},[e("ul",{ref:"list",staticClass:"ui-listing -smallest _workflow"},t._l(t.list,(function(n){return e("li",{key:n.alias,staticClass:"draggable g-grid g-align-center row-single",class:{selected:t.xBarSelectedIds.includes(n.alias),placeholder:t.isDragging===n.alias},attrs:{"data-id":n.alias},on:{mouseenter:function(e){return t.onMouseEnter(n)},mouseleave:function(e){t.isHovering=!1},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown.apply(null,arguments)}}},[e("div",{staticClass:"g-col-8"},[t.isEditable&&t.isToolAvailable&&n.alias!==t.constants.CONTENT_STATUS_UNASSIGNED?e("field-checkable",{attrs:{placeholder:!0,checked:t.xBarSelectedIds.includes(n.alias)}}):t._e(),t._v(" "),e("div",{staticClass:"label text-overflow"},[e("span",{staticClass:"workflow-status font-size-13",style:{backgroundColor:n.color}}),t._v("\n            "+t._s(n.name)+"\n            "),n.description?e("p",{staticClass:"font-size-13 line-height-144 text-gray-darkest",staticStyle:{"padding-top":"5px"}},[t._v("\n              "+t._s(n.description)+"\n            ")]):t._e()])],1),t._v(" "),e("div",{staticClass:"g-col-2"},[n.readonly||n.alias===t.constants.CONTENT_STATUS_UNASSIGNED?e("small",{staticClass:"text-gray-darkest"},[t._v("\n            "+t._s(n.readonly?"Read-only":"Unassigned")+"\n          ")]):t._e()]),t._v(" "),e("div",{staticClass:"g-col-2 text-right"},[t.isEditable?e("buttons-list",{attrs:{buttons:t.rowButtons(n)}}):t._e()],1)])})),0),t._v(" "),t.isEditable?e("div",{staticClass:"g-grid g-align-center row-single new font-size-16 cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm.apply(null,arguments)}}},[e("div",{staticClass:"g-grid g-align-content-center g-align-center g-grid-bleed"},[e("div",{staticClass:"g-col-auto font-size-21 line-height-0 text-gray-darkest"},[e("icon-font",{key:"add",attrs:{icon:"add-o",anim:"color"}})],1),t._v(" "),t._m(0)])]):t._e()])],2)},i=[function(){var t=this._self._c;return t("div",{staticClass:"g-col-auto-full text-navy"},[t("p",[this._v("Add New Status")])])}]},46456:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.statusData?e(t.tag,{tag:"component",class:t.detailed?"workflow-status-block":"workflow-status",style:t.statusAttr,attrs:{tooltip:!!t.tooltip&&t.label}},[t.detailed?[t.statusData.readonly?e("icon-font",{attrs:{icon:"lock"}}):t._e(),t._v("\n    "+t._s(t.label)+"\n  ")]:t._e()],2):t._e()},i=[]},97368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[t.qrCodeSvg?t._e():e("div",{staticClass:"text-center position-relative",staticStyle:{height:"200px"}},[e("component-loading")],1),t._v(" "),t.qrCodeSvg?e("div",{staticClass:"modal-content g-grid"},[t._m(0),t._v(" "),e("div",{staticClass:"g-col-6 text-center",staticStyle:{width:"180px"}},[e("div",{domProps:{innerHTML:t._s(t.qrCodeSvg)}}),t._v(" "),t.viewSetupKey?e("p",{staticClass:"font-size-12 font-size-12"},[t._v("\n        "+t._s(t.formData.secret)+"\n      ")]):e("p",{staticClass:"style-link font-size-12 font-size-12",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.viewSetupKey=!0)}}},[t._v("\n        View setup key\n      ")])]),t._v(" "),e("div",{staticClass:"g-col-12"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"key",label:"Enter the 6-digit code from your authenticator app","field-error":t.formFieldError("key"),spellcheck:!1,autocomplete:!1,maxlength:"7"},model:{value:t.formData.key,callback:function(e){t.$set(t.formData,"key",e)},expression:"formData.key"}})],1)]):t._e(),t._v(" "),t.qrCodeSvg?e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n      Verify & Save\n    ")])],1):t._e()])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-col-6 style-content",staticStyle:{width:"calc(100% - 180px)","margin-top":"0","padding-top":"0"}},[e("ol",[e("li",[t._v("Download and install an app (such as Google Authenticator or Authy) on your mobile device.")]),t._v(" "),e("li",[t._v("Scan the QR code.")]),t._v(" "),e("li",[t._v("Enter and verify the authentication code generated by the app.")])])])}]},63964:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[t.hasText?e("p",[t._v("\n      "+t._s(t.text)+"\n    ")]):t._e(),t._v(" "),t.html?e("div",{domProps:{innerHTML:t._s(t.html)}}):t._e(),t._v(" "),t.inputs&&t.inputs.length?e("div",[t._l(t.inputs,(function(n,r){return["select"===n.type?e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:n.validate||"required",expression:"field.validate || 'required'"}],key:n.id,attrs:{name:n.id,label:n.label||"",placeholder:n.placeholder||"",options:n.options,"option-label":n.optionLabel||"label","option-value":n.optionValue||"value","field-error":t.formFieldError(n.id)},model:{value:t.formData[n.id],callback:function(e){t.$set(t.formData,n.id,e)},expression:"formData[field.id]"}}):"cell_id"===n.id?e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:n.validate||"required",expression:"field.validate || 'required'"}],key:n.id,attrs:{name:n.id,label:n.label||"",placeholder:"Select Page",options:t.dropdownCellsList,"option-label":t.$options.dropdownLabelKey,"option-value":t.$options.dropdownValueKey,"field-error":t.formFieldError(n.id)},model:{value:t.formData[n.id],callback:function(e){t.$set(t.formData,n.id,e)},expression:"formData[field.id]"}}):"checkbox"===n.type?e("field-checkable",{key:n.id,style:n.style||null,attrs:{name:n.id,checked:n.checked||!1},model:{value:t.formData[n.id],callback:function(e){t.$set(t.formData,n.id,e)},expression:"formData[field.id]"}},[t._v("\n          "+t._s(n.label||"")+"\n        ")]):e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:n.validate||"required",expression:"field.validate || 'required'"}],key:n.id,attrs:{name:n.id,type:n.type||"text",label:n.label||"",autocomplete:!1,autofocus:0===r,"field-error":t.formFieldError(n.id)},model:{value:t.formData[n.id],callback:function(e){t.$set(t.formData,n.id,e)},expression:"formData[field.id]"}})]}))],2):t._e()]),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain -small",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":t.formHelper.isSubmitting}},[t._v("\n      "+t._s(t.buttonLabel)+"\n    ")])],1)])},i=[]},43862:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content-grid -third"},[e("div",{staticClass:"g-grid g-grid-bleed-third"},[e("div",{staticClass:"g-col-6"},[e("field-input",{attrs:{label:"Label name",autocomplete:!1},model:{value:t.formData.options.label,callback:function(e){t.$set(t.formData.options,"label",e)},expression:"formData.options.label"}}),t._v(" "),e("field-select",{attrs:{label:"HTML wrapper",options:t.htmlWrappers,placeholder:"No wrapper"},scopedSlots:t._u([{key:"label",fn:function(){return[t.formData.options.tag?e("label",{staticClass:"float-right cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.sidePanel=!0)}}},[t._m(0),t._v("\n                Settings\n              ")],1):t._e()]},proxy:!0}]),model:{value:t.formData.options.tag,callback:function(e){t.$set(t.formData.options,"tag",e)},expression:"formData.options.tag"}}),t._v(" "),t.hasTextType?e("field-switch",{attrs:{label:"Plain text (no rich text editing)"},model:{value:t.isPlainText,callback:function(e){t.isPlainText=e},expression:"isPlainText"}}):t._e(),t._v(" "),t.hasFileType?e("field-select",{attrs:{label:"File type",options:t.fileTypes,placeholder:"Any"},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}}):t._e()],1),t._v(" "),t.hasFileType?e("div",{staticClass:"g-col-6"},[e("field-switch",{attrs:{label:"Multiple uploads"},model:{value:t.formData.options.multiple,callback:function(e){t.$set(t.formData.options,"multiple",e)},expression:"formData.options.multiple"}}),t._v(" "),t.formData.options.multiple?e("field-checkable",{attrs:{type:"radio",name:"multiple",size:"smallest",value:"unlimited"},model:{value:t.formData.options.multiple_type,callback:function(e){t.$set(t.formData.options,"multiple_type",e)},expression:"formData.options.multiple_type"}},[t._v("\n            Unlimited\n          ")]):t._e(),t._v(" "),t.formData.options.multiple?e("field-checkable",{attrs:{type:"radio",name:"multiple",size:"smallest",value:"fixed"},model:{value:t.formData.options.multiple_type,callback:function(e){t.$set(t.formData.options,"multiple_type",e)},expression:"formData.options.multiple_type"}},[t._v("\n            Fixed limit\n          ")]):t._e(),t._v(" "),t.formData.options.multiple&&"fixed"===t.formData.options.multiple_type?e("field-input",{staticStyle:{"margin-top":"1.45em"},attrs:{type:"number",autocomplete:!1,step:"1",min:"1",max:"999",numeric:!0},model:{value:t.formData.options.multiple_value,callback:function(e){t.$set(t.formData.options,"multiple_value",e)},expression:"formData.options.multiple_value"}}):t._e()],1):t._e(),t._v(" "),t.hasTextType?e("div",{staticClass:"g-col-6"},[e("field-switch",{attrs:{label:"Set content limit"},model:{value:t.formData.options.limit,callback:function(e){t.$set(t.formData.options,"limit",e)},expression:"formData.options.limit"}}),t._v(" "),t.formData.options.limit?e("field-radio-bar",{attrs:{name:"limit_type",radios:[{label:"Character",value:"chars"},{label:"Word",value:"words"}]},model:{value:t.formData.options.limit_type,callback:function(e){t.$set(t.formData.options,"limit_type",e)},expression:"formData.options.limit_type"}}):t._e(),t._v(" "),t.formData.options.limit?e("field-input",{staticStyle:{"margin-top":"0.65em"},attrs:{type:"number",label:"chars"===t.formData.options.limit_type?"Character length":"Word count",autocomplete:!1},model:{value:t.formData.options.limit_value,callback:function(e){t.$set(t.formData.options,"limit_value",e)},expression:"formData.options.limit_value"}}):t._e()],1):t._e(),t._v(" "),"table"===t.blockData.type?e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-right"},[e("div",{staticClass:"g-grid g-grid-inner"},[e("div",{staticClass:"g-col-6"},[e("field-input",{attrs:{type:"number",label:"Columns",autocomplete:!1},model:{value:t.formData.content.cols,callback:function(e){t.$set(t.formData.content,"cols",e)},expression:"formData.content.cols"}})],1),t._v(" "),e("div",{staticClass:"g-col-6"},[e("field-input",{attrs:{type:"number",label:"Rows",autocomplete:!1},model:{value:t.formData.content.rows,callback:function(e){t.$set(t.formData.content,"rows",e)},expression:"formData.content.rows"}})],1),t._v(" "),e("div",{staticClass:"g-col-12"},[e("field-switch",{attrs:{label:"Lock columns and rows"},model:{value:t.formData.content.lock,callback:function(e){t.$set(t.formData.content,"lock",e)},expression:"formData.content.lock"}}),t._v(" "),e("field-switch",{staticStyle:{"margin-top":"0.15em"},attrs:{label:"Incline table heading"},model:{value:t.formData.content.thead,callback:function(e){t.$set(t.formData.content,"thead",e)},expression:"formData.content.thead"}})],1)])]):t._e()])]),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button",{staticClass:"-primary -small",attrs:{type:"submit"}},[t._v("\n        Save\n      ")])])]),t._v(" "),e("transition",{attrs:{name:"transition-modal-sidebar"}},[t.sidePanel?e("sidebar-wrapper",{attrs:{options:t.formData.options},on:{close:function(e){t.sidePanel=!1},submit:t.onWrapperSubmit}}):t._e()],1)],1)},i=[function(){return(0,this._self._c)("icon-font",{staticClass:"font-size-13",staticStyle:{"margin-right":"0.25em"},attrs:{icon:"gear-o"}})}]},35328:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-overlay"},[e("div",{staticClass:"sidebar"},[e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("close")}}}),t._v(" "),e("div",{staticClass:"sidebar-content"},[e("p",[t._v("Wrapper Settings")]),t._v(" "),e("hr",{staticClass:"spacer-200"}),t._v(" "),"html"===t.formData.tag?e("field-input",{attrs:{type:"textarea",label:"HTML before"},model:{value:t.formData.tag_html_before,callback:function(e){t.$set(t.formData,"tag_html_before",e)},expression:"formData.tag_html_before"}}):t._e(),t._v(" "),"html"===t.formData.tag?e("field-input",{attrs:{type:"textarea",label:"HTML after"},model:{value:t.formData.tag_html_after,callback:function(e){t.$set(t.formData,"tag_html_after",e)},expression:"formData.tag_html_after"}}):t._e(),t._v(" "),"html"!==t.formData.tag?e("field-input",{attrs:{label:"Class name"},model:{value:t.formData.tag_class,callback:function(e){t.$set(t.formData,"tag_class",e)},expression:"formData.tag_class"}}):t._e(),t._v(" "),"html"!==t.formData.tag?e("field-input",{attrs:{label:"ID"},model:{value:t.formData.tag_id,callback:function(e){t.$set(t.formData,"tag_id",e)},expression:"formData.tag_id"}}):t._e(),t._v(" "),e("hr",{staticClass:"spacer-200"}),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button",{staticClass:"-primary -small",attrs:{type:"submit"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("submit",t.formData))}}},[t._v("\n          Save\n        ")])])],1)],1)])},i=[]},87432:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[e("p",[t._v("\n      The "),e("b",[t._v(t._s(t.sitemap))]),t._v(" sitemap has multiple versions, please select versions to delete\n    ")]),t._v(" "),e("p",[t._v(" ")]),t._v(" "),t._l(t.versions,(function(n){return e("field-checkable",{key:n.alias,attrs:{value:n.alias,size:"small"},model:{value:t.formData.versions,callback:function(e){t.$set(t.formData,"versions",e)},expression:"formData.versions"}},[t._v("\n      Version "+t._s(n.version)+"\n      "),e("small",{staticClass:"text-gray-darkest ml-2"},[t._v("("+t._s(t.$trans("changed",{date:n.updated_at}))+")")])])}))],2),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{directives:[{name:"show",rawName:"v-show",value:t.formData.versions.length!==t.versions.length,expression:"formData.versions.length !== versions.length"}],staticClass:"-plain collapse",staticStyle:{float:"left","margin-top":"0.65em"},attrs:{type:"button"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.selectAll.apply(null,arguments))}}},[t._v("\n      "+t._s(t.$trans("select_all"))+"\n    ")]),t._v(" "),e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formIsSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.closeModal.apply(null,arguments))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formIsSubmitting,"is-disabled":!t.formData.versions.length}},[t._v("\n      "+t._s(t.$trans("delete"))+"\n    ")])],1)])},i=[]},15044:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[t.canDisplayForm?e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:"Diagram name",autocomplete:!1,autofocus:!0,"field-error":t.formFieldError("name")},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}}):t._e(),t._v(" "),t.canDisplayForm&&t.allowAssign?e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"cell_id",label:"Assign to project page",placeholder:"Select Page",options:t.dropdownCellsList,"option-label":t.$options.dropdownLabelKey,"option-value":t.$options.dropdownValueKey,"field-error":t.formFieldError("cell_id")},model:{value:t.formData.cell_id,callback:function(e){t.$set(t.formData,"cell_id",e)},expression:"formData.cell_id"}}):t._e(),t._v(" "),"add"===t.type?e("field-templates-diagram",{model:{value:t.selectedTemplate,callback:function(e){t.selectedTemplate=e},expression:"selectedTemplate"}}):t._e(),t._v(" "),"import"===t.type?e("upload-internal",{style:{marginTop:t.canDisplayForm?"1em":null},attrs:{url:"import/xml/diagram","accepted-files":"xml"},on:{file:t.onFileUpload}}):t._e()],1),t._v(" "),t.canSubmit?e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":t.formHelper.isSubmitting}},[t._v("\n      "+t._s("import"===t.type?"Upload":"edit"===t.type?"Save changes":"clone"===t.type?"Clone diagram":"Add diagram")+"\n    ")])],1):t._e()])},i=[]},55020:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"modal-external-url"}},[e("div",{staticClass:"modal-content"},[e("pre",{staticClass:"selectable"},[t._v(t._s(t.urlDecoded))]),t._v(" "),e("h1",[t._v("🔔 You are about to leave Slickplan")]),t._v(" "),t._m(0)]),t._v(" "),e("div",{staticClass:"modal-buttons text-center"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.closeModal.apply(null,arguments)}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button",{staticClass:"-primary",attrs:{type:"submit"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openLink.apply(null,arguments)}}},[t._v("\n      Proceed\n    ")])])])},i=[function(){var t=this,e=t._self._c;return e("p",[t._v("\n      This link may lead to a third-party website.\n      Please verify the authenticity of the link before proceeding, as scammers may try to trick you.\n      If you believe this link is suspicious, "),e("a",{staticClass:"style-link",attrs:{href:"mailto:help@slickplan.com"}},[t._v("contact support")])])}]},376:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"url",expression:"'url'"}],attrs:{name:"url",label:"Enter the URL of your Figma design file","field-error":t.formFieldError("url"),autocomplete:!1,autofocus:!0,"button-append":t.url&&!t.formHasErrors()?"Add":null,placeholer:"Paste your URL here"},on:{"button-click":t.processUrl},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.processUrl.apply(null,arguments))}},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),t.files.length?e("ul",{staticClass:"_files"},t._l(t.files,(function(n){return e("li",{key:n.figma_key},[e("div",{style:{backgroundImage:n.url_thumb?"url("+n.url_thumb+")":null}},[n.url_thumb?t._e():e("icon-font",{attrs:{icon:"loading"}})],1),t._v(" "),e("p",{staticClass:"text-overflow font-size-14 font-weight-600"},[t._v("\n          "+t._s(n.filename||n.name)+"\n        ")]),t._v(" "),e("icon-font",{staticClass:"clickable text-gray-darkest",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.removeFile(n)}}})],1)})),0):t._e()],1),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      Add Files\n    ")])],1)])},i=[]},48580:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal-content"},[e("div",{ref:"dropzone",staticClass:"upload-block"},[e("div",{staticClass:"_dropzone",style:{height:t.dropzoneHeight+"px"}},[t.onLibrary?e("div",[e("icon-font",{staticClass:"text-blue",staticStyle:{"font-size":"24px"},attrs:{icon:"img-upload"}}),t._v(" "),e("p",{staticClass:"font-weight-500",staticStyle:{margin:"0.8em 0"}},[t._v("\n            Drag files here\n          ")]),t._v(" "),e("p",{staticClass:"text-gray-darkest line-height-144"},[e("span",{ref:"button",staticClass:"style-link"},[t._v("Select manually")]),t._v("\n            or choose "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onFromLibraryClick.apply(null,arguments)}}},[t._v("from library")])])],1):e("div",[e("p",[t._v("\n            Select files\n            "+t._s(t.extensions.length?"("+t.extensions.join(", ")+")":"")+"\n            to upload or drag and drop here.\n          ")]),t._v(" "),e("span",{ref:"button",staticClass:"button -secondary -small"},[t._v("Select files")])])]),t._v(" "),t.dropzoneFiles.length?e("div",{staticClass:"_previews"},[e("scrollable",{attrs:{height:214}},[e("div",{staticClass:"_items"},t._l(t.sortedFiles,(function(n){return e("div",{key:n.uploadId,staticClass:"_item is-flex"},[e("div",{staticClass:"_thumb is-flex",style:{backgroundImage:!!n.thumb&&"url("+n.thumb+")"}},[n.thumb?t._e():e("icon-font",{attrs:{icon:"file-text"}})],1),t._v(" "),e("div",{staticClass:"_meta"},[e("p",{staticClass:"font-size-14"},[t._v("\n                  "+t._s(n.filename)+"\n                ")]),t._v(" "),n.alias?t._e():e("div",{staticClass:"progress-bar"},[e("div",{staticClass:"_bar",style:{width:n.progress+"%"}})]),t._v(" "),e("p",{staticClass:"font-size-12 text-gray-darkest"},[n.alias?e("span",[t._v(t._s(t.humanFileSize(n.total)))]):n.progress<=0?e("span",[t._v("Queued…")]):n.progress>=100?e("span",[t._v("Processing…")]):e("span",[t._v(t._s(n.progressText)+" ("+t._s(Math.round(n.progress))+"%)")])])]),t._v(" "),n.alias||n.progress<100?e("div",{staticClass:"_buttons"},[e("icon-font",{staticClass:"clickable",attrs:{icon:n.alias?"trash":"ban"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.dropzoneRemoveFile(n,!0)}}})],1):t._e()])})),0)])],1):t._e()])]),t._v(" "),t.dropzoneFiles.length&&(t.cancelLabel||t.submitLabel)?e("div",{staticClass:"modal-buttons text-right modal-footer"},[t.cancelLabel?e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      "+t._s(t.cancelLabel)+"\n    ")]):t._e(),t._v(" "),t.submitLabel?e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.isSubmitting,"is-disabled":!t.canSubmit},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onFormSubmit.apply(null,arguments))}}},[t._v("\n      "+t._s(t.submitLabel)+"\n    ")]):t._e()],1):t._e()])},i=[]},66612:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.src?e("img",{ref:"img",style:{width:t.width+"px",opacity:t.loaded?1:0},attrs:{src:t.src},on:{load:t.onLoad}}):t._e(),t._v(" "),t.loaded?t._e():e("div",{staticClass:"loading"},[e("icon-font",{attrs:{icon:"loading"}})],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded&&t.fileData.url_download,expression:"loaded && fileData.url_download"}],staticClass:"caption"},[e("div",{staticClass:"custom-button cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDownload.apply(null,arguments)}}},[t._m(0),t._v("\n      Download\n    ")],1)]),t._v(" "),t.loaded?e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("close")}}}):t._e()],1)},i=[function(){return(0,this._self._c)("icon-font",{attrs:{icon:"download"}})}]},52524:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content modal-content-narrow"},[e("field-radio-bar",{attrs:{radios:t.versions},model:{value:t.formData.version,callback:function(e){t.$set(t.formData,"version",e)},expression:"formData.version"}}),t._v(" "),e("transition",{attrs:{mode:"out-in",name:"transition-fade-slide"}},["classic"===t.formData.version?e("div",{staticStyle:{"padding-top":"1em"}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"token",label:t.$trans("auth_token"),"field-error":t.formFieldError("token"),spellcheck:!1,autocomplete:!1},model:{value:t.formData.token,callback:function(e){t.$set(t.formData,"token",e)},expression:"formData.token"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|alpha_num",expression:"'required|alpha_num'"}],attrs:{name:"subdomain",label:t.$trans("subdomain"),"field-error":t.formFieldError("subdomain"),"label-append":".BASECAMPHQ.COM",spellcheck:!1,autocomplete:!1},model:{value:t.formData.subdomain,callback:function(e){t.$set(t.formData,"subdomain",e)},expression:"formData.subdomain"}})],1):t._e()])],1),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n      "+t._s(t.$trans("connect"))+"\n    ")])],1)])},i=[]},42360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content modal-content-narrow"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"key","field-error":t.formFieldError("key"),spellcheck:!1,autocomplete:!1},model:{value:t.formData.key,callback:function(e){t.$set(t.formData,"key",e)},expression:"formData.key"}},[t._v("\n      "+t._s(t.$trans("api_key"))+"\n      "),e("link-help",{attrs:{id:"teamwork"}},[e("icon-font",{staticClass:"text-lightblue",attrs:{icon:"info"}})],1)],1)],1),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n      "+t._s(t.$trans("connect"))+"\n    ")])],1)])},i=[]},79652:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"onboarding"},[e("div",{staticClass:"modal-titlebar"},[e("p",{staticClass:"font-montserrat font-size-20"},[t._v("\n      "+t._s(t.modalData.title)+"\n    ")]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.closeModal.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"modal-content line-height-144"},[t._l(t.slides,(function(n,r){return e("div",{directives:[{name:"show",rawName:"v-show",value:r===t.currentSlideIndex,expression:"index === currentSlideIndex"}],key:n.vimeo},[e("p",{staticClass:"font-size-18 font-weight-500 mb-3"},[t._v("\n        "+t._s(t.currentSlideIndex+1)+"/"+t._s(t.slides.length)+" "+t._s(n.title)+"\n      ")]),t._v(" "),t._l(n.description,(function(n){return e("p",{staticClass:"style-content",domProps:{innerHTML:t._s(n)}})})),t._v(" "),e("div",{staticClass:"position-relative",staticStyle:{padding:"22px 0"}},[e("div",{staticClass:"embed-container"},[e("iframe",{attrs:{src:"https://player.vimeo.com/video/"+n.vimeo,frameborder:"0",allow:"autoplay; fullscreen",allowfullscreen:""}})]),t._v(" "),t.currentSlideIndex>0?e("div",{staticClass:"_prev",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onPrev.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"left"}})],1):t._e(),t._v(" "),t.isLastSlide?t._e():e("div",{staticClass:"_next",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onNext.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"right"}})],1)])],2)})),t._v(" "),t.modalData.learnMore?e("p",{staticClass:"style-content"},[t._v("\n      "+t._s(t.modalData.learnMore)+"\n      "),t.modalData.kb?e("link-help",{attrs:{id:t.modalData.kb}},[t._v("\n        help section\n      ")]):t._e()],1):t._e(),t._v(" "),e("div",{staticClass:"is-flex g-justify-space-between mt-5"},[e("div",[e("span",{staticClass:"style-link-invert font-size-14",staticStyle:{opacity:"0.5"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.closeModal.apply(null,arguments)}}},[t._v("\n          I’ll explore on my own\n        ")])]),t._v(" "),e("div",[e("div",{staticClass:"button -primary",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onButtonClick.apply(null,arguments)}}},[t._v("\n          "+t._s(t.isLastSlide?"Done":"Next")+"\n        ")])])])],2)])},i=[]},30176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"g-grid g-grid-bleed g-align-center"},[e("div",{staticClass:"g-col-7"},[e("field-input",{attrs:{autocomplete:!1,placeholder:"Search pages...","wrapper-class":"-search"},scopedSlots:t._u([{key:"htmlAfter",fn:function(){return[e("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"search"}}),t._v(" "),t.searchFilter?e("icon-font",{staticClass:"clickable clear",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.searchFilter="")}}}):t._e()]},proxy:!0}]),model:{value:t.searchFilter,callback:function(e){t.searchFilter=e},expression:"searchFilter"}})],1),t._v(" "),e("div",{staticClass:"g-col-5 text-right"},[e("dropdown",{staticClass:"font-size-14 text-left",attrs:{label:"Show",items:t.sectionsListWithAllDropdown,selected:t.sectionFilter},on:{select:function(e){return t.sectionFilter=e}},scopedSlots:t._u([{key:"selectedValue",fn:function(e){var n=e.value;return[t._v("\n            "+t._s(n.length>12?(""+n).slice(0,12)+"...":n)+"\n          ")]}}])})],1)]),t._v(" "),e("div",{staticClass:"pages-list-select",class:{"-groups":t.pagesTrees.length>1}},[e("scrollable",{ref:"scrollable",attrs:{height:"250"}},[t._l(t.pagesTrees,(function(n){return[t.pagesTrees.length>1?e("strong",{staticClass:"_group-label"},[t._v(t._s(n.group))]):t._e(),t._v(" "),e("tree",{staticClass:"pages-list font-size-14",attrs:{tree:n.pages},scopedSlots:t._u([{key:"label",fn:function(n){var r=n.node;return[e("div",{staticClass:"name",class:[{active:t.selectedPage===r.id},t.disabledPages[r.id]?"disabled":"style-link-invert"],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(!t.disabledPages[r.id]&&(t.selectedPage=r.id))}}},[t._v("\n                "+t._s(r.text)+"\n              ")])]}}],null,!0)})]}))],2)],1)]),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.selectedPage||t.selectedPage===t.selected}},[t._v("\n      "+t._s(t.submitLabel)+"\n    ")])],1)])},i=[]},8864:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-title"},[t.title?e("span",[e("image-tag",{staticStyle:{width:"25px","vertical-align":"middle",margin:"-.2em .5em 0 0"},attrs:{src:t.icon}}),t._v("\n    "+t._s(t.title)+"\n  ")],1):e("span",[t._v(t._s(t.$trans("loading_form"))+"…")]),t._v(" "),e("hr",{staticClass:"spacer-200"})])},i=[]},25904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-titlebar",staticStyle:{height:"auto"}},[e("p",{staticClass:"font-montserrat font-size-20 text-red"},[t._v("\n      "+t._s(t.header)+"\n    ")]),t._v(" "),t.headerText?e("p",{staticClass:"text-navy-lighter font-size-13",staticStyle:{"margin-top":"0.75em"}},[t._v("\n      "+t._s(t.headerText)+"\n    ")]):t._e(),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},on:{click:t.closeModal}})],1),t._v(" "),e("div",{staticClass:"modal-content"},[t.description?e("p",{staticClass:"text-navy-lighter font-size-13"},[t._v("\n      "+t._s(t.description)+"\n    ")]):t._e(),t._v(" "),t.checkboxes.length?[e("hr",{staticClass:"spacer-150"}),t._v(" "),t._l(t.checkboxes,(function(n){return e("field-checkable",{key:n.id,attrs:{value:n.id,size:"small"},model:{value:t.checklist,callback:function(e){t.checklist=e},expression:"checklist"}},[t._v("\n        "+t._s(n.label)+"\n      ")])})),t._v(" "),t.formHasErrors?e("p",{staticClass:"field has-errors",staticStyle:{margin:"0.5em 0 1em"}},[e("span",{staticClass:"description font-size-14 font-weight-700"},[t._v("Please read and check all checkboxes above.")])]):t._e()]:t._e(),t._v(" "),t.filteredTeam.length>1?[t.formHasErrors?t._e():e("hr",{staticClass:"spacer-225"}),t._v(" "),e("p",{staticClass:"text-navy-lighter font-size-13"},[t._v("\n        "+t._s(t.$trans("messages.delete_account_users"))+":\n      ")]),t._v(" "),e("div",{staticClass:"modal-close-account"},[e("user-avatars",{staticClass:"clearfix",attrs:{users:t.filteredTeam,limit:8}})],1)]:t._e()],2),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formIsSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.closeModal.apply(null,arguments))}}},[t._v("\n      "+t._s(t.buttonCancel)+"\n    ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formIsSubmitting}},[t._v("\n      "+t._s(t.buttonSubmit)+"\n    ")])],1)])},i=[]},68616:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[t.currentStepTitle?e("div",{staticClass:"modal-content"},[t.countYet>0?e("p",{domProps:{innerHTML:t._s(t.currentStepTitle)}}):t.step<t.steps.length?e("p",{staticClass:"text-green font-weight-700"},[t._v("\n      "+t._s(t.$trans("messages.continue_to_next_step"))+"\n    ")]):e("p",{staticClass:"text-green font-weight-700"},[t._v("\n      "+t._s(t.$trans("messages.plan_updates_complete"))+"\n    ")])]):t._e(),t._v(" "),e("div",{staticClass:"modal-content modal-content-grid list-rows",class:[t.currentStep.type,{"grid-rows":"files"===t.currentStep.type}],staticStyle:{"padding-top":"0"}},["files"!==t.currentStep.type?e("div",{staticClass:"g-grid table-head"},[e("div",{class:t.cols[0]},[e("field-checkable",{attrs:{placeholder:!0,checked:t.selected[t.currentStep.type].length===t.currentStepSortedData.length},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.selectAll.apply(null,arguments)}}}),t._v(" "),e("label",{staticClass:"heading ml-3"},[t._v("\n          "+t._s(t.$trans("projects"===t.currentStep.type?"project_name":"name"))+"\n        ")])],1),t._v(" "),e("div",{class:t.cols[1]},[e("label",{staticClass:"heading"},[t._v(t._s(t.$trans("projects"===t.currentStep.type?"type":"email")))])]),t._v(" "),"projects"===t.currentStep.type?e("div",{class:t.cols[2]},[e("label",{staticClass:"heading"},[t._v("\n          "+t._s(t.$trans("date"))+"\n        ")])]):t._e()]):t._e(),t._v(" "),e("scrollable",{attrs:{"max-height":t.scrollableHeight}},["projects"===t.currentStep.type?e("div",{staticClass:"list-limit"},t._l(t.currentStepSortedData,(function(n){return e("div",{staticClass:"g-grid list-row cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.rowSelected(n)}}},[e("div",{class:t.cols[0]},[e("field-checkable",{staticClass:"float-left mr-3",attrs:{placeholder:!0,checked:t.isSelected(n)}}),t._v(" "),e("div",{staticClass:"label line-height-144"},[t._v("\n              "+t._s(n.name)+"\n            ")])],1),t._v(" "),e("div",{staticClass:"text-gray-darkest font-size-14 line-height-144",class:t.cols[1]},[t._v("\n            "+t._s(t.$trans("sitemap"===n.type?"site_planning":"diagram"))+"\n          ")]),t._v(" "),e("div",{staticClass:"g-col-3 text-gray-darkest font-size-14 line-height-144",class:t.cols[2]},[t._v("\n            "+t._s(n.date)+"\n          ")])])})),0):t._e(),t._v(" "),"users"===t.currentStep.type?e("div",{staticClass:"list-limit"},t._l(t.currentStepSortedData,(function(n){return e("div",{staticClass:"g-grid list-row cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.rowSelected(n)}}},[e("div",{class:t.cols[0]},[e("field-checkable",{staticClass:"float-left mr-3",attrs:{placeholder:!0,checked:t.isSelected(n)}}),t._v(" "),e("div",{staticClass:"label"},[e("user-avatar",{staticClass:"avatar-sm",attrs:{user:n.id,tooltip:!1}}),t._v(" "),e("span",[t._v(t._s(t.xGetTeamMemberData(n.id,"name")))])],1)],1),t._v(" "),e("div",{staticClass:"text-gray-darkest font-size-14 line-height-144",class:t.cols[1]},[t._v("\n            "+t._s(t.xGetTeamMemberData(n.id,"email"))+"\n          ")])])})),0):"files"===t.currentStep.type?e("div",{staticClass:"list-limit g-grid g-justify-space-between"},[t._l(t.currentStepSortedData,(function(n){return e("div",{staticClass:"g-col-auto list-row cursor-pointer text-center",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.rowSelected(n)}}},[e("field-checkable",{staticClass:"float-left mr-3",attrs:{placeholder:!0,checked:t.isSelected(n)}}),t._v(" "),e("div",{staticClass:"thumb"},[n.thumb?e("img",{attrs:{src:n.thumb,alt:n.name,loading:"lazy",decoding:"async"}}):e("div",{staticClass:"icon"},[e("span",{staticClass:"fa fa-file"})])]),t._v(" "),e("p",{staticClass:"label",attrs:{title:n.name}},[t._v("\n            "+t._s(n.name)+"\n          ")]),t._v(" "),e("p",{staticClass:"text-gray-darkest font-size-13 line-height-200"},[t._v("\n            "+t._s(t.humanFileSize(n.size))+"\n          ")])],1)})),t._v(" "),t._l(t.blocksFill,(function(t){return e("div",{staticClass:"g-col-3 list-row placeholder"})}))],2):t._e()])],1),t._v(" "),e("div",{staticClass:"g-grid g-grid-bleed g-justify-end g-align-center modal-buttons"},[t.steps.length>1?e("div",{staticClass:"g-col-4 text-center"},t._l(t.steps.length,(function(n){return e("span",{staticClass:"step-circle",class:{current:t.step===n}})})),0):t._e(),t._v(" "),e("div",{staticClass:"g-col-4 text-right"},[1===t.step?e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.closeModal.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]):e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onBack.apply(null,arguments))}}},[t._v("\n        "+t._s(t.$trans("back"))+"\n      ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-disabled":t.countYet>0}},[t._v("\n        "+t._s(t.$trans(t.step===t.steps.length?"submit":"next"))+"\n      ")])],1)])])},i=[]},44060:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-overlay"},[e("form",{staticClass:"sidebar -new",attrs:{"data-vv-scope":t.formHelper.scope,autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-titlebar is-flex"},[e("p",[t._v(t._s(t.$trans("add_new_member")))]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"_content"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"first_name",label:t.$trans("first_name"),"field-error":t.formFieldError("first_name"),autocomplete:!1},model:{value:t.formData.first_name,callback:function(e){t.$set(t.formData,"first_name",e)},expression:"formData.first_name"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"last_name",label:t.$trans("last_name"),"field-error":t.formFieldError("last_name"),autocomplete:!1},model:{value:t.formData.last_name,callback:function(e){t.$set(t.formData,"last_name",e)},expression:"formData.last_name"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|email",expression:"'required|email'"}],attrs:{name:"email",type:"email",label:t.$trans("email_address"),"field-error":t.formFieldError("email"),autocomplete:!1,maxlength:"255"},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}}),t._v(" "),e("div",{staticClass:"text-right margin-large-top"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n          Add\n        ")])],1)],1)])])},i=[]},57800:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-titlebar"},[e("p",{staticClass:"font-montserrat font-size-20"},[t._v("\n      Create project\n    ")]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"modal-content modal-content-grid modal-create-diagram"},["general"===t.activeTab?e("div",{staticClass:"g-grid g-justify-space-between"},[e("div",{staticClass:"g-col-7"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:"Project name","field-error":t.formFieldError("name"),autocomplete:!1,autofocus:!0},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}}),t._v(" "),e("field-templates-diagram",{model:{value:t.$parent.selectedTemplate,callback:function(e){t.$set(t.$parent,"selectedTemplate",e)},expression:"$parent.selectedTemplate"}})],1),t._v(" "),e("modal-project-upload-logo",{staticClass:"g-col-5",attrs:{image:t.formData.logo},on:{change:function(e){t.formData.logo=e}}})],1):"team"===t.activeTab?e("project-members",{attrs:{contributors:t.$parent.internalContributors,"show-permissions":"diagram","show-account-type":!0,"always-can-select":!0,"min-height":95,"max-height":t.xWindowSize.height-350},on:{new:t.$parent.onContributorNew,select:t.$parent.onContributorSelect,remove:t.$parent.onContributorRemove,permissions:t.$parent.onContributorPermissionsOpen}}):t._e()],1),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      "+t._s(t.$parent.canHaveContributors&&"general"===t.activeTab?"Continue":t.$trans("create_project"))+"\n    ")])],1)])},i=[]},69516:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e(t.currentComponent,{key:t.currentComponent,tag:"component"}),t._v(" "),e("transition",{attrs:{name:"transition-modal-sidebar"},on:{"after-enter":t.onAfterSidebarEnter}},["user"===t.sidebarForm?e("user-sidebar",{key:t.sidebarForm,attrs:{value:t.newUserValue}}):"templates"===t.sidebarForm?e("templates-sidebar",{key:t.sidebarForm}):"crawler"===t.sidebarForm||"google"===t.sidebarForm?e("crawler-sidebar",{key:t.sidebarForm,attrs:{"form-data":"crawler"===t.sidebarForm?t.formDataCrawler:t.formDataXmlGoogle},on:{update:function(e){return t.onImportFormUpdate("crawler"===t.sidebarForm?"formDataCrawler":"formDataXmlGoogle",e)}}}):"wordpress"===t.sidebarForm?e("xml-wp-sidebar",{key:t.sidebarForm,attrs:{"form-data":t.formDataXmlWordPress},on:{update:function(e){return t.onImportFormUpdate("formDataXmlWordPress",e)}}}):"permissions"===t.sidebarForm&&t.canHaveContributors?e("permissions-sidebar",{key:t.sidebarForm,attrs:{user:t.sidebarFormUser},on:{update:t.onContributorPermissionsUpdate}}):t._e()],1)],1)},i=[]},44264:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal-titlebar"},[e("p",{staticClass:"font-montserrat font-size-20"},[t._v("\n      "+t._s(t.$trans("select_project_type"))+"\n    ")]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose()}}})],1),t._v(" "),e("div",{staticClass:"modal-content modal-create-project"},[e("div",{staticClass:"g-grid g-justify-space-between"},t._l(["sitemap","diagram"],(function(n){return e("div",{staticClass:"g-col-6 text-center",class:{hover:t.hoverOver===n}},[e("image-tag",{staticStyle:{width:"245px",height:"203px"},attrs:{src:"/images/illustrations/project-create-"+n+".png",retina:!0}}),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),e("div",{staticClass:"block-narrow"},[e("p",{staticClass:"font-size-20 font-weight-700 line-height-166"},[t._v("\n            "+t._s("sitemap"===n?t.$trans("create_project_sitemap"):"Build a Diagram")+"\n          ")]),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),e("p",{staticClass:"font-size-13 line-height-166"},[t._v("\n            "+t._s(t.$trans("messages.create_project_"+n))+"\n          ")])]),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("div",{staticClass:"button -primary",class:"-"+n,on:{mouseenter:function(e){t.hoverOver=n},mouseleave:function(e){t.hoverOver=null},click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSelect(n)}}},[t._v("\n          "+t._s(t.$trans("create_project"))+"\n        ")])],1)})),0)])])},i=[]},28348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("input",{ref:"tab",attrs:{type:"hidden"},domProps:{value:t.activeSubtab}}),t._v(" "),e("div",{staticClass:"modal-titlebar"},[e("p",{staticClass:"font-montserrat font-size-20"},[t._v("\n      Create project\n    ")]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"modal-content modal-content-grid modal-create-sitemap"},[t.isActiveTabTeam?t.isActiveTabTeam?e("project-members",{attrs:{contributors:t.$parent.internalContributors,"show-permissions":"sitemap","show-account-type":!0,"always-can-select":!0,"min-height":270,"max-height":t.xWindowSize.height-350},on:{new:t.$parent.onContributorNew,select:t.$parent.onContributorSelect,remove:t.$parent.onContributorRemove,permissions:t.$parent.onContributorPermissionsOpen}}):t._e():e("div",{staticClass:"g-grid g-justify-space-between"},[e("div",{staticClass:"g-col-7"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"title",label:"Project name","field-error":t.formFieldError("title"),autocomplete:!1,autofocus:!0},model:{value:t.formData.title,callback:function(e){t.$set(t.formData,"title",e)},expression:"formData.title"}}),t._v(" "),e("field-select",{attrs:{label:"Language",options:t.allLanguages},model:{value:t.formData.language,callback:function(e){t.$set(t.formData,"language",e)},expression:"formData.language"}})],1),t._v(" "),e("modal-project-upload-logo",{staticClass:"g-col-5",attrs:{image:t.formData.logo},on:{change:function(e){t.formData.logo=e}}}),t._v(" "),e("div",{staticClass:"g-col-12",staticStyle:{"padding-bottom":"0"}},[e("p",{staticStyle:{padding:"14px 0 6px 0"}},[t._v("\n          Need help getting started? Choose an option below\n        ")]),t._v(" "),e("ol",{staticClass:"tab-menu -narrow -alt"},t._l(t.subtabs,(function(n){return e("li",{key:n.id,class:{_active:!n.disabled&&t.activeSubtab===n.id,_disabled:n.disabled},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSubtabClick(n)}}},[t._v("\n            "+t._s(n.name)+"\n          ")])})),0),t._v(" "),"template"===t.activeSubtab?e("div",[e("p",{staticClass:"font-size-14 text-navy-lightest"},[t._v("\n            Start fresh or select a template!\n          ")]),t._v(" "),e("div",{staticClass:"sitemap-templates is-flex mt-5"},t._l(t.templates,(function(n){return e("div",{key:n.key,class:{selected:t.$parent.selectedTemplate===n.key},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.$parent.selectedTemplate=n.key)}}},[e("div",{staticClass:"img-icon"},[e("img",{attrs:{src:"/images/illustrations/project-".concat(n.id,".svg"),alt:n.value}})]),t._v(" "),e("p",{staticClass:"font-size-13"},[t._v("\n                "+t._s(n.value)+"\n              ")])])})),0),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.xPredefinedTemplates.length,expression:"xPredefinedTemplates.length"}],staticClass:"is-flex"},[e("span",{staticClass:"style-link font-size-14 font-weight-600",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.$parent.sidebarForm="templates")}}},[t._v(t._s(t.selectedCustomTemplate?t.selectedCustomTemplate.value:"View more templates"))]),t._v(" "),t.selectedCustomTemplate?e("icon-font",{staticClass:"text-red ml-2 font-size-13 clickable",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.$parent.selectedTemplate="blank")}}}):t._e()],1)]):"crawler"===t.activeSubtab?e("div",[e("p",{staticClass:"font-size-14 text-navy-lightest"},[t._v("\n            Enter your website’s URL\n          ")]),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required_if:tab,crawler|url:require_protocol",expression:"'required_if:tab,crawler|url:require_protocol'"}],staticClass:"mt-5",attrs:{name:"url",type:"url",placeholder:"https://example.com","field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.formDataCrawler.url,callback:function(e){t.$set(t.formDataCrawler,"url",e)},expression:"formDataCrawler.url"}}),t._v(" "),e("div",{staticClass:"is-flex -flex-even -with-75-gap mt-4"},[e("field-select",{staticStyle:{margin:"0"},attrs:{label:"Page label",options:[{value:"path",label:"File / directory name"},{value:"h1",label:"Header <h1> tag"},{value:"title",label:"Page <title> tag"}]},model:{value:t.formDataCrawler.cell_text,callback:function(e){t.$set(t.formDataCrawler,"cell_text",e)},expression:"formDataCrawler.cell_text"}}),t._v(" "),e("field-select",{staticStyle:{margin:"0"},attrs:{label:"Follow mode",options:[{value:"1",label:"Domain and all subdomains"},{value:"2",label:"Domain only"},{value:"3",label:"Domain and directory path only"}]},model:{value:t.formDataCrawler.follow_mode,callback:function(e){t.$set(t.formDataCrawler,"follow_mode",e)},expression:"formDataCrawler.follow_mode"}})],1),t._v(" "),e("p",{staticClass:"mt-5"},[e("span",{staticClass:"style-link font-size-14 font-weight-600",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.$parent.sidebarForm="crawler")}}},[t._v("View more options")])])],1):"ai"===t.activeSubtab?e("div",[e("p",{staticClass:"font-size-14 text-navy-lightest"},[t._v("\n            Describe the site in 1-2 sentences\n          ")]),t._v(" "),e("div",{staticClass:"is-flex -align-start -with-75-gap mt-5"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required_if:tab,ai|min:10|max:1000",expression:"'required_if:tab,ai|min:10|max:1000'"}],staticStyle:{flex:"1"},attrs:{name:"prompt",placeholder:"For example “A local Miami gym chain specializing in CrossFit”","field-error":t.formFieldError("prompt"),autocomplete:!1,minlength:"10",maxlength:"1000"},model:{value:t.formDataAi.prompt,callback:function(e){t.$set(t.formDataAi,"prompt",e)},expression:"formDataAi.prompt"}}),t._v(" "),e("field-select",{staticStyle:{width:"140px",margin:"0"},attrs:{options:[{label:"1-10 pages",value:"1-10"},{label:"10-20 pages",value:"10-20"},{label:"20+ pages",value:"20-30"},{label:"Decide for me",value:"any"}]},model:{value:t.formDataAi.counter,callback:function(e){t.$set(t.formDataAi,"counter",e)},expression:"formDataAi.counter"}})],1),t._v(" "),e("p",{staticClass:"mt-5 is-flex text-gray-darkest"},[e("span",{staticClass:"font-size-12 clickable",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.aiExamples=!t.aiExamples)}}},[t._v("See more examples")]),t._v(" "),e("icon-font",{staticClass:"ml-2 font-size-11",attrs:{icon:t.aiExamples?"triangle-up-sm":"triangle-down-sm"}})],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.aiExamples,expression:"aiExamples"}],staticClass:"text-gray-darkest font-size-12 mt-4 style-content selectable"},[t._m(0)])]):"xml"===t.activeSubtab?e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.formDataXml.file_id,expression:"formDataXml.file_id"},{name:"validate",rawName:"v-validate",value:"required_if:tab,xml|integer|min:1",expression:"'required_if:tab,xml|integer|min:1'"}],attrs:{type:"hidden",name:"file_id"},domProps:{value:t.formDataXml.file_id},on:{input:function(e){e.target.composing||t.$set(t.formDataXml,"file_id",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.formDataXml.file_size,expression:"formDataXml.file_size"},{name:"validate",rawName:"v-validate",value:"required_if:tab,xml|integer",expression:"'required_if:tab,xml|integer'"}],attrs:{type:"hidden",name:"file_size"},domProps:{value:t.formDataXml.file_size},on:{input:function(e){e.target.composing||t.$set(t.formDataXml,"file_size",e.target.value)}}}),t._v(" "),e("upload-internal",{key:t.activeSubtab,attrs:{url:"import/xml","accepted-files":"xml","form-data":t.formDataXml,"dropzone-height":172},on:{success:t.onUploadSuccess,file:t.onUploadFile}}),t._v(" "),e("p",{staticClass:"text-center font-size-12 text-navy-lightest mt-5"},[t.formHasError("file_id")||t.formHasError("file_size")?e("span",{staticClass:"text-red"},[t._v("\n              "+t._s(t.formFieldError("file_id")||t.formFieldError("file_size"))+"\n            ")]):e("span",[t._v("\n              Slickplan supports WordPress, Google Sitemap, and Slickplan XML formats. More details in\n              "),e("link-help",{staticClass:"style-link font-weight-500",attrs:{id:"import_xml"}},[t._v("\n                help\n              ")])],1)]),t._v(" "),!t.formDataXml.file_id||"google"!==t.formDataXml.file_type&&"wordpress"!==t.formDataXml.file_type?t._e():e("div",["google"===t.formDataXml.file_type?e("field-select",{staticClass:"mt-4",attrs:{label:"Page label",options:[{value:"path",label:"File / directory name"},{value:"h1",label:"Header <h1> tag"},{value:"title",label:"Page <title> tag"}]},model:{value:t.formDataXml.cell_text,callback:function(e){t.$set(t.formDataXml,"cell_text",e)},expression:"formDataXml.cell_text"}}):t._e(),t._v(" "),e("div",{staticClass:"mt-5"},[e("span",{staticClass:"style-link font-size-14 font-weight-600",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.$parent.sidebarForm=t.formDataXml.file_type)}}},[t._v("View more options")])])],1)],1):"text"===t.activeSubtab?e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.formDataXml.file_id,expression:"formDataXml.file_id"},{name:"validate",rawName:"v-validate",value:"required_if:tab,text|integer|min:1",expression:"'required_if:tab,text|integer|min:1'"}],attrs:{type:"hidden",name:"file_id"},domProps:{value:t.formDataXml.file_id},on:{input:function(e){e.target.composing||t.$set(t.formDataXml,"file_id",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.formDataXml.file_size,expression:"formDataXml.file_size"},{name:"validate",rawName:"v-validate",value:"required_if:tab,text|integer",expression:"'required_if:tab,text|integer'"}],attrs:{type:"hidden",name:"file_size"},domProps:{value:t.formDataXml.file_size},on:{input:function(e){e.target.composing||t.$set(t.formDataXml,"file_size",e.target.value)}}}),t._v(" "),e("div",{staticClass:"text-center"},[e("field-radio-bar",{attrs:{alt:!0,radios:[{label:"Upload an existing file",value:"upload"},{label:"Copy and paste contents",value:"paste"}]},model:{value:t.formDataText.file_type,callback:function(e){t.$set(t.formDataText,"file_type",e)},expression:"formDataText.file_type"}})],1),t._v(" "),"upload"===t.formDataText.file_type?e("upload-internal",{key:t.activeSubtab,staticClass:"mt-5",attrs:{url:"import/txt","accepted-files":"txt","form-data":t.formDataText,"dropzone-height":117},on:{file:t.onUploadFile}}):e("div",{key:"text",staticClass:"mt-5 text-center field text-left"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.formDataText.file_content,expression:"formDataText.file_content"}],staticStyle:{height:"117px",resize:"none"},attrs:{readonly:t.isUploading,rows:"5",placeholder:"Paste the content here"},domProps:{value:t.formDataText.file_content},on:{input:function(e){e.target.composing||t.$set(t.formDataText,"file_content",e.target.value)}}})]),t._v(" "),e("p",{staticClass:"text-center font-size-12 text-navy-lightest mt-5"},[t.formHasError("file_id")||t.formHasError("file_size")?e("span",{staticClass:"text-red"},[t._v("\n              "+t._s(t.formFieldError("file_id")||t.formFieldError("file_size"))+"\n            ")]):e("span",[t._v("\n              Slickplan supports text files with hierarchical dashes.\n              "),e("span",{staticClass:"style-link font-weight-500",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSampleFileDownload.apply(null,arguments)}}},[t._v("Get a template")]),t._v("\n              or check\n              "),e("link-help",{staticClass:"style-link font-weight-500",attrs:{id:"import_txt"}},[t._v("\n                help\n              ")]),t._v("\n              for more info\n            ")],1)])],1):t._e()])],1)],1),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-space-between g-grid-bleed modal-buttons"},[e("div",{staticClass:"g-col-6"},[t.isActiveTabTeam?e("button",{staticClass:"is-flex -plain",staticStyle:{margin:"0"},attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onBackClick.apply(null,arguments))}}},[e("icon-font",{staticClass:"mr-3",attrs:{icon:"back-arrow"}}),t._v("\n        Back\n      ")],1):t._e()]),t._v(" "),e("div",{staticClass:"g-col-6 text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n        "+t._s(t.isLastStep?t.$trans("create_project"):"Continue")+"\n      ")])],1)])])},i=[function(){var t=this,e=t._self._c;return e("ul",[e("li",[t._v("A local Miami gym chain specializing in CrossFit")]),t._v(" "),e("li",[t._v("A university website emphasizing research and science programs")]),t._v(" "),e("li",[t._v("A pickup pickleball league")])])}]},85080:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-titlebar is-flex"},[e("ol",{staticClass:"tab-menu -narrow -alt"},[e("li",{class:{_active:"general"===t.activeTab},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.activeTab="general")}}},[t._v("\n        Project information\n      ")]),t._v(" "),e("li",{class:{_active:"team"===t.activeTab,_disabled:!t.$parent.canHaveContributors},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.activeTab=t.$parent.canHaveContributors?"team":"general")}}},[t._v("\n        Team members\n      ")])]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"modal-content modal-content-grid modal-create-diagram"},["general"===t.activeTab?e("div",{staticClass:"g-grid g-justify-space-between"},[e("div",{staticClass:"g-col-7"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:"Project name","field-error":t.formFieldError("name"),autocomplete:!1,autofocus:!0},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}}),t._v(" "),e("field-templates-diagram",{attrs:{"add-blank":!1,removable:!0},model:{value:t.formData.template,callback:function(e){t.$set(t.formData,"template",e)},expression:"formData.template"}})],1),t._v(" "),e("modal-project-upload-logo",{staticClass:"g-col-5",attrs:{image:t.formData.logo},on:{change:function(e){t.formData.logo=e}}})],1):"team"===t.activeTab?e("project-members",{attrs:{contributors:t.$parent.internalContributors,"show-permissions":"diagram","always-can-select":t.canManage,"min-height":95,"max-height":t.xWindowSize.height-350},on:{new:t.$parent.onContributorNew,select:t.$parent.onContributorSelect,remove:t.$parent.onContributorRemove}}):t._e()],1),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      Save\n    ")])],1)])},i=[]},39768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e(t.currentComponent,{key:t.currentComponent,tag:"component"}),t._v(" "),e("transition",{attrs:{name:"transition-modal-sidebar"}},["user"===t.sidebarForm?e("user-sidebar",{attrs:{value:t.newUserValue}}):"permissions"===t.sidebarForm&&t.canHaveContributors?e("permissions-sidebar",{attrs:{user:t.sidebarFormUser},on:{update:t.onContributorPermissionsUpdate}}):t._e()],1)],1)},i=[]},30292:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-titlebar is-flex"},[e("ol",{staticClass:"tab-menu -narrow -alt"},[e("li",{class:{_active:"general"===t.activeTab},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.activeTab="general")}}},[t._v("\n        Project information\n      ")]),t._v(" "),e("li",{class:{_active:"team"===t.activeTab,_disabled:!t.$parent.canHaveContributors},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.activeTab=t.$parent.canHaveContributors?"team":"general")}}},[t._v("\n        Team members\n      ")])]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"modal-content modal-content-grid modal-create-sitemap"},["general"===t.activeTab?e("div",{staticClass:"g-grid g-justify-space-between"},[e("div",{staticClass:"g-col-7 g-col-bleed-bottom"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"project_title",label:"Project name","field-error":t.formFieldError("project_title"),autocomplete:!1},model:{value:t.project.title,callback:function(e){t.$set(t.project,"title",e)},expression:"project.title"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"url:require_protocol",expression:"'url:require_protocol'"}],attrs:{name:"site_settings_url",type:"url",placeholder:"https://",label:t.$trans("website_url"),"field-error":t.formFieldError("site_settings_url"),autocomplete:!1},model:{value:t.siteSettings.url,callback:function(e){t.$set(t.siteSettings,"url",e)},expression:"siteSettings.url"}}),t._v(" "),e("field-checkable",{style:{visibility:t.siteSettings.url?null:"hidden"},attrs:{value:"1",size:"small"},model:{value:t.siteSettings.include_parent_slug,callback:function(e){t.$set(t.siteSettings,"include_parent_slug",e)},expression:"siteSettings.include_parent_slug"}},[t._v("\n          Hierarchical slug in pages URLs\n        ")])],1),t._v(" "),e("modal-project-upload-logo",{staticClass:"g-col-5 g-col-bleed-bottom",attrs:{image:t.project.logo},on:{change:function(e){t.project.logo=e}}}),t._v(" "),e("div",{staticClass:"g-col-12 g-col-bleed-top"},[e("hr",{staticClass:"spacer-300 -divider"}),t._v(" "),e("field-switch",{attrs:{label:"Number pages",description:"Assign all pages a unique numeric value",large:!0},model:{value:t.options.numbering,callback:function(e){t.$set(t.options,"numbering",e)},expression:"options.numbering"}}),t._v(" "),e("field-switch",{staticClass:"margin-large-top",attrs:{label:"Regular case text",description:"Choose regular or upper case page text",large:!0},model:{value:t.options.regular_case,callback:function(e){t.$set(t.options,"regular_case",e)},expression:"options.regular_case"}}),t._v(" "),e("hr",{staticClass:"spacer-300 -divider"}),t._v(" "),e("p",[t._v("Content Languages")]),t._v(" "),e("p",{staticClass:"font-size-14 text-navy-lightest mt-2"},[t._v("\n          Select a primary language and add additional ones to your project\n        ")]),t._v(" "),e("hr",{staticClass:"spacer-100"}),t._v(" "),e("field-select",{staticStyle:{width:"322px"},attrs:{label:"Default language",placeholder:"Select language",options:t.allLanguages},model:{value:t.siteSettings.default_language,callback:function(e){t.$set(t.siteSettings,"default_language",e)},expression:"siteSettings.default_language"}}),t._v(" "),t.siteSettings.languages.length>0?e("label",{staticClass:"label mt-4"},[t._v("Aditional "+t._s(t.siteSettings.languages.length>1?"languages":"language"))]):t._e(),t._v(" "),t._l(t.siteSettings.languages,(function(n){return e("div",{key:n.id,staticClass:"is-flex -with-gap mt-2"},[e("field-select",{staticStyle:{width:"322px"},attrs:{placeholder:"Select language",options:t.allLanguages},model:{value:n.value,callback:function(e){t.$set(n,"value",e)},expression:"langItem.value"}}),t._v(" "),e("icon-font",{staticClass:"clickable text-red",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDeleteLanguage(n.value)}}})],1)})),t._v(" "),t.canAddNewLanguage?e("div",{staticClass:"is-flex -with-half-gap style-link font-size-14 mt-5",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAddLanguage.apply(null,arguments)}}},[e("icon-font",{staticClass:"font-size-10",attrs:{icon:"plus-sm"}}),t._v(" "),e("span",[t._v("Add another language")])],1):t._e()],2)],1):"team"===t.activeTab?e("project-members",{attrs:{contributors:t.$parent.internalContributors,"show-permissions":"sitemap","always-can-select":t.canManage,"min-height":270,"max-height":t.xWindowSize.height-350},on:{new:t.$parent.onContributorNew,select:t.$parent.onContributorSelect,remove:t.$parent.onContributorRemove,permissions:t.$parent.onContributorPermissionsOpen}}):t._e()],1),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      Save\n    ")])],1)])},i=[]},81736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-overlay"},[e("form",{staticClass:"sidebar -new",staticStyle:{width:"450px"},attrs:{autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-titlebar is-flex"},[e("p",[t._v("Additional options")]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"_content"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[void 0!==t.internalFormData.filter_dirty_urls?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.filter_dirty_urls,callback:function(e){t.$set(t.internalFormData,"filter_dirty_urls",e)},expression:"internalFormData.filter_dirty_urls"}},[t._v("\n          Don’t follow query string variables\n        ")]):t._e(),t._v(" "),void 0!==t.internalFormData.add_links?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.add_links,callback:function(e){t.$set(t.internalFormData,"add_links",e)},expression:"internalFormData.add_links"}},[t._v("\n          Add links\n        ")]):t._e(),t._v(" "),void 0!==t.internalFormData.meta_note?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.meta_note,callback:function(e){t.$set(t.internalFormData,"meta_note",e)},expression:"internalFormData.meta_note"}},[t._v("\n          Add meta description note\n        ")]):t._e(),t._v(" "),t.xAccountData.trial||void 0===t.internalFormData.limit?t._e():e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.limit,callback:function(e){t.$set(t.internalFormData,"limit",e)},expression:"internalFormData.limit"}},[t._v("\n          Limit number of pages\n        ")]),t._v(" "),!t.xAccountData.trial&&t.internalFormData.limit?e("div",{staticClass:"indent-options",staticStyle:{width:"120px"}},[e("field-input",{attrs:{type:"number",min:"1",max:t.$parent.crawlerLimit},model:{value:t.internalFormData.pages_limit,callback:function(e){t.$set(t.internalFormData,"pages_limit",e)},expression:"internalFormData.pages_limit"}})],1):t._e(),t._v(" "),void 0!==t.internalFormData.filters?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.filters,callback:function(e){t.$set(t.internalFormData,"filters",e)},expression:"internalFormData.filters"}},[t._v("\n          Filter directories and files\n        ")]):t._e(),t._v(" "),t.internalFormData.filters?e("div",{staticClass:"indent-options g-grid"},[e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-bottom g-col-bleed-half-x g-col-bleed-left"},[e("div",{staticClass:"field textarea comment-field"},[e("label",[t._v("Designate directories")]),t._v(" "),e("field-textarea",{staticStyle:{height:"62px"},attrs:{placeholder:"/example/*\n/about/*"},model:{value:t.internalFormData.filter_follow,callback:function(e){t.$set(t.internalFormData,"filter_follow",e)},expression:"internalFormData.filter_follow"}})],1)]),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-bottom g-col-bleed-half-x g-col-bleed-right"},[e("div",{staticClass:"field textarea comment-field"},[e("label",[t._v("Omit directories (exclude)")]),t._v(" "),e("field-textarea",{staticStyle:{height:"62px"},attrs:{placeholder:"/example/subdir/*\n/about/company"},model:{value:t.internalFormData.filter_exclude,callback:function(e){t.$set(t.internalFormData,"filter_exclude",e)},expression:"internalFormData.filter_exclude"}})],1)])]):t._e(),t._v(" "),void 0!==t.internalFormData.basic_auth?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.basic_auth,callback:function(e){t.$set(t.internalFormData,"basic_auth",e)},expression:"internalFormData.basic_auth"}},[t._v("\n          Use Basic HTTP Authentication\n        ")]):t._e(),t._v(" "),t.internalFormData.basic_auth?e("div",{staticClass:"indent-options g-grid"},[e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-bottom g-col-bleed-half-x g-col-bleed-left"},[e("field-input",{attrs:{placeholder:"Username"},model:{value:t.internalFormData.basic_auth_login,callback:function(e){t.$set(t.internalFormData,"basic_auth_login",e)},expression:"internalFormData.basic_auth_login"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-top g-col-bleed-bottom g-col-bleed-half-x g-col-bleed-right"},[e("field-input",{attrs:{type:"password",maxlength:"255",placeholder:"Password",autocomplete:"new-password"},model:{value:t.internalFormData.basic_auth_password,callback:function(e){t.$set(t.internalFormData,"basic_auth_password",e)},expression:"internalFormData.basic_auth_password"}})],1)]):t._e(),t._v(" "),void 0!==t.internalFormData.ignore_robots_txt?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.ignore_robots_txt,callback:function(e){t.$set(t.internalFormData,"ignore_robots_txt",e)},expression:"internalFormData.ignore_robots_txt"}},[t._v("\n          Ignore\n          "),e("code",[t._v("robots.txt")]),t._v("\n          file rules\n        ")]):t._e(),t._v(" "),void 0!==t.internalFormData.ignore_cookies?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.ignore_cookies,callback:function(e){t.$set(t.internalFormData,"ignore_cookies",e)},expression:"internalFormData.ignore_cookies"}},[t._v("\n          Ignore HTTP Cookies\n        ")]):t._e(),t._v(" "),void 0!==t.internalFormData.custom_user_agent?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.custom_user_agent,callback:function(e){t.$set(t.internalFormData,"custom_user_agent",e)},expression:"internalFormData.custom_user_agent"}},[t._v("\n          Use a custom User Agent string\n        ")]):t._e(),t._v(" "),t.internalFormData.custom_user_agent?e("div",{staticClass:"indent-options"},[e("field-input",{attrs:{placeholder:"User Agent ID"},model:{value:t.internalFormData.custom_user_agent_string,callback:function(e){t.$set(t.internalFormData,"custom_user_agent_string",e)},expression:"internalFormData.custom_user_agent_string"}})],1):t._e(),t._v(" "),void 0!==t.internalFormData.import_metadata?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.import_metadata,callback:function(e){t.$set(t.internalFormData,"import_metadata",e)},expression:"internalFormData.import_metadata"}},[t._v("\n          Import SEO metadata to Content Planner\n        ")]):t._e(),t._v(" "),void 0!==t.internalFormData.parse_javascript?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.parse_javascript,callback:function(e){t.$set(t.internalFormData,"parse_javascript",e)},expression:"internalFormData.parse_javascript"}},[t._v("\n          Render JavaScript content\n        ")]):t._e()],1),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small"},[t._v("\n          Save\n        ")])],1)],1)])])},i=[]},38862:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-overlay"},[e("div",{staticClass:"sidebar -new"},[e("div",{staticClass:"modal-titlebar is-flex"},[e("p",{staticClass:"is-flex -with-half-gap"},[t._v("\n        Custom role\n        "),e("link-help",{staticClass:"style-link",attrs:{id:"user_roles"}},[e("icon-font",{staticClass:"text-blue",attrs:{icon:"question"}})],1)],1),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"_content"},[t._l(t.permissions,(function(n,r){return e("field-checkable",{key:r,staticStyle:{height:"auto"},attrs:{placeholder:!0,checked:t.isChecked(r)},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onToggle(r)}},scopedSlots:t._u([{key:"html",fn:function(){return[e("p",{staticClass:"text-navy-lightest font-size-14 line-height-122",staticStyle:{padding:"0.5em 0 24px 30px"}},[t._v("\n            "+t._s(n.description)+"\n          ")])]},proxy:!0}],null,!0)},[t._v("\n        "+t._s(n.name)+"\n        ")])})),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small",nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onSubmit.apply(null,arguments))}}},[t._v("\n          Save\n        ")])],1)],2)])])},i=[]},3648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-overlay"},[e("form",{staticClass:"sidebar -new",attrs:{"data-vv-scope":t.formHelper.scope,autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-titlebar is-flex"},[e("p",[t._v("Sitemap templates")]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"_content"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[e("p",{staticClass:"font-weight-500"},[t._v("\n          Select template\n        ")]),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),t._l(t.xPredefinedTemplates,(function(n){return e("field-checkable",{key:n.key,staticClass:"mt-5",attrs:{type:"radio",name:"template",value:n.key,size:"smallest"},scopedSlots:t._u([{key:"html",fn:function(){return[e("icon-font",{staticClass:"ml-2 font-size-13 clickable style-link",attrs:{icon:"eye-o"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openTemplateDemo(n.key)}}})]},proxy:!0}],null,!0),model:{value:t.templateId,callback:function(e){t.templateId=e},expression:"templateId"}},[t._v("\n          "+t._s(n.value)+"\n          ")])}))],2),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n          Select\n        ")])],1)],1)])])},i=[]},8460:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-overlay"},[e("form",{staticClass:"sidebar -new",staticStyle:{width:"450px"},attrs:{autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-titlebar is-flex"},[e("p",[t._v("Additional options")]),t._v(" "),e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClose.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"_content"},[e("scrollable",{attrs:{height:t.scrollableHeight}},[e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.add_links,callback:function(e){t.$set(t.internalFormData,"add_links",e)},expression:"internalFormData.add_links"}},[t._v("\n          Add links\n        ")]),t._v(" "),void 0!==t.internalFormData.import_content?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.import_content,callback:function(e){t.$set(t.internalFormData,"import_content",e)},expression:"internalFormData.import_content"}},[t._v("\n          Import page content to Content Planner\n        ")]):t._e(),t._v(" "),void 0!==t.internalFormData.import_metadata?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.import_metadata,callback:function(e){t.$set(t.internalFormData,"import_metadata",e)},expression:"internalFormData.import_metadata"}},[t._v("\n          Import SEO metadata to Content Planner\n        ")]):t._e(),t._v(" "),void 0!==t.internalFormData.set_project_settings?e("field-checkable",{attrs:{size:"small",value:"1"},model:{value:t.internalFormData.set_project_settings,callback:function(e){t.$set(t.internalFormData,"set_project_settings",e)},expression:"internalFormData.set_project_settings"}},[t._v("\n          Update project settings (Site Title and URL)\n        ")]):t._e()],1),t._v(" "),e("div",{staticClass:"text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onClose.apply(null,arguments))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small"},[t._v("\n          Save\n        ")])],1)],1)])])},i=[]},81764:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("label",{staticClass:"label"},[t._v("\n    Project logo ("+t._s(t.$trans("messages.logo_recommendation"))+")\n  ")]),t._v(" "),e("div",{staticClass:"upload-area cursor-pointer",class:{"-active":t.uploadDropzoneStatus,"-uploaded":!t.uploadFileStatus&&t.logoSrc},attrs:{id:t.dropzoneId},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.uploadAreaClick.apply(null,arguments)}}},[t.uploadFileStatus?e("icon-font",{attrs:{icon:"loading"}}):t.logoSrc?e("div",{staticClass:"_img",style:t.uploadAreaCss}):e("div",{staticClass:"non-clickable"},[e("p",{staticClass:"font-size-14 font-weight-600 mb-4"},[t._v("\n        Select a logo or drag & drop\n      ")]),t._v(" "),e("span",{staticClass:"button -secondary -smaller"},[t._v("Upload logo")])]),t._v(" "),t.logoSrc?e("icon-font",{staticClass:"clickable",attrs:{icon:"trash"}}):t._e()],1),t._v(" "),t.uploadFileError?e("p",{staticClass:"text-center line-height-144 mt-4 font-size-12 text-red"},[t._v("\n    "+t._s(t.uploadFileError)+"\n  ")]):t._e()])},i=[]},38396:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:t.$trans("name"),"field-error":t.formFieldError("name"),autocomplete:!1,autofocus:!0},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}}),t._v(" "),e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.contributors,callback:function(e){t.$set(t.formData,"contributors",e)},expression:"formData.contributors"}},[t._v("\n      Include Contributors\n    ")]),t._v(" "),e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.comments,callback:function(e){t.$set(t.formData,"comments",e)},expression:"formData.comments"}},[t._v("\n      Clone Comments\n    ")])],1),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      "+t._s(t.$trans("create_project"))+"\n    ")])],1)])},i=[]},17876:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal-content modal-content-grid",staticStyle:{"padding-top":"0"}},["full"===t.type?e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12 g-col-bleed-y"},[e("ol",{staticClass:"tab-menu -narrow"},[t._l(t.tabs,(function(n){return e("li",{class:{_active:t.tab===n.id},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onTabClick(n)}}},[t._v("\n            "+t._s(n.name)+"\n          ")])})),t._v(" "),t.canModifySettings?e("li",{staticClass:"_side",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.currentSidePanel="settings")}}},[t._m(0),t._v("\n            Share settings\n          ")],1):t._e()],2),t._v(" "),e("hr",{staticClass:"bg-gray-darker"})])]):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:"url"===t.tab||"simple"===t.type,expression:"tab === 'url' || type === 'simple'"}]},["full"===t.type?e("hr",{staticClass:"spacer-75"}):t._e(),t._v(" "),e("div",{staticClass:"g-grid g-align-end"},[e("div",{class:["simple"===t.type?"g-col-8":"g-col-9","g-col-bleed-bottom"]},[e("field-input",{attrs:{name:"url",readonly:"",value:t.projectShareLink,label:t.projectTitle,autocomplete:!1,autoselect:!0}})],1),t._v(" "),e("div",{class:["simple"===t.type?"g-col-4":"g-col-3","g-col-bleed-bottom","g-col-bleed-left"]},[e("span",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.projectShareLink,expression:"projectShareLink",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onClipboardCopy,expression:"onClipboardCopy",arg:"success"}],staticClass:"button -primary -small -block"},[t._v("\n            "+t._s(t.copyLink)+"\n          ")])]),t._v(" "),e("div",{staticClass:"g-col-12 g-col-bleed-y"},[e("p",{staticClass:"font-size-13 line-height-300"},[e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openInWindow.apply(null,arguments)}}},[t._v("Open in new window")])])])]),t._v(" "),"full"===t.type?e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12 mt-4 mb-5"},[e("div",{staticClass:"is-flex"},[t._m(1),t._v(" "),t._l(t.socialMethods,(function(n){return e("has-tooltip",{key:n.id,staticClass:"cursor-pointer ml-4",attrs:{tooltip:n.tooltip},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSocialClick(n)}}},[e("image-tag",{staticStyle:{width:"25px"},attrs:{src:n.image}})],1)}))],2)])]):e("hr",{staticClass:"spacer-75"})]),t._v(" "),"full"===t.type?e("div",{directives:[{name:"show",rawName:"v-show",value:"email"===t.tab,expression:"tab === 'email'"}]},[e("form-email",{attrs:{text:t.text,subject:t.subject}})],1):t._e()]),t._v(" "),e("transition",{attrs:{name:"transition-modal-sidebar"}},["full"===t.type&&t.currentSidePanel?e("div",{staticClass:"sidebar-overlay"},[e("div",{staticClass:"sidebar"},[e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.currentSidePanel=!1)}}}),t._v(" "),e("form-"+t.currentSidePanel,{tag:"component",staticClass:"sidebar-content",attrs:{text:t.text,subject:t.subject}})],1)]):t._e()])],1)},i=[function(){return(0,this._self._c)("icon-font",{staticClass:"font-size-13",staticStyle:{"margin-right":"0.25em"},attrs:{icon:"gear-o"}})},function(){var t=this._self._c;return t("div",[t("b",[this._v("Share link via:")])])}]},59912:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.displayTitle?e("sidebar-title",{attrs:{title:t.serviceData.name?t.$trans("share_on_service",{service:t.serviceData.name}):"",icon:t.serviceData.image}}):t._e(),t._v(" "),e("form",{directives:[{name:"show",rawName:"v-show",value:!0===t.formLoaded&&(!t.connected||"connect"===t.stepStatus||"oauth"===t.stepStatus),expression:"formLoaded === true && (!connected || stepStatus === 'connect' || stepStatus === 'oauth')"}],attrs:{"data-vv-scope":"version"},on:{submit:function(e){e.preventDefault(),t.connected=!0}}},[e("field-radio-bar",{attrs:{radios:t.versions},model:{value:t.version,callback:function(e){t.version=e},expression:"version"}}),t._v(" "),"classic"===t.version?e("div",{staticStyle:{"padding-top":"1em"}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"token",label:t.$trans("auth_token"),"field-error":t.formFieldError("token","version"),spellcheck:!1,autocomplete:!1},model:{value:t.token,callback:function(e){t.token=e},expression:"token"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|alpha_num",expression:"'required|alpha_num'"}],attrs:{name:"subdomain",label:t.$trans("subdomain"),"field-error":t.formFieldError("subdomain","version"),"label-append":".BASECAMPHQ.COM",spellcheck:!1,autocomplete:!1},model:{value:t.subdomain,callback:function(e){t.subdomain=e},expression:"subdomain"}})],1):t._e(),t._v(" "),e("hr",{staticClass:"spacer-75"})],1),t._v(" "),!0===t.formLoaded?e("field-switch",{attrs:{label:t.$trans("enable_service_integration",{name:t.serviceData.name})},model:{value:t.connected,callback:function(e){t.connected=e},expression:"connected"}},["connect"===t.stepStatus||"disconnect"===t.stepStatus?e("icon-font",{staticClass:"text-gray-darkest float-right",staticStyle:{margin:".34em 0 0 1em"},attrs:{icon:"loading"}}):t._e()],1):t._e(),t._v(" "),!1===t.formLoaded?e("div",{staticClass:"field"},[e("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"loading"}})],1):t._e(),t._v(" "),!0===t.formLoaded&&t.connected&&"connect"!==t.stepStatus&&"disconnect"!==t.stepStatus&&"oauth"!==t.stepStatus?e("form",{staticStyle:{"margin-top":"1em"},attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},["oauth"===t.version&&t.accounts.length>1?e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"account",options:t.accounts,"option-value":"id","option-label":"name",placeholder:t.$trans("select_account"),"field-error":t.formFieldError("account")},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}}):"oauth"!==t.version||t.accounts.length?t._e():e("div",{staticClass:"field font-size-14 text-red"},[t._v("\n      No accounts found\n    ")]),t._v(" "),"account"===t.stepStatus?e("div",{staticClass:"field text-center"},[e("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"loading"}})],1):("classic"===t.version||t.formData.account)&&t.projects.length?e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"project",options:t.projects,"option-value":"id","option-label":"name",placeholder:t.$trans("select_project"),"field-error":t.formFieldError("project")},model:{value:t.formData.project,callback:function(e){t.$set(t.formData,"project",e)},expression:"formData.project"}}):t.formData.account&&!t.projects.length?e("div",{staticClass:"field font-size-14 text-red"},[t._v("\n      No projects found\n    ")]):t._e(),t._v(" "),"project"===t.stepStatus?e("div",{staticClass:"field text-center"},[e("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"loading"}})],1):t.formData.project?e("div",{staticStyle:{"margin-top":"1em"}},["classic"===t.version&&t.categories.length?e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"categories",options:t.categories,"option-value":"id","option-label":"name",placeholder:t.$trans("select_category")},model:{value:t.formData.category,callback:function(e){t.$set(t.formData,"category",e)},expression:"formData.category"}}):t._e(),t._v(" "),t.recipients.length?e("field-select",{attrs:{name:"recipients",options:t.recipients,"option-value":"id","option-label":"name",placeholder:t.$trans("select_recipients"),multiple:!0},model:{value:t.formData.recipients,callback:function(e){t.$set(t.formData,"recipients",e)},expression:"formData.recipients"}}):t._e(),t._v(" "),e("field-wysiwyg",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"with-border",attrs:{name:"message","field-error":t.formFieldError("message")},model:{value:t.formData.message,callback:function(e){t.$set(t.formData,"message",e)},expression:"formData.message"}}),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("div",{staticClass:"text-right"},[t.formData.message!==t.defaultShareMessage?e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),void(t.formData.message=t.defaultShareMessage))}}},[t._v("\n          "+t._s(t.$trans("reset"))+"\n        ")]):t._e(),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-submitted":t.formHelper.isSubmitted,"is-disabled":!t.canSubmit}},[t._v("\n          "+t._s(t.$trans("send"))+"\n        ")])],1)],1):t._e()],1):t._e()],1)},i=[]},32672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("project-members",{attrs:{contributors:t.formData.contributors,"always-can-select":!0,"show-selected-users":!1,"max-height":400},on:{select:t.addContributor,remove:t.removeContributor}}),t._v(" "),e("form",{staticClass:"g-grid",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-select",{staticClass:"field-tags g-col-12 tags-email",attrs:{name:"emails",taggable:20,options:t.formData.emails,value:t.formData.emails,placeholder:"Type email address and press Enter (max 20)"},on:{tag:t.onAddEmail,remove:t.onRemoveEmail}}),t._v(" "),e("div",{staticClass:"g-col-12"},[e("field-wysiwyg",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"with-border",attrs:{name:"message","field-error":t.formFieldError("message")},model:{value:t.formData.message,callback:function(e){t.$set(t.formData,"message",e)},expression:"formData.message"}})],1),t._v(" "),e("div",{staticClass:"g-col-12 text-right"},[t.formData.message!==t.defaultShareMessage?e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),void(t.formData.message=t.defaultShareMessage))}}},[t._v("\n        "+t._s(t.$trans("reset"))+"\n      ")]):t._e(),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-submitted":t.formHelper.isSubmitted,"is-disabled":!t.canSubmit}},[t._v("\n        "+t._s(t.$trans("share_sitemap"))+"\n      ")])],1)],1)],1)},i=[]},4256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("p",[t._v("Share Settings")]),t._v(" "),e("div",{staticClass:"margin-large-top"},[e("field-switch",{attrs:{label:"Protect this with a password"},model:{value:t.settings.password,callback:function(e){t.$set(t.settings,"password",e)},expression:"settings.password"}},[e("svg-loading-circle",{staticClass:"ml-2",attrs:{status:Boolean(t.isSaving.password),"class-saving":"text-gray-darkest","class-saved":"text-green"}})],1),t._v(" "),e("transition",{attrs:{mode:"out-in",name:"transition-fade-slide"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.settings.password,expression:"settings.password"}],staticClass:"mt-1 ml-5"},[t.hasSavedPassword?e("div",[e("b",{staticClass:"text-gray-darkest"},[t._v("•••••")]),t._v(" "),e("span",{staticClass:"font-size-13 style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.hasSavedPassword=!1)}}},[t._v("Update")])]):e("form",{staticClass:"is-flex -with-half-gap",on:{submit:function(e){return e.preventDefault(),t.savePassword.apply(null,arguments)}}},[e("field-input",{staticClass:"-compact",attrs:{name:"password",type:"password",minlength:"1",maxlength:"48",placeholder:"Enter password",autocomplete:"new-password",autofocus:!0},model:{value:t.settings.passwordText,callback:function(e){t.$set(t.settings,"passwordText",e)},expression:"settings.passwordText"}}),t._v(" "),e("button-submit",{staticClass:"-smallest -block",attrs:{"is-submitting":Boolean(t.settings.password&&t.isSaving.password),"is-disabled":!t.settings.passwordText}},[t._v("\n            Save\n          ")])],1)])])],1),t._v(" "),e("div",{staticClass:"margin-medium-top"},[e("field-switch",{attrs:{label:"Enable project comments"},model:{value:t.settings.comments,callback:function(e){t.$set(t.settings,"comments",e)},expression:"settings.comments"}},[e("svg-loading-circle",{staticClass:"ml-2",attrs:{status:Boolean(t.isSaving.comments||t.isSaving.commentsReadOnly),"class-saving":"text-gray-darkest","class-saved":"text-green"}})],1),t._v(" "),e("transition",{attrs:{mode:"out-in",name:"transition-fade-slide"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.settings.comments,expression:"settings.comments"}],staticClass:"mt-2 ml-5"},[e("field-checkable",{attrs:{size:"smaller"},model:{value:t.settings.commentsReadOnly,callback:function(e){t.$set(t.settings,"commentsReadOnly",e)},expression:"settings.commentsReadOnly"}},[t._v("\n          Read only commenting\n        ")])],1)])],1),t._v(" "),t._l(t.shareOptions,(function(n){return e("div",{key:n.modelKey,staticClass:"margin-medium-top"},[e("field-switch",{attrs:{label:n.label},model:{value:t.settings[n.modelKey],callback:function(e){t.$set(t.settings,n.modelKey,e)},expression:"settings[item.modelKey]"}},[e("svg-loading-circle",{staticClass:"ml-2",attrs:{status:Boolean(t.isSaving[n.modelKey]),"class-saving":"text-gray-darkest","class-saved":"text-green"}})],1),t._v(" "),n.options?e("transition",{attrs:{mode:"out-in",name:"transition-fade-slide"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.settings[n.modelKey],expression:"settings[item.modelKey]"}],staticClass:"mt-2 ml-5"},[e("div",{staticClass:"field fields-vertical is-flex"},t._l(n.options,(function(r){return e("field-checkable",{key:r.value,attrs:{name:n.modelKey,type:"radio",size:"smallest",value:r.value},model:{value:t.settings[n.modelValue],callback:function(e){t.$set(t.settings,n.modelValue,e)},expression:"settings[item.modelValue]"}},[t._v("\n            "+t._s(r.label||r.value)+"\n          ")])})),1)])]):t._e()],1)}))],2)},i=[]},202:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.displayTitle?e("sidebar-title",{attrs:{title:t.serviceData.name?t.$trans("share_on_service",{service:t.serviceData.name}):"",icon:t.serviceData.image}}):t._e(),t._v(" "),!0===t.formLoaded?e("field-switch",{attrs:{label:t.$trans("enable_service_integration",{name:t.serviceData.name})},model:{value:t.connected,callback:function(e){t.connected=e},expression:"connected"}},["connect"===t.stepStatus||"disconnect"===t.stepStatus?e("icon-font",{staticClass:"text-gray-darkest float-right",staticStyle:{margin:".34em 0 0 1em"},attrs:{icon:"loading"}}):t._e()],1):t._e(),t._v(" "),!1===t.formLoaded||"form"===t.stepStatus?e("div",{staticClass:"field"},[e("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"loading"}})],1):t._e(),t._v(" "),!0===t.formLoaded&&t.connected&&t.channels.length?e("form",{staticStyle:{"margin-top":"1em"},attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"channel",options:t.channels,"option-value":"id","option-label":"name",placeholder:t.$trans("select_channel"),"field-error":t.formFieldError("channel")},model:{value:t.formData.channel,callback:function(e){t.$set(t.formData,"channel",e)},expression:"formData.channel"}}),t._v(" "),t.formData.channel?e("div",{staticStyle:{"margin-top":"1em"}},[e("field-wysiwyg",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"with-border",attrs:{name:"message","field-error":t.formFieldError("message")},model:{value:t.formData.message,callback:function(e){t.$set(t.formData,"message",e)},expression:"formData.message"}}),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("div",{staticClass:"text-right"},[t.formData.message!==t.defaultShareMessage?e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),void(t.formData.message=t.defaultShareMessage))}}},[t._v("\n          "+t._s(t.$trans("reset"))+"\n        ")]):t._e(),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-submitted":t.formHelper.isSubmitted,"is-disabled":!t.canSubmit}},[t._v("\n          "+t._s(t.$trans("send"))+"\n        ")])],1)],1):t._e()],1):t._e()],1)},i=[]},76288:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.displayTitle?e("sidebar-title",{attrs:{title:t.serviceData.name?t.$trans("share_on_service",{service:t.serviceData.name}):"",icon:t.serviceData.image}}):t._e(),t._v(" "),e("form",{directives:[{name:"show",rawName:"v-show",value:!0===t.formLoaded&&(!t.connected||"connect"===t.stepStatus),expression:"formLoaded === true && (!connected || stepStatus === 'connect')"}],attrs:{"data-vv-scope":"apikey"},on:{submit:function(e){e.preventDefault(),t.connected=!0}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"key",label:t.$trans("api_key"),"field-error":t.formFieldError("key","apikey"),autocomplete:!1},model:{value:t.apiKey,callback:function(e){t.apiKey=e},expression:"apiKey"}}),t._v(" "),e("hr",{staticClass:"spacer-75"})],1),t._v(" "),!0===t.formLoaded?e("field-switch",{attrs:{label:t.$trans("enable_service_integration",{name:t.serviceData.name})},model:{value:t.connected,callback:function(e){t.connected=e},expression:"connected"}},["connect"===t.stepStatus||"disconnect"===t.stepStatus?e("icon-font",{staticClass:"text-gray-darkest float-right",staticStyle:{margin:".34em 0 0 1em"},attrs:{icon:"loading"}}):t._e()],1):t._e(),t._v(" "),!1===t.formLoaded?e("div",{staticClass:"field"},[e("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"loading"}})],1):t._e(),t._v(" "),!0===t.formLoaded&&t.connected&&t.projects.length?e("form",{staticStyle:{"margin-top":"1em"},attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"project",options:t.projects,"option-value":"id","option-label":"name",placeholder:t.$trans("select_project"),"field-error":t.formFieldError("project")},model:{value:t.formData.project,callback:function(e){t.$set(t.formData,"project",e)},expression:"formData.project"}}),t._v(" "),t.formData.project&&!t.categories.length?e("div",{staticClass:"field text-center"},[e("icon-font",{staticClass:"text-gray-darkest",attrs:{icon:"loading"}})],1):t.categories.length?e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"category",options:t.categories,"option-value":"id","option-label":"name",placeholder:t.$trans("select_category"),"field-error":t.formFieldError("category")},model:{value:t.formData.category,callback:function(e){t.$set(t.formData,"category",e)},expression:"formData.category"}}):t._e(),t._v(" "),t.categories.length&&t.formData.category?e("div",{staticStyle:{"margin-top":"1em"}},[t.recipients?e("field-select",{attrs:{name:"recipients",options:t.recipients,"option-value":"id","option-label":"name",placeholder:t.$trans("select_recipients"),multiple:!0},model:{value:t.formData.recipients,callback:function(e){t.$set(t.formData,"recipients",e)},expression:"formData.recipients"}}):t._e(),t._v(" "),e("field-wysiwyg",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"with-border",attrs:{name:"message","field-error":t.formFieldError("message")},model:{value:t.formData.message,callback:function(e){t.$set(t.formData,"message",e)},expression:"formData.message"}}),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("div",{staticClass:"text-right"},[t.formData.message!==t.defaultShareMessage?e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),void(t.formData.message=t.defaultShareMessage))}}},[t._v("\n          "+t._s(t.$trans("reset"))+"\n        ")]):t._e(),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-submitted":t.formHelper.isSubmitted,"is-disabled":!t.canSubmit}},[t._v("\n          "+t._s(t.$trans("send"))+"\n        ")])],1)],1):t._e()],1):t._e()],1)},i=[]},63860:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope,autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content modal-content-grid"},[e("div",{staticClass:"g-grid g-justify-space-between g-align-top"},[e("div",{staticClass:"g-col-6 g-col-bleed-half-y"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"first_name",label:t.$trans("first_name"),"field-error":t.formFieldError("first_name"),autocomplete:!1},model:{value:t.formData.first_name,callback:function(e){t.$set(t.formData,"first_name",e)},expression:"formData.first_name"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-half-y"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"last_name",label:t.$trans("last_name"),"field-error":t.formFieldError("last_name"),autocomplete:!1},model:{value:t.formData.last_name,callback:function(e){t.$set(t.formData,"last_name",e)},expression:"formData.last_name"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-half-top"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|email",expression:"'required|email'"}],attrs:{name:"email",type:"email",label:t.$trans("email_address"),"field-error":t.formFieldError("email"),autocomplete:!1,maxlength:"255"},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-half-top"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"min:7|max:48",expression:"'min:7|max:48'"}],attrs:{name:"password",type:"password",minlength:"7",maxlength:"48",label:"Password (optional)","field-error":t.formFieldError("password"),autocomplete:"new-password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),t._v(" "),e("div",{staticClass:"g-col-6"},[e("field-radio-bar",{attrs:{radios:t.userTypes},model:{value:t.formData.user_type,callback:function(e){t.$set(t.formData,"user_type",e)},expression:"formData.user_type"}})],1),t._v(" "),e("div",{staticClass:"g-col-12 g-col-bleed-bottom",staticStyle:{height:"99px"}},[t.formData.user_type===t.constants.USER_TYPE_CONTRIBUTOR?e("field-checkable",{key:"create_sitemaps",attrs:{value:"create_sitemaps",size:"small"},model:{value:t.formData.permissions,callback:function(e){t.$set(t.formData,"permissions",e)},expression:"formData.permissions"}},[t._v("\n          "+t._s(t.$trans("permission_create_projects"))+"\n        ")]):t._e(),t._v(" "),t.formData.user_type===t.constants.USER_TYPE_CONTRIBUTOR?e("field-checkable",{key:"full_file_library",attrs:{value:"full_file_library",size:"small"},model:{value:t.formData.permissions,callback:function(e){t.$set(t.formData,"permissions",e)},expression:"formData.permissions"}},[t._v("\n          "+t._s(t.$trans("permission_viewing_files"))+"\n        ")]):t._e(),t._v(" "),t.formData.user_type===t.constants.USER_TYPE_ADMINISTRATOR?e("field-checkable",{key:"payment",attrs:{value:"payment",size:"small"},model:{value:t.formData.permissions,callback:function(e){t.$set(t.formData,"permissions",e)},expression:"formData.permissions"}},[t._v("\n          "+t._s(t.$trans("permission_payment"))+"\n        ")]):t._e(),t._v(" "),e("field-checkable",{key:"view_invoices",attrs:{value:"view_invoices",size:"small"},model:{value:t.formData.permissions,callback:function(e){t.$set(t.formData,"permissions",e)},expression:"formData.permissions"}},[t._v("\n          "+t._s(t.$trans("permission_invoices"))+"\n        ")])],1)])]),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[t.member&&(t.member.last_login||t.formData.user_type!==t.constants.USER_TYPE_OWNER&&t.member.is_active)?e("button",{staticClass:"-plain float-left text-gray-darkest",class:{"non-clickable":t.member.last_login},staticStyle:{margin:"0.75em 0 0"},attrs:{type:"reset",disabled:t.member.last_login||t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.resendInvitation.apply(null,arguments))}}},[t._v("\n      "+t._s(t.member.last_login?"Last seen: ".concat(t.member.last_login):"Resend invitation email")+"\n    ")]):t._e(),t._v(" "),e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      "+t._s(t.member?t.$trans("save_changes"):t.$trans("add_new_user"))+"\n    ")])],1)])},i=[]},5556:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.isLoaded?e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[e("p",{staticClass:"font-size-13"},[t._v("\n        Templates will be duplicated. Changes made to them in this project will not affect the originals.\n      ")]),t._v(" "),e("div",{staticStyle:{"margin-top":"1em"}},[e("ol",{staticClass:"tab-menu -narrow"},[t.isLoaded&&t.projects.length?e("li",{class:{_active:"projects"===t.tab},on:{click:function(e){t.tab="projects"}}},[t._v("\n            Projects\n          ")]):t._e(),t._v(" "),e("li",{class:{_active:"default"===t.tab},on:{click:function(e){t.tab="default"}}},[t._v("\n            Default Templates\n          ")])])]),t._v(" "),e("div",{staticClass:"modal-template-select",class:{"-cols":"default"!==t.tab&&t.sitemapTemplates}},[e("scrollable",{directives:[{name:"show",rawName:"v-show",value:t.sitemapTemplates,expression:"sitemapTemplates"}],staticClass:"_templates",attrs:{"min-height":t.minScrollableHeight,"max-height":t.maxScrollableHeight}},[e("p",{staticClass:"font-size-16 font-weight-500"},[t._v("\n            Select template\n          ")]),t._v(" "),t._l(t.sitemapTemplates,(function(n){return e("field-checkable",{key:n.value,attrs:{value:n.value,size:"small"},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[t._v("\n            "+t._s(n.name)+"\n          ")])}))],2),t._v(" "),e("scrollable",{directives:[{name:"show",rawName:"v-show",value:"projects"===t.tab,expression:"tab === 'projects'"}],staticClass:"_projects",attrs:{"min-height":t.minScrollableHeight,"max-height":t.maxScrollableHeight}},[e("ul",t._l(t.projects,(function(n){return e("li",{staticClass:"_project-item cursor-pointer",class:{active:n.alias===t.currentSitemap},on:{click:function(e){return t.onSelect(n)}}},[n.versions.length>1&&n.alias===t.currentSitemap?e("dropdown",{staticClass:"float-right font-size-13",attrs:{items:n.versions,"select-by":{key:"alias",value:"version"},selected:n.alias},on:{select:function(e){return t.onSelect(n,e)}},scopedSlots:t._u([{key:"default",fn:function(n){var r=n.value;return[e("p",[e("span",[t._v("Version")]),t._v(" "),e("span",[t._v(t._s(r))]),t._v(" "),e("icon-font",{attrs:{icon:"triangle-down-sm"}})],1)]}}],null,!0)}):t._e(),t._v(" "),e("p",{staticClass:"font-size-16 font-weight-500"},[t._v("\n                "+t._s(n.name)+"\n              ")]),t._v(" "),e("p",{staticClass:"font-size-13",staticStyle:{opacity:"0.5"}},[t._v("\n                "+t._s(n.templates)+" "+t._s(n.templates>1?"templates":"template")+"\n              ")])],1)})),0)])],1)]),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n        Cancel\n      ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.selected.length}},[t._v("\n        Import\n        "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.selected.length,expression:"selected.length"}]},[t._v(t._s(t.selected.length)+" "+t._s(t.$trans("templates",t.selected.length)))])])],1)]):e("div",{staticClass:"text-center",staticStyle:{padding:"100px 0"}},[e("icon-font",{attrs:{icon:"loading"}})],1)])},i=[]},88432:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("form",{attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"modal-content modal-content-grid"},[e("div",{staticClass:"g-grid g-justify-space-between g-align-top"},[e("div",{staticClass:"g-col-6 g-col-bleed-half-y",staticStyle:{width:"185px"}},[e("div",{staticStyle:{margin:"0.5em 0"}},[e("field-colorpicker",{model:{value:t.formData.color,callback:function(e){t.$set(t.formData,"color",e)},expression:"formData.color"}})],1),t._v(" "),t.previousColor&&t.formData.color!==t.previousColor?e("icon-font",{staticClass:"clickable float-right font-size-16",staticStyle:{margin:"10px 0 0"},attrs:{icon:"refresh"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.formData.color=t.previousColor)}}}):t._e(),t._v(" "),e("div",{staticClass:"field",staticStyle:{width:"127px"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.formData.color,expression:"formData.color"}],staticClass:"text-center colorpicker-value text-uppercase",attrs:{name:"color",maxlength:"7"},domProps:{value:t.formData.color},on:{input:function(e){e.target.composing||t.$set(t.formData,"color",e.target.value)}}})])],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-half-y",staticStyle:{width:"calc(100% - 185px)"}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:"Status name","field-error":t.formFieldError("name"),autocomplete:!1,autofocus:!0},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}}),t._v(" "),e("field-input",{attrs:{name:"description",label:"Description","field-error":t.formFieldError("description"),autocomplete:!1,maxlength:"150"},model:{value:t.formData.description,callback:function(e){t.$set(t.formData,"description",e)},expression:"formData.description"}}),t._v(" "),t.isUnassigned&&t.isEdit?t._e():e("field-checkable",{attrs:{size:"small"},model:{value:t.formData.readonly,callback:function(e){t.$set(t.formData,"readonly",e)},expression:"formData.readonly"}},[t._v("\n          Lock page editing (read-only)\n        ")])],1)])]),t._v(" "),e("div",{staticClass:"modal-buttons text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.$emit("close"))}}},[t._v("\n      Cancel\n    ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.canSubmit}},[t._v("\n      "+t._s(t.isEdit?"Save changes":"Add status")+"\n    ")])],1)])},i=[]},3680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper"},[t.xAccountData.is_suspended&&"email_not_verified"!==t.xAccountData.is_suspended?t._e():e("app-title-heading",{attrs:{title:t.$trans("account")},scopedSlots:t._u([{key:"menu",fn:function(){return[e("ul",{staticClass:"tab-menu"},t._l(t.menu,(function(n){return e("router-link",{key:n.link,attrs:{to:n.link,"active-class":"_active",tag:"li"}},[t._v("\n          "+t._s(n.name)+"\n        ")])})),1)]},proxy:!0}],null,!1,3639413535)}),t._v(" "),e("router-view")],1)},i=[]},19348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-account-payment"}},[t.billingDetails.is_suspended?e("div",{staticClass:"g-container"},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12"},[e("hr",{staticClass:"spacer-225"}),t._v(" "),e("p",{staticClass:"font-size-21 font-montserrat text-navy text-center"},[t._v("\n          "+t._s("trial_expired"===t.billingDetails.is_suspended?"Upgrade your plan to continue":"Update your credit card details to continue")+"\n        ")])])])]):t._e(),t._v(" "),e("div",{staticClass:"g-container"},[e("div",{staticClass:"g-grid g-justify-space-between g-align-center"},[e("div",{staticClass:"g-col-4"}),t._v(" "),e("div",{staticClass:"g-col-3"},[e("field-radio-bar",{attrs:{radios:t.billingIntervals},model:{value:t.selectedPlanToSubmit.interval,callback:function(e){t.$set(t.selectedPlanToSubmit,"interval",e)},expression:"selectedPlanToSubmit.interval"}})],1),t._v(" "),e("div",{staticClass:"g-col-4 text-right"},[t.canUpdateCurrency?e("dropdown",{staticClass:"font-size-14 text-left",attrs:{label:"Currency:",items:t.currencies,selected:t.selectedPlanToSubmit.currency},on:{select:function(e){return t.selectedPlanToSubmit.currency=e}}}):t._e()],1)])]),t._v(" "),t.hasCouponDetails?e("div",{staticClass:"g-container text-center font-size-12 text-gray-darkest line-height-144",staticStyle:{padding:"1em 0"}},[t.coupon.header?e("p",{staticClass:"font-size-21 font-montserrat text-navy mb-3"},[t._v("\n      "+t._s(t.coupon.header)+"\n    ")]):t._e(),t._v(" "),t.coupon.text?e("p",[t._v("\n      "+t._s(t.coupon.text)+"\n    ")]):t.coupon.coupon?e("p",[t._v("\n      "+t._s(t.coupon.coupon.startsWith("NONPROFIT")?"Applied Non-Profit Discount":"Applied coupon code: ".concat(t.coupon.coupon))+"\n    ")]):t._e(),t._v(" "),t.coupon.expires?e("p",[t._v("\n      Offer expires on "+t._s(t.coupon.expires)+"\n    ")]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"g-container g-container-bleed plans-grid",class:"plans-".concat(t.plans.length)},[e("div",{staticClass:"g-grid g-justify-space-between"},t._l(t.plans,(function(n){return e("div",{staticClass:"g-col-2 g-col-grid plan-item",class:{current:n.id===t.currentPlanId,"border-green":n.id===t.recommendedPlanId}},[e("h1",{staticClass:"font-weight-500"},[t._v("\n          "+t._s(n.name)+"\n        ")]),t._v(" "),t.hasSomeDiscount&&n[t.priceOriginalKey]?e("div",{staticClass:"text-gray-darkest mt-5 selectable"},[t._v("\n          normally "+t._s(t.formatPlanPrice(n[t.priceOriginalKey]))+"\n        ")]):t._e(),t._v(" "),e("div",{staticClass:"price"},[e("sup",[t._v(t._s("EUR"===t.selectedPlanToSubmit.currency?"€":"$"))]),t._v(" "),e("span",{staticClass:"font-montserrat selectable"},[t._v("\n            "+t._s(t.formatPlanPrice(t.isAnnual?n.price_annual:n.price,!1))+"\n          ")]),t._v(" "),e("sub",[t._v("/mo")])]),t._v(" "),e("ul",{staticClass:"plan-features font-size-13 text-gray-darkest"},[e("li",[e("icon-font",{attrs:{icon:"accept"}}),t._v(" "),n.limit_users>0&&n.limit_users<9999?e("span",{staticClass:"font-weight-500"},[t._v("\n              "+t._s(n.limit_users)+"\n              "+t._s(t.$trans("account_users",n.limit_users))+"\n            ")]):e("span",{staticClass:"font-weight-500"},[t._v(t._s(t.$trans("unlimited_users")))])],1),t._v(" "),e("li",[e("icon-font",{attrs:{icon:"accept"}}),t._v(" "),n.limit_projects>0&&n.limit_projects<9999?e("span",{staticClass:"font-weight-500"},[t._v("\n              "+t._s(n.limit_projects)+" "+t._s(t.$trans("active_projects",n.limit_projects))+"\n            ")]):e("span",{staticClass:"font-weight-500"},[t._v("\n              "+t._s(t.$trans("unlimited_projects"))+"\n            ")])],1),t._v(" "),n.limit_storage&&parseInt(n.limit_storage,10)>0?e("li",[e("icon-font",{attrs:{icon:"accept"}}),t._v(" "),e("span",{staticClass:"font-weight-500"},[t._v(t._s(n.limit_storage)+" "+t._s(t.$trans("storage_limit")))])],1):t._e(),t._v(" "),n.is_free?t._e():e("li",[e("icon-font",{attrs:{icon:"accept"}}),t._v(" "),n.has_phone_support?e("span",{staticClass:"font-weight-500"},[t._v("\n              "+t._s(t.$trans("email_and_phone_support"))+"\n            ")]):e("span",{staticClass:"font-weight-500"},[t._v(t._s(t.$trans("email_support")))])],1)]),t._v(" "),e("div",{staticClass:"g-flex-footer"},[n.id===t.recommendedPlanId||n.id===t.currentPlanIdRegardlessOfInterval?e("p",{staticClass:"text-green mb-5"},[e("small",{staticClass:"display-block"},[t._v("\n              "+t._s(n.id===t.currentPlanIdRegardlessOfInterval?t.$trans("your_current_plan"):"Recommended")+"\n            ")]),t._v(" "),n.id===t.currentPlanIdRegardlessOfInterval&&t.billingDetails.date_expire&&"prepaid"===t.billingDetails.payment_type?e("small",{staticClass:"display-block text-gray-darkest mt-2"},[t._v("\n              "+t._s(t.$trans("expires_date",{date:t.billingDetails.date_expire}))+"\n            ")]):t._e()]):t._e(),t._v(" "),n.id===t.currentPlanId&&n.is_free?t._e():e("span",{staticClass:"button -secondary",class:{"-disabled":t.isSubmitting,"is-loading":t.isSubmitting===n.id},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.selectPlan(n)}}},[e("span",{staticClass:"caption"},[t._v(t._s(n.id!==t.currentPlanId||t.billingDetails.is_suspended&&!t.isSuspendedAfterError?t.$trans("select"):t.isSuspendedAfterError?t.$trans("continue"):t.$trans("update")))]),t._v(" "),t.isSubmitting===n.id?e("icon-font",{attrs:{icon:"loading"}}):t._e()],1)])])})),0)]),t._v(" "),e("div",{staticClass:"g-container g-container-bleed plans-features",class:"plans-".concat(t.plans.length)},[e("div",{staticClass:"g-grid g-grid-bleed-x g-justify-end"},t._l(t.plans,(function(n){return e("div",{staticClass:"g-col-2 text-center"},[e("p",{staticClass:"font-weight-500 line-height-200"},[t._v("\n          "+t._s(n.name)+"\n        ")]),t._v(" "),e("div",{staticClass:"font-size-13 font-weight-500 text-gray-darkest selectable"},[t.hasSomeDiscount&&n[t.priceOriginalKeyFull]?e("div",{staticClass:"mb-1"},[e("span",{staticClass:"text-gray-darkest price-crossed"},[t._v(t._s(t.formatPlanPrice(n[t.priceOriginalKeyFull])))])]):t._e(),t._v("\n          "+t._s(t.formatPlanPrice(t.isAnnual?n.price_annual_full:n.price))+"\n          "+t._s(t.isAnnual?"/year":"/month")+"\n        ")])])})),0),t._v(" "),t._l(t.plans[0].functions,(function(n,r){return e("div",{key:r,staticClass:"g-grid g-grid-bleed-x g-justify-end"},[e("div",{staticClass:"g-col-2 text-left column-name"},[e("p",{staticClass:"font-weight-500"},[t._v("\n          "+t._s(r)+"\n        ")])]),t._v(" "),t._l(t.plans,(function(t){return e("div",{staticClass:"g-col-2 text-center"},[e("icon-font",{attrs:{icon:t.functions[r]?"accept":"cancel"}})],1)}))],2)})),t._v(" "),e("div",{staticClass:"g-grid g-grid-bleed-x g-justify-end"},t._l(t.plans,(function(n){return e("div",{key:n.id,staticClass:"g-col-2 text-center"},[t.billingDetails.is_suspended||n.id!==t.currentPlanId?e("span",{staticClass:"button -secondary",class:{"-disabled":t.isSubmitting,"is-loading":t.isSubmitting===n.id},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.selectPlan(n)}}},[e("span",{staticClass:"caption"},[t._v(t._s(t.$trans("select")))]),t._v(" "),t.isSubmitting===n.id?e("icon-font",{attrs:{icon:"loading"}}):t._e()],1):e("p",{staticClass:"current-plan"},[t._v("\n          "+t._s(t.$trans("your_current_plan"))+"\n        ")])])})),0)],2),t._v(" "),t.$root.userCan(t.permissionsAccount.CLOSE_ACCOUNT)||t.billingDetails.is_suspended||t.billingDetails.date_expire&&!t.billingDetails.is_suspended||t.$root.userCan("payment")&&t.currentPlanIdRegardlessOfInterval>1?e("div",{staticClass:"g-container text-gray-darkest billing-footer"},[t.$root.userCan("close_account")?e("p",[e("span",{staticClass:"cursor-pointer text-red",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.closeAccount.apply(null,arguments)}}},[t._v("\n        "+t._s(t.$trans("close_account"))+"\n      ")])]):t._e(),t._v(" "),t.billingDetails.is_suspended?e("p",[e("span",{staticClass:"cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLogout.apply(null,arguments)}}},[t._v("\n        Logout\n      ")])]):t._e(),t._v(" "),t.billingDetails.date_expire&&!t.billingDetails.is_suspended&&t.currentPlanIdRegardlessOfInterval>1?e("p",{staticClass:"selectable"},[t._v("\n      "+t._s(t.$trans("messages.payment_date_"+t.billingDetails.payment_type,{date:t.billingDetails.date_expire,amount:t.billingDetails.payment_amount||null}))+"\n    ")]):t._e(),t._v(" "),t.billingDetails.date_expire&&!t.billingDetails.is_suspended&&t.$root.userCan("payment")&&(t.currentPlanIdRegardlessOfInterval>1||"subscription"===t.billingDetails.payment_type)?e("span",{staticClass:"stripe",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openBillingPortal.apply(null,arguments)}}},[e("img",{attrs:{src:"/images/stripe.svg",alt:"Stripe"}}),t._v(" "),t.billingPortalLoading?e("icon-font",{attrs:{icon:"loading"}}):t._e(),t._v(" "),e("span",[t._v(t._s(t.billingPortalLoading?"Loading portal...":"Customer billing portal"))])],1):t._e()]):t._e()])},i=[]},18836:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-account-company"}},[e("form",{staticClass:"g-container",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-4"},[e("p",{staticClass:"font-weight-500"},[t._v("\n          General Information\n        ")]),t._v(" "),e("hr",{staticClass:"spacer-175"}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"company_name",label:"Company Name","field-error":t.formFieldError("company_name"),autocomplete:!1},model:{value:t.xAccountData.company_name,callback:function(e){t.$set(t.xAccountData,"company_name",e)},expression:"xAccountData.company_name"}}),t._v(" "),e("field-input",{attrs:{name:"company_name_2",label:"Company Sub-name","field-error":t.formFieldError("company_name_2"),autocomplete:!1},model:{value:t.xAccountData.company_name_2,callback:function(e){t.$set(t.xAccountData,"company_name_2",e)},expression:"xAccountData.company_name_2"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|alpha_num",expression:"'required|alpha_num'"}],attrs:{name:"subdomain",label:"Account URL","label-append":".SLICKPLAN.COM","field-error":t.formFieldError("subdomain"),autocomplete:!1},model:{value:t.xAccountData.subdomain,callback:function(e){t.$set(t.xAccountData,"subdomain",e)},expression:"xAccountData.subdomain"}})],1),t._v(" "),e("div",{staticClass:"g-col-4 g-offset-1"},[e("p",{staticClass:"font-weight-500"},[t._v("\n          Branding\n        ")]),t._v(" "),e("hr",{staticClass:"spacer-175"}),t._v(" "),e("field-radio-bar",{style:t.brandingToolsClasses,attrs:{name:"company_logo_type",radios:t.radios},model:{value:t.xAccountData.company_logo_type,callback:function(e){t.$set(t.xAccountData,"company_logo_type",e)},expression:"xAccountData.company_logo_type"}}),t._v(" "),e("hr",{staticClass:"spacer-225"}),t._v(" "),e("div",{staticClass:"g-grid g-align-center",style:t.brandingToolsClasses},[e("div",{staticClass:"g-col-12 g-col-bleed-bottom"},[e("p",{staticClass:"font-size-14 font-weight-500"},[t._v("\n              Site colors\n              "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.isDefaultBranding,expression:"!isDefaultBranding"}],staticClass:"float-right style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.brandingReset.apply(null,arguments)}}},[t._v("\n                Change to default\n              ")])])]),t._v(" "),e("div",{staticClass:"g-col-6"},[e("field-colorpicker",{model:{value:t.siteColor,callback:function(e){t.siteColor=e},expression:"siteColor"}})],1),t._v(" "),e("div",{staticClass:"g-col-6"},[e("div",{staticClass:"color-box",style:t.cssBrandingStyle},[e("p",{staticClass:"line-1"},[t._v("\n                Can you read this?\n              ")]),t._v(" "),e("p",{staticClass:"line-2"},[t._v("\n                What about this?\n              ")])])]),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-top"},[e("div",{staticClass:"is-flex g-justify-space-between",staticStyle:{width:"156px"}},[e("div",{staticClass:"field",staticStyle:{width:"127px"}},[e("field-input",{attrs:{"field-class":"text-center colorpicker-value text-uppercase",name:"site_color",maxlength:"7",autocomplete:!1},model:{value:t.siteColor,callback:function(e){t.siteColor=e},expression:"siteColor"}})],1),t._v(" "),t.siteColor!==t.currentSiteColor?e("icon-font",{staticClass:"clickable",attrs:{icon:"refresh",title:"Reset to "+t.currentSiteColor},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.resetSiteColor.apply(null,arguments)}}}):t._e()],1)]),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-top text-center"},[e("field-switch",{attrs:{name:"dark_font",label:t.$trans("dark_text")},model:{value:t.darkFont,callback:function(e){t.darkFont=e},expression:"darkFont"}})],1)]),t._v(" "),e("transition",{attrs:{mode:"out-in",name:"transition-fade-slide"}},[t.xPlanLimits.branding?e("div",{directives:[{name:"show",rawName:"v-show",value:"image"===t.xAccountData.company_logo_type,expression:"xAccountData.company_logo_type === 'image'"}]},[e("hr",{staticClass:"spacer-225"}),t._v(" "),e("hr",{staticClass:"bg-gray-darker"}),t._v(" "),e("hr",{staticClass:"spacer-225"}),t._v(" "),e("p",{staticClass:"font-size-14 font-weight-500"},[t._v("\n              Logo\n              "),t.xAccountData.company_logo?e("span",{staticClass:"float-right style-link",staticStyle:{"margin-left":"1em"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLogoDelete.apply(null,arguments)}}},[t._v("\n                Delete\n              ")]):t._e(),t._v(" "),e("span",{staticClass:"float-right style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.uploadFileSelect.apply(null,arguments)}}},[t._v("Change")])]),t._v(" "),e("div",{staticClass:"logo-box",style:t.cssBrandingLogo},[t.uploadFileStatus?e("div",{staticClass:"progress-bar"},[e("icon-font",{attrs:{icon:"loading"}})],1):t._e()]),t._v(" "),e("p",{staticClass:"font-size-13 font-weight-500 line-height-144 text-center text-gray-darkest"},[t._v("\n              .png, .jpg or .gif (max 2MB)\n              "),e("br"),t._v("\n              We recommend a .png file with a transparent background\n            ")]),t._v(" "),e("input",{attrs:{type:"hidden",name:"company_logo"},domProps:{value:t.xAccountData.company_logo}})]):t._e()])],1)]),t._v(" "),e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-9 text-right"},[e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-submitted":t.formHelper.isSubmitted,"is-disabled":!t.formHelper.isDirty}})],1)])])])},i=[]},96276:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-account-invoices"}},[t.invoices&&t.invoices.length?e("div",[e("div",{staticClass:"g-container g-container-bleed rows-listing invoices-list"},[e("table-listing",{staticClass:"-smaller",attrs:{grid:[4,3,2,1,2],head:[{id:"name",label:"Name"},{id:"timestamp",label:"Date"},{id:"transaction_id",label:"Transaction ID"},{id:"amount",label:"Amount"}],rows:t.sortedInvoicesRows,sort:t.sort},on:{sort:function(e){t.sort=e}}})],1),t._v(" "),e("billing-address",{attrs:{address:t.billingData.billing_address,emails:t.billingData.billing_email_invoices},on:{update:t.onBillingDataUpdated}})],1):e("div",[e("div",{staticClass:"g-container"},[e("div",{staticClass:"g-col-12 text-center"},[e("p",[t._v(t._s(t.$trans("messages.no_invoices_found")))])])])])])},i=[]},90992:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container margin-medium"},[e("div",{staticClass:"g-col-12"},[e("p",{staticClass:"font-size-13 font-weight-500"},[t._v("\n      "+t._s(t.$trans("invoice_address"))+":\n      "),"address"!==t.showForm&&t.internalAddress?e("span",{staticClass:"text-gray-darkest text-indent-50"},[t._v("\n        "+t._s(t.address.replace(/\n+/g,", "))+"\n      ")]):t._e(),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:"address"!==t.showForm,expression:"showForm !== 'address'"}],staticClass:"style-link text-indent-50",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.showForm="address")}}},[t._v("\n        "+t._s(t.$trans("edit"))+"\n      ")])]),t._v(" "),e("form",{directives:[{name:"show",rawName:"v-show",value:"address"===t.showForm,expression:"showForm === 'address'"}],staticClass:"mt-4",staticStyle:{"max-width":"40%"},attrs:{"data-vv-scope":"address"},on:{submit:function(e){return e.preventDefault(),t.onSubmit("address")}}},[e("div",{staticClass:"field"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.internalAddress,expression:"internalAddress"}],staticStyle:{resize:"none"},attrs:{rows:"4",cols:"10"},domProps:{value:t.internalAddress},on:{input:function(e){e.target.composing||(t.internalAddress=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"text-right mt-4"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),void(t.showForm=!1))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.formHelper.isDirty}})],1)])]),t._v(" "),e("div",{staticClass:"g-col-12"},[e("p",{staticClass:"font-size-13 font-weight-500"},[t._v("\n      Send invoices to:\n      "),"emails"!==t.showForm&&t.formattedEmails.length?e("span",{staticClass:"text-gray-darkest text-indent-50"},[t._v("\n        "+t._s(t.formattedEmailsLabel)+"\n      ")]):t._e(),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:"emails"!==t.showForm,expression:"showForm !== 'emails'"}],staticClass:"style-link text-indent-50",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.showForm="emails")}}},[t._v("\n        "+t._s(t.$trans("edit"))+"\n      ")])]),t._v(" "),e("form",{directives:[{name:"show",rawName:"v-show",value:"emails"===t.showForm,expression:"showForm === 'emails'"}],staticClass:"mt-4",staticStyle:{"max-width":"40%"},attrs:{"data-vv-scope":"emails"},on:{submit:function(e){return e.preventDefault(),t.onSubmit("emails")}}},[e("div",{staticClass:"field"},[e("field-select",{staticClass:"field-tags tags-email",attrs:{name:"emails",taggable:10,options:t.internalEmails,value:t.internalEmails,placeholder:"Type email address and press Enter (max 10)"},on:{tag:t.onAddEmail,remove:t.onRemoveEmail}})],1),t._v(" "),e("div",{staticClass:"text-right mt-4"},[e("button",{staticClass:"-plain",attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),void(t.showForm=!1))}}},[t._v("\n          Cancel\n        ")]),t._v(" "),e("button-submit",{staticClass:"-small",attrs:{"is-submitting":t.formHelper.isSubmitting,"is-disabled":!t.formHelper.isDirty}})],1)])])])},i=[]},24674:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-account-messages"}},[e("form",{staticClass:"g-container margin-medium",on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"g-grid g-justify-space-between"},[e("div",{staticClass:"g-col-4",staticStyle:{width:"36%"}},[e("ul",{staticClass:"tab-list"},t._l(t.messages,(function(n,r){return e("li",{class:{active:t.currentIndex===r},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMessageSelect(r)}}},[t._v("\n            "+t._s(n.name)+"\n          ")])})),0)]),t._v(" "),e("div",{staticClass:"g-col-7"},[e("div",{staticClass:"field textarea-code"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.messages[t.currentIndex].body,expression:"messages[currentIndex].body"}],attrs:{cols:"10",rows:"5"},domProps:{value:t.messages[t.currentIndex].body},on:{change:function(e){t.messages[t.currentIndex].touched=!0},input:function(e){e.target.composing||t.$set(t.messages[t.currentIndex],"body",e.target.value)}}},[t._v(t._s(t.messages[t.currentIndex].body))])]),t._v(" "),e("hr",{staticClass:"spacer-175"}),t._v(" "),e("p",{staticClass:"font-size-13 font-weight-500 text-gray-darkest"},[e("link-help",{attrs:{id:"messages_formatting"}},[t._v("\n            Formatting Help\n            "),e("icon-font",{staticClass:"text-lightblue",staticStyle:{margin:"-1px 0 0 0.5em"},attrs:{icon:"info"}})],1),t._v(" "),t.messages[t.currentIndex].body_default&&t.messages[t.currentIndex].body!==t.messages[t.currentIndex].body_default?e("span",{staticClass:"float-right style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.changeToDefault.apply(null,arguments)}}},[t._v("\n            "+t._s(t.$trans("change_to_default"))+"\n          ")]):t._e()],1)])]),t._v(" "),e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12 text-right"},[e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-submitted":t.formHelper.isSubmitted,"is-disabled":!t.formHelper.isDirty}})],1)])])])},i=[]},8016:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-account-preferences"}},t._l(t.formFields,(function(n){return e("div",{key:n.group,staticClass:"g-container margin-large"},[e("p",{staticClass:"font-weight-600 mb-3"},[t._v("\n      "+t._s(n.group)+"\n    ")]),t._v(" "),n.groups?e("div",t._l(n.groups,(function(n){return e("div",{key:n.group,staticStyle:{"padding-top":"12px"}},[e("p",{staticClass:"font-size-14 font-weight-600 mb-3"},[t._v("\n          "+t._s(n.group)+"\n        ")]),t._v(" "),t._l(n.fields,(function(n,r){return e("preference-item",{key:r,attrs:{label:n.name,type:r,value:t.preferences[r]||!1,options:n.options||null}})}))],2)})),0):t._l(n.fields,(function(n,r){return e("preference-item",{key:r,attrs:{label:n.name,type:r,value:t.preferences[r],options:n.options||null}})}))],2)})),0)},i=[]},15250:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-grid g-align-center g-justify-space-between",staticStyle:{width:"470px"}},[e("div",{staticClass:"g-col-auto g-col-bleed-half-y"},[e("p",[t._v(t._s(t.label))])]),t._v(" "),t.options?e("div",{staticClass:"g-col-auto g-col-bleed-half-y"},[e("div",{staticClass:"field fields-vertical is-flex -with-gap",staticStyle:{margin:"6px 0"}},[t._l(t.options,(function(n){return e("field-checkable",{key:n.value,attrs:{name:t.type,type:"radio",size:"smallest",value:n.value},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}},[t._v("\n        "+t._s(n.label)+"\n      ")])})),t._v(" "),e("svg-loading-circle",{attrs:{status:t.isSaving,"class-saving":"text-gray-darkest","class-saved":"text-green"}})],2)]):e("div",{staticClass:"g-col-auto g-col-bleed-half-y is-flex -with-gap"},[e("field-switch",{attrs:{name:t.type,large:!0},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}}),t._v(" "),e("svg-loading-circle",{attrs:{status:t.isSaving,"class-saving":"text-gray-darkest","class-saved":"text-green"}})],1)])},i=[]},3056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-account-workflows"}},[t.currentWorkflow?e("workflow-status-list",{key:"edit",attrs:{list:t.statuses,"is-editable":!0}},[e("div",{staticClass:"g-container-narrow",staticStyle:{"margin-top":"2em"}},[e("div",{staticClass:"g-grid g-justify-space-between g-align-center"},[e("div",{staticClass:"g-col-1",staticStyle:{width:"40px"}},[e("icon-font",{staticClass:"clickable back text-gray-darkest",attrs:{icon:"back-arrow"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCancelEdit.apply(null,arguments)}}})],1),t._v(" "),e("div",{staticClass:"g-col-7",staticStyle:{width:"calc(100% - 290px)"}},[e("p",{staticClass:"font-size-13 line-height-144"},[t._v("\n            Manage your project’s workflow here. Create new statuses or customize existing ones. They can be dragged\n            below to re-order them.\n            "),e("link-help",{staticClass:"style-link",attrs:{id:"content_workflow"}},[t._v("\n              Learn more in the help section.\n            ")])],1)]),t._v(" "),e("div",{staticClass:"g-col-4 text-right",staticStyle:{width:"250px"}},[e("span",{staticClass:"button -primary -small",class:{"-disabled":!t.changesMade},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onSaveWorkflow.apply(null,arguments)}}},[t._v("Save workflow")])]),t._v(" "),e("div",{staticClass:"g-col-12"},[e("span",{staticClass:"font-size-21"},[t._v(t._s(t.currentWorkflow.name))]),t._v(" "),e("icon-font",{staticClass:"clickable text-gray-darkest",staticStyle:{margin:"-0.4em 0 0 0.5em"},attrs:{icon:"edit"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onNameEdit.apply(null,arguments)}}})],1)])])]):e("page-listing",{key:"list",staticClass:"ps-padding-bottom",attrs:{items:t.items,description:{heading:"Create a workflow template",text:"Create custom workflows for projects. Save them here for easy editing or updating in the future.",link:"global_workflow"},buttons:t.buttons,"action-bar-buttons":t.actionBarButtons,"action-bar-links":t.actionBarLinks,selectable:t.isToolAvailable,grid:[4,4,2,2],head:[{id:"name",label:"Template name"},{id:"user",label:"Created by"},{id:"updated_at_timestamp",label:"Last updated"}],"default-sort":["name","asc"],"empty-container-style":"max-width: 460px;","ignore-loading":!0}})],1)},i=[]},8156:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-wrapper",attrs:{id:"page-api-register"}},[e("app-title-heading",{attrs:{title:t.pageTitle}}),t._v(" "),e("form",{staticClass:"g-container",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-3"},[e("div",{staticClass:"avatar-form"},[t.uploadFileStatus?e("div",{staticClass:"placeholder"},[e("div",{staticClass:"progress",style:{width:(!0===t.uploadFileStatus?100:t.uploadFileStatus)+"%"}}),t._v(" "),e("icon-font",{attrs:{icon:"loading"}})],1):t.formData.logo?e("img",{attrs:{src:t.formData.logo,alt:t.formData.name}}):e("div",{staticClass:"placeholder"}),t._v(" "),"about"!==t.mode?e("div",{staticClass:"action line-height-166 text-center"},[e("span",{staticClass:"style-link font-size-14 cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.uploadFileSelect.apply(null,arguments)}}},[t._v("\n              "+t._s(t.formData.logo?t.$trans("change_logo"):t.$trans("add_logo"))+"\n            ")]),t._v(" "),t.formData.logo?[e("br"),t._v(" "),e("span",{staticClass:"style-link font-size-14 cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.formData.logo=null)}}},[t._v("\n                "+t._s(t.$trans("delete_logo"))+"\n              ")])]:t._e(),t._v(" "),t.uploadFileError?e("div",{staticClass:"text-red font-size-12"},[e("hr",{staticClass:"spacer-75"}),t._v("\n              "+t._s(t.uploadFileError)+"\n            ")]):t._e()],2):t._e(),t._v(" "),e("input",{attrs:{type:"hidden",name:"logo"},domProps:{value:t.formData.logo}})])]),t._v(" "),"about"===t.mode?e("div",{staticClass:"g-col-9"},[e("div",{staticClass:"g-grid line-height-144"},[e("div",{staticClass:"g-col-3 font-weight-700"},[t._v("\n            "+t._s(t.$trans("api_application_name"))+":\n          ")]),t._v(" "),e("div",{staticClass:"g-col-9 selectable cursor-text"},[t._v("\n            "+t._s(t.formData.name)+"\n          ")]),t._v(" "),e("div",{staticClass:"g-col-3 font-weight-700"},[t._v("\n            "+t._s(t.$trans("api_application_url"))+":\n          ")]),t._v(" "),e("div",{staticClass:"g-col-9"},[e("a",{attrs:{href:t.formData.url,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.formData.url))])]),t._v(" "),e("div",{staticClass:"g-col-3 font-weight-700"},[t._v("\n            "+t._s(t.$trans("api_client_id"))+":\n          ")]),t._v(" "),e("div",{staticClass:"g-col-9 selectable cursor-text",staticStyle:{"font-family":"monospace"}},[t._v("\n            "+t._s(t.formData.client_id)+"\n          ")]),t._v(" "),e("div",{staticClass:"g-col-3 font-weight-700"},[t._v("\n            "+t._s(t.$trans("api_client_secret"))+":\n          ")]),t._v(" "),e("div",{staticClass:"g-col-9 selectable cursor-text",staticStyle:{"font-family":"monospace"}},[t._v("\n            "+t._s(t.$route.params.client)+"\n          ")]),t._v(" "),e("div",{staticClass:"g-col-3 font-weight-700"},[t._v("\n            "+t._s(t.$trans("api_redirect_uris"))+":\n          ")]),t._v(" "),e("div",{staticClass:"g-col-9 selectable cursor-text",staticStyle:{"font-family":"monospace"}},[e("span",{staticStyle:{"white-space":"pre"}},[t._v(t._s(t.formData.redirect_uri))])])])]):e("div",{staticClass:"g-col-9"},[e("p",{staticClass:"font-weight-500 line-height-200"},[t._v("\n          "+t._s(t.$trans("messages.api_about_application"))+"\n        ")]),t._v(" "),e("p",{staticClass:"font-size-13 line-height-166"},[t._v("\n          "+t._s(t.$trans("messages.api_about_application_description"))+"\n        ")]),t._v(" "),e("div",{staticClass:"g-grid",staticStyle:{"margin-top":"0.5rem","margin-bottom":"1rem"}},[e("div",{staticClass:"g-col-6"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"name",label:t.$trans("api_application_name"),"field-error":t.formFieldError("name"),autocomplete:!1},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1),t._v(" "),e("div",{staticClass:"g-col-6"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url",type:"url",placeholder:"https://",label:t.$trans("api_application_url"),"field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.formData.url,callback:function(e){t.$set(t.formData,"url",e)},expression:"formData.url"}})],1)]),t._v(" "),e("p",{staticClass:"font-weight-500 line-height-200",staticStyle:{"padding-top":"1rem"}},[t._v("\n          "+t._s(t.$trans("messages.api_oauth"))+"\n        ")]),t._v(" "),e("p",{staticClass:"font-size-13 line-height-166"},[t._v("\n          "+t._s(t.$trans("messages.api_oauth_description"))+"\n        ")]),t._v(" "),e("p",{staticClass:"font-size-13 line-height-166"},[e("span",{domProps:{innerHTML:t._s(t.$trans("messages.api_oauth_guidance"))}})]),t._v(" "),e("div",{staticClass:"g-grid",staticStyle:{"margin-top":"0.5rem"}},[e("div",{staticClass:"g-col-12"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"redirect_uri",cols:"10",rows:"4",type:"textarea",label:t.$trans("api_redirect_uris"),"field-error":t.formFieldError("redirect_uri"),autocomplete:!1},model:{value:t.formData.redirect_uri,callback:function(e){t.$set(t.formData,"redirect_uri",e)},expression:"formData.redirect_uri"}})],1)])])]),t._v(" "),e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12 text-right"},["about"===t.mode?e("span",{staticClass:"button -plain text-red",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDeleteApp.apply(null,arguments)}}},[t._v("\n          "+t._s(t.$trans("api_delete"))+"\n        ")]):t._e(),t._v(" "),"update"===t.mode?e("span",{staticClass:"button -plain",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onCancelEdit.apply(null,arguments)}}},[t._v("Cancel")]):t._e(),t._v(" "),"about"===t.mode?e("span",{staticClass:"button -secondary",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onEdit.apply(null,arguments)}}},[t._v("\n          "+t._s(t.$trans("edit"))+"\n        ")]):e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n          "+t._s("register"===t.mode?t.$trans("api_register"):t.$trans("update"))+"\n        ")])],1)])])],1)},i=[]},76280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){this._self._c;return this._m(1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"max-width":"800px",width:"100%",padding:"2.5em"},attrs:{id:"login-dialog"}},[e("h1",{staticClass:"font-size-21 font-weight-500"},[t._v("\n      Your account has been closed.\n    ")]),t._v(" "),e("p",{staticClass:"font-size-14 text-navy mt-5 mb-5"},[t._v("\n      If you'd ever like to open another Slickplan account we'll be here when you need us.\n    ")]),t._v(" "),e("hr",{staticClass:"spacer-200"}),t._v(" "),e("div",{attrs:{id:"survey"}})])},function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-login"}},[e("header-branding"),t._v(" "),t._m(0)],1)}]},57228:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-login"}},[e("header-branding",{attrs:{account:t.currentAccount}}),t._v(" "),e("div",{class:t.dialogClassNames,attrs:{id:"login-dialog-wrapper"}},[e("div",{staticClass:"_dialog"},[e("transition",{attrs:{mode:"out-in",name:"transition-fade-slide"},on:{"before-enter":t.transitionBeforeEnter,"after-enter":t.transitionAfterEnter}},["sso"===t.formType?e("div",{key:"sso"},[e("div",{staticClass:"heading is-flex g-justify-space-between"},[e("h1",{staticClass:"font-size-21 font-weight-500"},[t._v("\n              Recent Logins\n            ")]),t._v(" "),e("span",{staticClass:"style-link font-size-14",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.switchToLogin.apply(null,arguments)}}},[t._v("Sign in to another account")])]),t._v(" "),e("div",{staticClass:"g-container-full form-wrapper"},[e("div",{staticClass:"g-grid form-inner-wrapper"},[e("ul",{staticClass:"g-col-12 accounts",style:t.ssoAccountsStyles},t._l(t.accounts,(function(n){return e("li",{staticClass:"account",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAccountClick(e,n)}}},[n.subdomain?e("div",{staticClass:"single cursor-pointer clearfix"},[e("p",{staticClass:"avatar text-center",class:{icon:!n.avatar}},[n.avatar?e("img",{attrs:{src:n.avatar,alt:n.name}}):e("span",[t._v("\n                        "+t._s(n.initials)+"\n                      ")])]),t._v(" "),e("span",{staticClass:"button -primary float-right"},[t._v("Login")]),t._v(" "),e("span",{staticClass:"user"},[e("strong",[t._v(t._s(n.subdomain)+".slickplan.com")]),t._v(" "),e("small",[t._v(t._s(n.name)+" ("+t._s(n.email)+")")])])]):e("div",{staticClass:"single draft cursor-pointer clearfix"},[e("p",{staticClass:"avatar icon text-center"},[e("icon-font",{attrs:{icon:"add-o"}})],1),t._v(" "),e("span",{staticClass:"button -primary float-right"},[t._v("Finish")]),t._v(" "),e("span",{staticClass:"user"},[e("strong",[t._v(t._s(t.$trans("new_account",{account:n.email})))]),t._v(" "),e("small",[t._v(t._s(t.$trans("click_to_finish_registration")))])])]),t._v(" "),e("span",{staticClass:"remove"},[e("icon-font",{attrs:{icon:"trash"}})],1)])})),0)])])]):"single"===t.formType||"totp"===t.formType?e("div",{key:"single"},[e("div",{staticClass:"heading is-flex g-justify-space-between"},[e("h1",{staticClass:"font-size-21 font-weight-500"},[t._v("\n              "+t._s("totp"===t.formType?"Verify your identity":"Login")+"\n            ")]),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:"single"===t.formType,expression:"formType === 'single'"}],staticClass:"style-link font-size-14",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.switchToLogin("password")}}},[t._v("Forgot password?")])]),t._v(" "),e("form",{staticClass:"g-container-full form-wrapper",attrs:{id:"form-login","data-vv-scope":"login"},on:{submit:function(e){return e.preventDefault(),t.onSubmit("login")}}},[e("div",{staticClass:"form-inner-wrapper"},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12"},[e("field-input",{directives:[{name:"show",rawName:"v-show",value:"totp"!==t.formType,expression:"formType !== 'totp'"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],ref:"username",attrs:{name:"username",label:t.$trans("username")+" / "+t.$trans("email_address"),"field-error":t.formFieldError("username","login"),autocomplete:"username"},model:{value:t.formData.username,callback:function(e){t.$set(t.formData,"username",e)},expression:"formData.username"}}),t._v(" "),e("field-input",{directives:[{name:"show",rawName:"v-show",value:"totp"!==t.formType,expression:"formType !== 'totp'"},{name:"validate",rawName:"v-validate",value:"required|min:1|max:48",expression:"'required|min:1|max:48'"}],ref:"password",attrs:{name:"password",type:"password",minlength:"1",maxlength:"48",label:t.$trans("password"),"field-error":t.formFieldError("password","login"),autocomplete:"current-password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}}),t._v(" "),"totp"===t.formType?e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|min:1|max:6",expression:"'required|min:1|max:6'"}],ref:"totp",attrs:{name:"totp_token",label:"Enter the 6-digit code from your authenticator app","field-error":t.formFieldError("totp_token","login")},model:{value:t.formData.totp_token,callback:function(e){t.$set(t.formData,"totp_token",e)},expression:"formData.totp_token"}}):t._e()],1)]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:"totp"!==t.formType,expression:"formType !== 'totp'"}],staticClass:"g-grid g-align-center g-align-content-space-between"},[e("div",{staticClass:"g-col-12"},[e("field-checkable",{staticClass:"text-gray-darkest",attrs:{size:"tiny"},model:{value:t.formData.remember,callback:function(e){t.$set(t.formData,"remember",e)},expression:"formData.remember"}},[t._v("\n                    "+t._s(t.$trans("keep_logged_in"))+"\n                  ")]),t._v(" "),e("p",{staticClass:"font-size-12 mt-3 text-gray-darkest"},[t._v("\n                    Don't have an account?\n                    "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.switchToRegister.apply(null,arguments)}}},[t._v("Sign up for free")])])],1)]),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-space-between"},[e("div",{staticClass:"g-col-6 g-col-bleed-bottom"},[t.formTypePrev.length?e("button",{staticClass:"is-flex -plain",staticStyle:{margin:"0"},attrs:{type:"reset",disabled:"login"===t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.goBack.apply(null,arguments))}}},[e("icon-font",{staticClass:"mr-3",attrs:{icon:"back-arrow"}}),t._v("\n                    Back\n                  ")],1):t._e()]),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-bottom text-right"},[e("button-submit",{attrs:{"is-submitting":"login"===t.formHelper.isSubmitting}},[t._v("\n                    "+t._s("totp"===t.formType?"Confirm":t.$trans("sign_in"))+"\n                  ")])],1)])])])]):"password"===t.formType?e("div",{key:"password"},[e("div",{staticClass:"heading is-flex g-justify-space-between"},[e("h1",{staticClass:"font-size-21 font-weight-500"},[t._v("\n              Forgot password?\n            ")])]),t._v(" "),e("form",{staticClass:"g-container-full form-wrapper",attrs:{id:"form-password","data-vv-scope":"password"},on:{submit:function(e){return e.preventDefault(),t.onSubmit("password")}}},[e("div",{staticClass:"form-inner-wrapper"},[e("div",{staticClass:"mt-2 mb-2"},[e("p",{staticClass:"font-size-14 text-gray-darkest"},[t._v("\n                  Enter your email address and we’ll send you a link to reset your password.\n                ")])]),t._v(" "),e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|email",expression:"'required|email'"}],ref:"email",attrs:{name:"email",type:"email",label:t.$trans("email_address"),"field-error":t.formFieldError("email","password"),autocomplete:"username",maxlength:"255"},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}})],1)]),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-space-between",staticStyle:{"margin-top":"10px"}},[t.formTypePrev.length?e("div",{staticClass:"g-col-6 g-col-bleed-bottom"},[e("button",{staticClass:"-plain",staticStyle:{margin:"0"},attrs:{type:"reset",disabled:"password"===t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.goBack.apply(null,arguments))}}},[e("icon-font",{staticClass:"mr-3",attrs:{icon:"back-arrow"}}),t._v("\n                    Back\n                  ")],1)]):t._e(),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-bottom text-right"},[e("button-submit",{attrs:{"is-submitting":"password"===t.formHelper.isSubmitting}},[t._v("\n                    Send email\n                  ")])],1)])])])]):"reset"===t.formType?e("div",{key:"reset"},[e("div",{staticClass:"heading is-flex g-justify-space-between"},[e("h1",{staticClass:"font-size-21 font-weight-500"},[t._v("\n              Set your password\n            ")])]),t._v(" "),e("form",{staticClass:"g-container-full form-wrapper",attrs:{id:"form-reset","data-vv-scope":"reset"},on:{submit:function(e){return e.preventDefault(),t.onSubmit("reset")}}},[e("div",{staticClass:"form-inner-wrapper"},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12"},[t.formData.email?e("div",{staticClass:"field"},[e("label",[t._v("Email Address")]),t._v(" "),e("div",{staticClass:"mt-2 mb-2"},[e("span",{staticClass:"cursor-not-allowed"},[t._v(t._s(t.formData.email))])])]):t._e(),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|min:7|max:48",expression:"'required|min:7|max:48'"}],ref:"password",attrs:{name:"password",type:"password",minlength:"7",maxlength:"48",label:"New password","field-error":t.formFieldError("password","reset")||t.formFieldError("token","reset"),autocomplete:"new-password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1)]),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-space-between",staticStyle:{"margin-top":"10px"}},[e("div",{staticClass:"g-col-12 text-right"},[e("button",{staticClass:"-plain",attrs:{type:"reset",disabled:"reset"===t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onCancelPasswordReset.apply(null,arguments))}}},[t._v("\n                    Cancel\n                  ")]),t._v(" "),e("button-submit",{attrs:{"is-submitting":"reset"===t.formHelper.isSubmitting}},[t._v("\n                    Save password\n                  ")])],1)])])])]):"register"===t.formType?e("div",{key:"register"},[e("div",{staticClass:"heading is-flex g-justify-space-between"},[e("h1",{staticClass:"font-size-21 font-weight-500"},[t._v("\n              Create an account\n              "+t._s(t.resourceTemplate?"to edit this template":"")+"\n            ")])]),t._v(" "),e("form",{staticClass:"g-container-full form-wrapper",attrs:{id:"form-register","data-vv-scope":"register"},on:{submit:function(e){return e.preventDefault(),t.onSubmit("register")}}},[e("div",{staticClass:"form-inner-wrapper"},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-6 g-col-bleed-bottom"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"first_name",label:"First name","field-error":t.formFieldError("first_name","register"),autocomplete:!1},model:{value:t.formData.first_name,callback:function(e){t.$set(t.formData,"first_name",e)},expression:"formData.first_name"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-bottom"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"last_name",label:"Last name","field-error":t.formFieldError("last_name","register"),autocomplete:!1},model:{value:t.formData.last_name,callback:function(e){t.$set(t.formData,"last_name",e)},expression:"formData.last_name"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-bottom"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|email",expression:"'required|email'"}],attrs:{name:"email",type:"email",label:"Work email","field-error":t.formFieldError("email","register"),autocomplete:"username",maxlength:"255"},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-bottom"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|min:7|max:48",expression:"'required|min:7|max:48'"}],attrs:{name:"password",type:"password",minlength:"7",maxlength:"48",label:t.$trans("password"),"field-error":t.formFieldError("password","register"),autocomplete:"new-password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),t._v(" "),e("div",{staticClass:"g-col-12"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"company_name",label:"Company name","field-error":t.formFieldError("company_name","register"),autocomplete:!1},on:{input:t.onCompanyNameChange,change:t.onCompanyNameChange},model:{value:t.formData.company_name,callback:function(e){t.$set(t.formData,"company_name",e)},expression:"formData.company_name"}})],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.subdomainFieldVisible,expression:"subdomainFieldVisible"}],staticClass:"g-col-12 g-col-bleed-top"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|alpha_num",expression:"'required|alpha_num'"}],attrs:{name:"subdomain",label:"Subdomain","label-append":".SLICKPLAN.COM","field-error":t.formFieldError("subdomain","register"),autocomplete:!1},on:{input:t.onSubdomainChange,change:t.onSubdomainChange},model:{value:t.formData.subdomain,callback:function(e){t.$set(t.formData,"subdomain",e)},expression:"formData.subdomain"}})],1)]),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-space-between"},[e("div",{staticClass:"g-col-12"},[e("p",{staticClass:"font-size-13 text-gray-darkest"},[t._v("\n                    By creating an account, you agree to the\n                    "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openTerms.apply(null,arguments)}}},[t._v("Terms & Conditions")])]),t._v(" "),e("field-checkable",{staticClass:"text-gray-darkest mt-4",attrs:{size:"smallest"},model:{value:t.formData.newsletter,callback:function(e){t.$set(t.formData,"newsletter",e)},expression:"formData.newsletter"}},[t._v("\n                    Please send me updates about Slickplan\n                  ")])],1)]),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-end"},[e("div",{staticClass:"g-col-6 g-col-bleed-bottom"},[e("span",{staticClass:"style-link font-size-14",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.switchToLogin.apply(null,arguments)}}},[t._v("Already have an account?")]),t._v(" "),t.hasSignupStep2?t._e():e("field-turnstile",{model:{value:t.formData.turnstile_token,callback:function(e){t.$set(t.formData,"turnstile_token",e)},expression:"formData.turnstile_token"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-bottom text-right"},[e("button-submit",{class:{"-disabled":!t.canSubmitRegister},attrs:{"is-submitting":"register"===t.formHelper.isSubmitting}},[t._v("\n                    Sign up for free\n                  ")])],1)])])])]):"configure"===t.formType?e("div",{key:"configure"},[e("div",{staticClass:"heading is-flex g-justify-space-between"},[e("h1",{staticClass:"font-size-21 font-weight-500"},[t._v("\n              Let's set up your workspace\n            ")])]),t._v(" "),e("form",{staticClass:"g-container-full form-wrapper",attrs:{id:"form-configure","data-vv-scope":"configure"},on:{submit:function(e){return e.preventDefault(),t.onSubmit("configure")}}},[e("div",{staticClass:"form-inner-wrapper"},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12"},[e("div",{staticClass:"g-grid g-grid-inner g-justify-space-between"},[e("div",{staticClass:"g-col-4 border border-rounded border-gray-darker",staticStyle:{width:"247px"}},[e("p",[t._v("Upload company logo")]),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("p",{staticClass:"font-size-14 font-weight-500"},[t._v("\n                        Logo\n                        "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.formData.company_logo,expression:"formData.company_logo"}],staticClass:"float-right style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.logoRemove.apply(null,arguments)}}},[t._v("\n                          Remove\n                        ")])]),t._v(" "),e("div",{staticClass:"upload-area cursor-pointer mt-4",style:t.uploadAreaCss,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.uploadFileSelect.apply(null,arguments)}}},[t.uploadFileStatus?e("icon-font",{attrs:{icon:"loading"}}):e("div",{staticClass:"non-clickable",style:{opacity:t.formData.company_logo?0:1}},[e("span",{staticClass:"button -secondary -smaller"},[t._v("Select logo")])])],1),t._v(" "),e("p",{staticClass:"font-size-13 font-weight-500 line-height-144 text-center text-gray-darkest"},[t.uploadFileError?e("span",{staticClass:"text-red"},[t._v(t._s(t.uploadFileError))]):e("span",{domProps:{innerHTML:t._s(t.$trans("messages.logo_recommendation"))}})])]),t._v(" "),e("div",{staticClass:"g-col-7 border border-rounded border-gray-darker",staticStyle:{width:"395px"}},[e("p",[t._v("Company colors")]),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("div",{staticClass:"g-grid g-align-center"},[e("div",{staticClass:"g-col-12 g-col-bleed-bottom"},[e("p",{staticClass:"font-size-14 font-weight-500"},[t._v("\n                            Color\n                            "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.isDefaultBranding,expression:"!isDefaultBranding"}],staticClass:"float-right style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.brandingReset.apply(null,arguments)}}},[t._v("\n                              Change to default\n                            ")])])]),t._v(" "),e("div",{staticClass:"g-col-6"},[e("field-colorpicker",{model:{value:t.siteColor,callback:function(e){t.siteColor=e},expression:"siteColor"}})],1),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-left"},[e("div",{staticClass:"color-box",style:t.cssBrandingStyle},[e("p",{staticClass:"line-1"},[t._v("\n                              Can you read this?\n                            ")]),t._v(" "),e("p",{staticClass:"line-2"},[t._v("\n                              What about this?\n                            ")])])]),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-top"},[e("div",{staticClass:"is-flex g-justify-space-between",staticStyle:{width:"156px"}},[e("div",{staticClass:"field",staticStyle:{width:"127px"}},[e("field-input",{attrs:{"field-class":"text-center colorpicker-value text-uppercase",name:"site_color",maxlength:"7",autocomplete:!1},model:{value:t.siteColor,callback:function(e){t.siteColor=e},expression:"siteColor"}})],1)])]),t._v(" "),e("div",{staticClass:"g-col-6 g-col-bleed-left g-col-bleed-top text-center"},[e("field-switch",{attrs:{name:"dark_font",label:t.$trans("dark_text")},model:{value:t.formData.dark_font,callback:function(e){t.$set(t.formData,"dark_font",e)},expression:"formData.dark_font"}})],1)])])])])]),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-space-between"},[e("div",{staticClass:"g-col-4 g-col-bleed-bottom"},[e("button",{staticClass:"is-flex -plain",staticStyle:{margin:"0"},attrs:{type:"reset"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.goBack.apply(null,arguments))}}},[e("icon-font",{staticClass:"mr-3",attrs:{icon:"back-arrow"}}),t._v("\n                    Back\n                  ")],1)]),t._v(" "),e("div",{staticClass:"g-col-8 g-col-bleed-bottom text-right"},[e("button",{staticClass:"-plain -highlight",attrs:{type:"submit",disabled:"configure"===t.formHelper.isSubmitting},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onSubmit("configure",!0))}}},[t._v("\n                    I'll do it later\n                  ")]),t._v(" "),e("button-submit",{attrs:{id:"button-register","is-submitting":"configure"===t.formHelper.isSubmitting}},[t._v("\n                    Done & Ready to start\n                  ")])],1)])]),t._v(" "),e("field-turnstile",{model:{value:t.formData.turnstile_token,callback:function(e){t.$set(t.formData,"turnstile_token",e)},expression:"formData.turnstile_token"}})],1)]):t._e()])],1),t._v(" "),t.resourceTemplateData?e("div",{attrs:{id:"login-template"}},[e("div",{staticClass:"text-center"},[t.resourceTemplateData.image?e("p",[e("img",{attrs:{src:t.resourceTemplateData.image,alt:t.resourceTemplateData.title}})]):t._e(),t._v(" "),e("h1",{staticClass:"font-montserrat font-size-28 font-weight-700"},[t._v("\n          "+t._s(t.resourceTemplateData.title)+"\n        ")]),t._v(" "),e("p",{staticClass:"text-gray-darkest"},[t._v("\n          Register for a free trial to edit the template\n        ")])])]):t._e()])],1)},i=[]},26796:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"header branding-bg font-montserrat",style:t.hasBranding?{background:t.account.site_color}:null},[e("div",{staticClass:"g-container is-flex",staticStyle:{width:"auto"}},[e("div",[t.hasBranding&&"image"===t.account.company_logo_type&&t.account.company_logo?e("img",{attrs:{src:t.account.company_logo,alt:t.account.company_name}}):t.hasBranding&&"text"===t.account.company_logo_type&&t.account.company_name?e("span",{staticClass:"company-name branding-text"},[e("h2",{class:{"has-slogan":t.account.company_name_2}},[e("span",[t._v(t._s(t.account.company_name))]),t._v(" "),t.account.company_name_2?e("small",[t._v(t._s(t.account.company_name_2))]):t._e()])]):e("image-tag",{attrs:{src:t.hasBranding&&t.account.dark_font?"/images/logo-dark.png":"/images/logo.png",retina:!0}})],1)])])},i=[]},7488:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ps-padding",class:t.canModifyContentTools?"ps-padding-top-largest":""},[t.xIsPageLoading?e("component-loading"):e("div",{staticClass:"content-planner"},[e("div",{staticClass:"g-container-narrow style-block",staticStyle:{padding:"24px"}},[e("div",{staticClass:"style-block-title"},[e("p",{staticClass:"font-size-21",staticStyle:{"padding-top":"0"}},[t._v("\n          All activity\n        ")])]),t._v(" "),e("div",{staticClass:"style-block-content"},[e("ul",{staticClass:"activity-log"},t._l(t.paginatedLog,(function(t){return e("log-item",{key:t.id,staticClass:"clearfix",attrs:{log:t}})})),1),t._v(" "),e("pagination",{staticStyle:{"margin-top":"24px"},attrs:{page:t.currentPage,"items-per-page":t.itemsPerPage,"total-items":t.logs.length},on:{change:t.onPaginationChange}})],1)])])],1)},i=[]},39120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("li",{staticClass:"ui-content draggable",class:t.itemClasses,attrs:{"data-index":t.index,"data-id":t.id}},[e("div",{staticClass:"_content-wrap",class:{"non-clickable":t.xContentBlocksLock}},[e("div",{staticClass:"metabar"},[t.isRevisionView?e("div",{staticClass:"is-diff-wrapper",domProps:{innerHTML:t._s(t.blockLabelDiff)}}):t.editable&&!t.hasTemplateAssigned?e("span",{staticClass:"cursor-pointer selectable",class:{"text-blue":!t.blockData.options.label},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLabelEdit.apply(null,arguments)}}},[t._v("\n        "+t._s(t.blockData.options.label||"Add label")+"\n      ")]):e("span",[t._v(t._s(t.blockData.options.label||"")+" ")]),t._v(" "),!t.editable||t.xContentBlocksLock||t.hasTemplateAssigned?t._e():e("icon-font",{staticClass:"clickable",class:{"text-blue":!t.blockData.options.label},attrs:{icon:t.blockData.options.label?"edit":"plus-sm"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLabelEdit.apply(null,arguments)}}}),t._v(" "),t.hasLimits?e("span",{staticClass:"float-right",class:t.hasLimits.count>t.hasLimits.of?"text-red":"text-gray-darkest"},[t._v("\n        "+t._s(t.hasLimits.count)+"/"+t._s(t.hasLimits.of)+" "+t._s(t.hasLimits.label)+"\n      ")]):t._e()],1),t._v(" "),e("div",{staticClass:"block-wrapper"},[t.canReorder?e("div",{staticClass:"_reorder"},[e("icon-font",{staticClass:"font-size-12",class:t.isFirst?"non-clickable":"clickable",attrs:{icon:"up"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onReorder(e,t.id,-1)}}}),t._v(" "),e("icon-font",{staticClass:"clickable",attrs:{icon:"drag"},nativeOn:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown.apply(null,arguments)}}}),t._v(" "),e("icon-font",{staticClass:"font-size-12",class:t.isLast?"non-clickable":"clickable",attrs:{icon:"down"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onReorder(e,t.id,1)}}})],1):t._e(),t._v(" "),e("div",{staticClass:"block",class:t.blockClasses},["wysiwyg"===t.blockData.type&&t.editable?t._e():e("div",{staticClass:"header"},[e("portal-target",{attrs:{name:"".concat(t.id,"-block-header"),slim:""}},["info"!==t.blockData.type?e("span",[t._v(t._s(t.headerText))]):t._e()]),t._v(" "),t.buttons.length?e("buttons-list",{attrs:{buttons:t.buttons,rotate:!0}}):t._e()],1),t._v(" "),e("div",{staticClass:"content"},["info"===t.blockData.type?e("div",[t.isRevisionView?e("div",{staticClass:"is-diff-wrapper",domProps:{innerHTML:t._s(t.blockContentDiff)}}):e("field-textarea",{staticClass:"transparent",attrs:{placeholder:t.blockOptions.placeholder,readonly:!t.editable,autosize:!0},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.triggerBlur.apply(null,arguments))},blur:function(e){return t.triggerChange.apply(null,arguments)},keyup:function(e){return t.triggerChange.apply(null,arguments)}},model:{value:t.blockContent,callback:function(e){t.blockContent=e},expression:"blockContent"}})],1):"text"===t.blockData.type?e("div",[t.isRevisionView?e("div",{staticClass:"is-diff-wrapper",domProps:{innerHTML:t._s(t.blockContentDiff)}}):e("field-textarea",{staticClass:"transparent",attrs:{readonly:!t.editable,autosize:!0},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.triggerBlur.apply(null,arguments))},blur:function(e){return t.triggerChange.apply(null,arguments)},keyup:function(e){return t.triggerChange.apply(null,arguments)}},model:{value:t.blockContent,callback:function(e){t.blockContent=e},expression:"blockContent"}})],1):"wysiwyg"===t.blockData.type?e("div",[t.isRevisionView?e("div",{staticClass:"is-diff-wrapper",domProps:{innerHTML:t._s(t.blockContentDiff)}}):t.editable?e("field-wysiwyg",{attrs:{name:"content",toolbar:"advanced",placeholder:"Start typing here...","max-height":600},on:{focus:t.onWysiwygFocus,blur:t.onWysiwygBlur,change:t.triggerChange},model:{value:t.blockContent,callback:function(e){t.blockContent=e},expression:"blockContent"}}):e("div",{staticClass:"wrapper selectable prose"},[e("div",{domProps:{innerHTML:t._s(t.blockContentHtml)}})]),t._v(" "),t.buttons.length&&t.editable?e("buttons-list",{attrs:{buttons:t.buttons,rotate:!0}}):t._e()],1):"code"===t.blockData.type?e("div",[e("prism-editor",{attrs:{highlight:t.highlighter,"line-numbers":!0,readonly:!t.editable},on:{blur:t.triggerChange},model:{value:t.blockContent,callback:function(e){t.blockContent=e},expression:"blockContent"}})],1):"table"===t.blockData.type?e("block-table",{attrs:{id:t.id,editable:t.editable,"is-revision-view":t.isRevisionView,"block-data":t.blockData},on:{update:t.triggerChange}}):t.isUploadBlock?e("block-file",{attrs:{id:t.id,editable:t.editable},on:{update:t.triggerChange}}):"form"===t.blockData.type?e("block-form",{attrs:{id:t.id,editable:t.editable},on:{update:t.triggerChange}}):t._e()],1),t._v(" "),t.blockOptions.descriptionPlaceholder&&(t.editable&&t.canManageBlocks||(!t.editable||t.hasTemplateAssigned&&!t.canManageBlocks)&&t.blockNote)?e("div",{staticClass:"footer"},[t.isRevisionView?e("div",{staticClass:"is-diff-wrapper",domProps:{innerHTML:t._s(t.blockNoteDiff)}}):(!t.editable||t.hasTemplateAssigned&&!t.canManageBlocks)&&t.blockNote?e("div",{staticClass:"selectable note"},[t._v("\n            "+t._s(t.blockNote)+"\n          ")]):t.editable&&t.canManageBlocks?e("field-textarea",{attrs:{placeholder:t.blockOptions.descriptionPlaceholder,autosize:!0},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.triggerBlur.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.triggerBlur.apply(null,arguments))}],blur:function(e){return t.triggerChange.apply(null,arguments)},keyup:function(e){return t.triggerChange.apply(null,arguments)}},model:{value:t.blockNote,callback:function(e){t.blockNote=e},expression:"blockNote"}}):t._e()],1):t._e(),t._v(" "),t.xContentBlocksLock?e("blocked-by",{attrs:{user:t.xContentBlocksLock}}):t._e()],1)])])])},i=[]},94368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-content-block-metadata",attrs:{"data-id":"meta"}},[t.editable?e("div",{staticClass:"_header"},[e("icon-font",{staticClass:"clickable",attrs:{icon:t.isHidden?"down":"up"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.isHidden=!t.isHidden)}}}),t._v(" "),e("p",{staticClass:"font-size-14 display-inline-block",on:{dblclick:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.isHidden=!t.isHidden)}}},[t._v("\n      Metadata\n    ")])],1):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.editable||!t.isHidden,expression:"!editable || !isHidden"}],class:{_content:t.editable}},[t.editable?e("div",{staticClass:"_form",class:{"-locked":t.xContentBlocksLock}},[e("field-variables",{attrs:{variables:t.$options.tags.title},on:{focus:function(e){return t.onFocus("meta_title",t.seo.meta_title)}},scopedSlots:t._u([{key:"default",fn:function(){return[e("label",{staticClass:"display-block"},[e("span",{staticClass:"float-right",class:{"text-red":t.limits.title>600}},[t._v(t._s(t.limits.title)+"/600 Pixels")]),t._v("\n            SEO Title\n          ")])]},proxy:!0},{key:"htmlAfter",fn:function(){return[e("span",{staticClass:"description"},[t._v("The best format for a title tag is: “Page name - Separator - Project name”")])]},proxy:!0}],null,!1,3065944951),model:{value:t.seo.meta_title,callback:function(e){t.$set(t.seo,"meta_title",e)},expression:"seo.meta_title"}}),t._v(" "),e("field-variables",{attrs:{variables:t.$options.tags.slug,label:"Slug"},on:{focus:function(e){return t.onFocus("meta_title",t.seo.url_slug)}},scopedSlots:t._u([{key:"htmlAfter",fn:function(){return[e("span",{staticClass:"description"},[t._v("\n            Slugs are URLs generated automatically by the page name but can also be altered manually\n          ")])]},proxy:!0}],null,!1,2577812906),model:{value:t.seo.url_slug,callback:function(e){t.$set(t.seo,"url_slug",e)},expression:"seo.url_slug"}}),t._v(" "),e("field-input",{attrs:{type:"textarea",autocomplete:!1,"label-class":"display-block"},on:{focus:function(e){return t.onFocus("meta_description",t.seo.meta_description)},blur:function(e){return t.onBlur("meta_description",t.seo.meta_description)}},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.doBlur.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.doBlur.apply(null,arguments))}]},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",[e("span",{staticClass:"float-right",class:{"text-red":t.limits.description>160}},[t._v("\n              "+t._s(t.limits.description)+"/160 Characters\n            ")]),t._v("\n            Meta Description\n          ")])]},proxy:!0},{key:"htmlAfter",fn:function(){return[e("span",{staticClass:"description"},[t._v("\n            This will show up in search results on Google so make sure it’s considered from an advertising point of\n            view.\n          ")])]},proxy:!0}],null,!1,41160082),model:{value:t.seo.meta_description,callback:function(e){t.$set(t.seo,"meta_description",e)},expression:"seo.meta_description"}}),t._v(" "),e("field-input",{attrs:{label:"Focus Keyword",autocomplete:!1},on:{focus:function(e){return t.onFocus("meta_focus_keyword",t.seo.meta_focus_keyword)},blur:function(e){return t.onBlur("meta_focus_keyword",t.seo.meta_focus_keyword)}},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.doBlur.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.doBlur.apply(null,arguments))}]},scopedSlots:t._u([{key:"htmlAfter",fn:function(){return[e("span",{staticClass:"description"},[t._v("\n            It’s best to focus on one keyword per page but you may have up to ten separated by commas\n          ")])]},proxy:!0}],null,!1,2857265277),model:{value:t.seo.meta_focus_keyword,callback:function(e){t.$set(t.seo,"meta_focus_keyword",e)},expression:"seo.meta_focus_keyword"}}),t._v(" "),t.xContentBlocksLock?e("blocked-by",{attrs:{user:t.xContentBlocksLock}}):t._e()],1):t._e(),t._v(" "),e("div",{staticClass:"_preview"},[e("p",{staticClass:"font-size-14"},[t._v("\n        Snippet preview\n      ")]),t._v(" "),e("div",{staticClass:"serp"},[e("p",{staticClass:"_title selectable"},[e("span",[t._v(t._s(t.seoTitle))])]),t._v(" "),e("p",{staticClass:"_url selectable"},[e("span",[t._v(t._s(t.websiteUrl+t.seoSlug))])]),t._v(" "),e("p",{staticClass:"_desc selectable"},[e("span",[t._v(t._s(t.seoDescription))])])])])])])},i=[]},9072:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-content-block-items"},t._l(t.availableContentBlocks,(function(n){return e("has-tooltip",{key:n.id,staticClass:"item",attrs:{tooltip:n.tooltip,position:"right"}},[e("div",{staticClass:"block",on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,n.id)}}},[e("icon-font",{attrs:{icon:n.icon}})],1)])})),1)},i=[]},90700:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-grid g-justify-space-between g-grid-bleed file-item-row"},[e("div",{staticClass:"g-col-2 -col-preview"},[e("div",{staticClass:"preview is-flex",class:{"-image":t.imageUrl,"-upload":t.isUploading},style:t.previewBlockStyle},[t.isUploading?e("p",[e("span",{staticClass:"icon"},[e("icon-font",{attrs:{icon:"loading"}})],1),t._v(" "),e("span",{staticClass:"name"},[t._v("\n          "+t._s(t.content.progress.progress>=100?"Crunching...":t.content.progress.progressText)+"\n        ")])]):t.imageUrl||!t.originalFileName&&!t.filenameIcon?t._e():e("p",[t.filenameIcon?e("span",{staticClass:"icon"},[e("icon-font",{attrs:{icon:t.filenameIcon,type:"fa"}})],1):t._e(),t._v(" "),e("span",{staticClass:"name"},[t._v(t._s(t.originalFileName))])]),t._v(" "),t.editable?e("icon-font",{staticClass:"clickable",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("delete")}}}):t._e()],1),t._v(" "),t.fileData&&t.fileData.url_download?e("span",{staticClass:"style-link",attrs:{title:t.fileData.filename},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDownload.apply(null,arguments)}}},[t._v("\n      Download\n    ")]):t.isValidUrl?e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openInNewWindow.apply(null,arguments)}}},[t._v("Open in new tab")]):t._e()]),t._v(" "),e("div",{staticClass:"g-col-10 -col-inputs"},["url"===t.row.type?e("field-input",{attrs:{label:"File URL",placeholder:"https://",readonly:!t.editable,type:"url"},on:{blur:t.onInputBlur},model:{value:t.row.url,callback:function(e){t.$set(t.row,"url",e)},expression:"row.url"}}):t._e(),t._v(" "),"image"===t.blockData.type?e("field-input",{attrs:{label:"Alt text",readonly:!t.editable},on:{blur:t.onInputBlur},model:{value:t.row.alt,callback:function(e){t.$set(t.row,"alt",e)},expression:"row.alt"}}):t._e(),t._v(" "),"image"===t.blockData.type?e("field-input",{attrs:{label:"Title text",readonly:!t.editable},on:{blur:t.onInputBlur},model:{value:t.row.title,callback:function(e){t.$set(t.row,"title",e)},expression:"row.title"}}):t._e(),t._v(" "),"video"===t.blockData.type||"file"===t.blockData.type?e("field-input",{attrs:{type:"textarea",label:"About file",readonly:!t.editable},on:{blur:t.onInputBlur},model:{value:t.row.description,callback:function(e){t.$set(t.row,"description",e)},expression:"row.description"}}):t._e()],1)])},i=[]},28699:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper"},[t._l(t.blockContent,(function(n){return e("block-file-item",{key:n.id,attrs:{content:n,"block-data":t.blockData,editable:t.editable},on:{blur:function(e){return t.onContentRowBlur(n,e)},input:function(e){return t.onContentRowUpdate(n,e)},delete:function(e){return t.onDeleteRow(n)}}})})),t._v(" "),!t.editable||t.totalFilesCount&&!t.showUpload?t._e():e("div",{staticClass:"file-item-upload text-center",staticStyle:{padding:"0"}},[e("icon-font",{staticClass:"text-blue",staticStyle:{"font-size":"24px"},attrs:{icon:t.imageIcon}}),t._v(" "),e("p",{staticClass:"font-weight-500",staticStyle:{margin:"0.8em 0"}},[t._v("\n      Drag "+t._s(t.$plural(t.blockData.type,t.howManyMoreCanUpload))+" here\n    ")]),t._v(" "),e("p",{staticClass:"text-gray-darkest line-height-144"},[t._v("\n      or "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAddFromDisk.apply(null,arguments)}}},[t._v("select manually")]),t._v(",\n      choose "),e("br"),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAddFromLibrary.apply(null,arguments)}}},[t._v("from library")]),t._v(",\n      or "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAddRowUrl.apply(null,arguments)}}},[t._v("enter a URL")]),t._v(" "),t.totalFilesCount&&t.showUpload?e("span",{staticClass:"display-block"},[e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.showUpload=!1)}}},[t._v("cancel")])]):t._e()])],1),t._v(" "),t.canAddMoreRows?e("p",{staticClass:"text-right",staticStyle:{"padding-top":"1em"}},[e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.showUpload=!0)}}},[t._v("+ Add another")])]):t._e(),t._v(" "),e("div",{ref:"clickable",staticClass:"hide"})],2)},i=[]},96048:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper"},[t.editable&&t.internalValue.length?e("ul",t._l(t.internalValue,(function(n,r){return e("li",{key:n.id,staticClass:"_field draggable is-flex -flex-auto",attrs:{"data-id":n.id,"data-type":n.type}},[e("div",{staticClass:"_field-wrap -flex-full"},[e("div",{staticClass:"is-flex"},[e("div",{staticClass:"font-size-16 line-height-100",on:{dblclick:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.toggleVisible(e,n.id)}}},[t._v("\n            "+t._s(t.componentsListObject[n.type])+"\n          ")]),t._v(" "),e("icon-font",{staticClass:"clickable ml-3",attrs:{icon:t.hiddenFields.includes(n.id)?"triangle-down-sm":"triangle-up-sm"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.toggleVisible(e,n.id)}}}),t._v(" "),e("icon-font",{staticClass:"clickable g-align-self-end ml-auto",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.deleteField.apply(null,arguments)}}})],1),t._v(" "),t.hiddenFields.includes(n.id)?t._e():e("div",{staticClass:"mt-5"},[e("field-input",{attrs:{label:"Field label"},model:{value:n.label,callback:function(e){t.$set(n,"label",e)},expression:"item.label"}}),t._v(" "),t.canHaveOptions(n)?e("div",{staticClass:"mt-5"},[e("p",{staticClass:"font-size-14"},[t._v("\n              Options\n            ")]),t._v(" "),e("ul",{staticClass:"mt-5"},t._l(n.options,(function(i,o){return e("li",{key:"".concat(n.id,"-").concat(i.id),staticClass:"draggable is-flex field",attrs:{"data-id":"".concat(n.id,"-").concat(i.id)}},["checkbox"===n.type||"radio"===n.type?e("field-checkable",{staticClass:"_check non-clickable",attrs:{placeholder:!0,size:"smaller",type:n.type}}):t._e(),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:i.value,expression:"option.value"}],attrs:{type:"text"},domProps:{value:i.value},on:{input:function(e){e.target.composing||t.$set(i,"value",e.target.value)}}}),t._v(" "),e("icon-font",{staticClass:"_opt clickable",attrs:{icon:"drag"},nativeOn:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,!0)}}}),t._v(" "),e("icon-font",{staticClass:"_opt clickable",attrs:{icon:"trash"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.removeFieldOption(r,o)}}})],1)})),0),t._v(" "),e("div",{staticClass:"mt-5"},[e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.addFieldOption(r)}}},[t._v("\n                + Add option\n              ")])])]):t._e()],1)]),t._v(" "),t.internalValue.length>1?e("div",{staticClass:"_sort-wrap",class:{"non-clickable":t.isDragging}},[e("icon-font",{staticClass:"font-size-12",class:r?"clickable":"non-clickable",attrs:{icon:"up"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.reorderFields(n.id,e,-1)}}}),t._v(" "),e("icon-font",{staticClass:"clickable",attrs:{icon:"drag"},nativeOn:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,!0)}}}),t._v(" "),e("icon-font",{staticClass:"font-size-12",class:r+1<t.internalValue.length?"clickable":"non-clickable",attrs:{icon:"down"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.reorderFields(n.id,e,1)}}})],1):t._e()])})),0):t.internalValue.length?e("div",t._l(t.internalValue,(function(t){return e("form-preview",{key:t.id,attrs:{field:t}})})),1):t._e(),t._v(" "),t.editable?e("dropdown",{staticClass:"font-size-14",class:t.internalValue.length?"mt-5":null,attrs:{items:t.componentsList,"auto-open":!1,"ul-style":{top:"-0.5rem",left:"-0.5rem"}},on:{select:t.addFormComponent,open:function(e){return t.showingDropdown(!0)},close:function(e){return t.showingDropdown(!1)}}},[e("p",{style:{opacity:t.showDropdown?0:1}},[e("span",{staticClass:"button -tertiary"},[t._v("+ Add form component")])]),t._v(" "),e("p",{staticClass:"position-absolute",style:{opacity:t.showDropdown?1:0,transform:"translate(0.4rem, -1.6rem)"}},[e("span",[t._v("Select form component:")])])]):t._e()],1)},i=[]},81940:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper"},[e("div",{staticClass:"table-wrapper"},[t.tableStructure?e("table",{ref:"table",staticClass:"selectable cursor-text"},t._l(t.tableStructure,(function(n,r){return e("tr",{key:t.uniqueId+r},t._l(n,(function(n,i){return e(0===r&&t.blockContent.thead?"th":"td",{key:t.uniqueId+n.row+n.col,tag:"component",class:t.classArray?t.classArray[n.row][n.col]:null,attrs:{rowspan:n.rowspan,colspan:n.colspan,contenteditable:t.editable,"data-row":n.row,"data-col":n.col},on:{focus:function(e){return t.onRecordFocus(e,n.row,n.col)},blur:function(e){return t.onRecordUpdate(e,n.row,n.col)},paste:function(e){return t.onRecordPaste(e,n.row,n.col)},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onRecordMouseDown(e,n.row,n.col)},mouseup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onRecordMouseUp(e,n.row,n.col)}}},[t.isRevisionView?e("div",{staticClass:"is-diff-wrapper",domProps:{innerHTML:t._s(t.getRevisionRecord(r,i))}}):t._e(),t._v("\n          "+t._s(t.isRevisionView?"":n.content)+"\n        ")])})),1)})),0):t.editable?e("div",{staticClass:"g-grid g-align-end g-grid-bleed-y"},[e("div",{staticClass:"g-col-5 g-col-bleed-left"},[e("field-input",{attrs:{type:"number",label:"Column count"},model:{value:t.newTable.cols,callback:function(e){t.$set(t.newTable,"cols",e)},expression:"newTable.cols"}})],1),t._v(" "),e("div",{staticClass:"g-col-5"},[e("field-input",{attrs:{type:"number",label:"Row count"},model:{value:t.newTable.rows,callback:function(e){t.$set(t.newTable,"rows",e)},expression:"newTable.rows"}})],1),t._v(" "),e("div",{staticClass:"g-col-2 g-col-bleed-right"},[e("div",{staticClass:"button -primary -small -block",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onTableCreate.apply(null,arguments)}}},[t._v("\n          Create\n        ")])])]):t._e(),t._v(" "),t.highlight?e("span",{staticClass:"highlighter",class:t.highlight.type,style:t.highlight.style}):t._e()]),t._v(" "),t.tableStructure&&!t.blockContent.lock&&t.editable?e("portal",{attrs:{to:"".concat(t.id,"-block-header")}},[e("span",t._l(t.tableControls,(function(n){return e("has-tooltip",{key:n.id,staticClass:"_btn",class:n.className,attrs:{tag:"span",tooltip:n.tooltip},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)},mouseenter:function(e){return t.onButtonMouseEnter(n.className)},mouseleave:function(e){return t.onButtonMouseLeave.apply(null,arguments)}}},[n.label?e("span",[t._v(t._s(n.tooltip))]):t._e()])})),1)]):t._e()],1)},i=[]},46648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ps-padding",style:{paddingTop:t.isRevisionViewer?0:null}},[t.xIsPageLoading?e("component-loading"):e("div",{ref:"blocks",staticClass:"content-editor"},[t.xContentBlocks.length?e("ul",{class:{"non-clickable":t.xContentPageData.editBlocked}},t._l(t.xContentBlocks,(function(n,r){return e("block-item",{key:n.uuid||n.id,attrs:{id:n.id,index:r,editable:t.pageIsEditable&&!t.pageIsLocked,deletable:!t.hasTemplate,movable:!t.hasTemplate},on:{change:function(e){return t.onBlockContentChange(n.id)}}})})),1):!t.pageIsEditable||t.pageIsLocked||t.hasTemplate?t._e():e("div",[e("p",{staticClass:"text-center line-height-144"},[t._v("\n          Start creating your page!\n          "),e("br"),t._v("\n          Add any content block to begin.\n        ")]),t._v(" "),e("hr",{staticClass:"spacer-200"}),t._v(" "),e("div",{staticClass:"ui-content -empty"},[e("span",[t._v("Drag content block here")])])]),t._v(" "),t.isRevisionViewer?t._e():e("block-metadata",{ref:"meta",attrs:{"cell-id":t.cellId,editable:t.pageIsEditable&&!t.pageIsLocked},on:{change:t.onMetaChange}})],1),t._v(" "),t.xIsPageLoading||!t.pageIsEditable||t.pageIsLocked||t.hasTemplate?t._e():e("blocks-menu")],1)])},i=[]},22784:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ps-padding"},[t.xIsPageLoading?e("component-loading"):e("div",{staticClass:"content-editor -template"},[t.xContentBlocks.length?e("ul",t._l(t.xContentBlocks,(function(n,r){return e("block-item",{key:n.id,attrs:{id:n.id,index:r,editable:!0,"is-template":!0},on:{change:t.onBlocksChange}})})),1):e("div",[e("p",{staticClass:"text-center line-height-144"},[t._v("\n          Start creating your template!\n          "),e("br"),t._v("\n          Add any content block to begin.\n        ")]),t._v(" "),e("hr",{staticClass:"spacer-200"}),t._v(" "),e("div",{staticClass:"ui-content -empty"},[e("span",[t._v("Drag content block here")])])]),t._v(" "),e("block-metadata",{attrs:{editable:!0},on:{change:function(e){return t.throttledSave({metadata:{data:e.field,mode:"merge"}})}}})],1),t._v(" "),t.xIsPageLoading?t._e():e("blocks-menu")],1)])},i=[]},10532:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ps-padding",class:t.canModifyContentTools?"ps-padding-top-large":"ps-padding-top-none"},[t.xIsPageLoading?e("component-loading"):t.xSitemapCells.length?e("div",{staticClass:"content-planner text-left clearfix",staticStyle:{padding:"0 15px 15px"}},[e("pages-table"),t._v(" "),e("div",{staticClass:"float-right",style:{width:"340px"}},[e("div",{staticClass:"style-block",style:{padding:"24px",marginTop:t.xContentFilters.bar_full?"69px":"10px"}},[e("div",{staticClass:"style-block-title"},[t.$root.userCan(t.permissionsProject.MANAGE_CONTENT)?e("span",{staticClass:"button -secondary -smallest float-right",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.changeRoute("workflow")}}},[t._v("\n            Manage\n          ")]):t._e(),t._v(" "),e("p",{staticClass:"font-size-16"},[t._v("\n            Workflow status\n          ")])]),t._v(" "),e("partial-workflow",{staticClass:"style-block-content"})],1),t._v(" "),t.isContentToolAvailable?e("div",{staticClass:"style-block",staticStyle:{padding:"24px"}},[e("div",{staticClass:"style-block-title"},[e("span",{staticClass:"button -secondary -smallest float-right",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.changeRoute("activity-log")}}},[t._v("\n            View all\n          ")]),t._v(" "),e("p",{staticClass:"font-size-16"},[t._v("\n            Recent activity\n          ")])]),t._v(" "),e("div",{staticClass:"style-block-content"},[e("ul",{staticClass:"activity-log"},t._l(t.lastActivity,(function(t){return e("log-item",{key:t.id,staticClass:"clearfix",attrs:{log:t}})})),1)])]):t._e()])],1):e("div",[e("div",{staticClass:"centered-container text-center"},[e("image-tag",{attrs:{src:"/images/illustrations/empty-content.png",retina:!0}}),t._v(" "),e("hr",{staticClass:"spacer-225"}),t._v(" "),e("p",{staticClass:"font-size-28 font-weight-700"},[t._v("\n        Add content to pages\n      ")]),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),e("p",{staticClass:"line-height-166"},[t._v("\n        To begin using the content planner add some pages with the site builder first.\n      ")]),t._v(" "),t.isProjectEditable?e("hr",{staticClass:"spacer-150"}):t._e(),t._v(" "),t.isProjectEditable?e("div",{staticClass:"button -primary",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.changeRoute()}}},[t._v("\n        Add Pages\n      ")]):t._e()],1)])],1)},i=[]},10360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){this._self._c;return this._m(0)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"field",attrs:{"data-tag":t.field.type.toUpperCase()}},["text"===t.field.type?e("field-input",{attrs:{label:t.field.label,readonly:t.readonly}}):"textarea"===t.field.type?e("div",{staticClass:"field textarea"},[t.field.label?e("label",[t._v("\n      "+t._s(t.field.label)+"\n    ")]):t._e(),t._v(" "),e("field-textarea",{attrs:{readonly:t.readonly}})],1):"file"===t.field.type?e("div",{staticClass:"field"},[t.field.label?e("label",[t._v("\n      "+t._s(t.field.label)+"\n    ")]):t._e(),t._v(" "),e("input",{staticClass:"non-clickable",attrs:{type:"file",readonly:t.readonly}})]):"checkbox"===t.field.type||"radio"===t.field.type?e("div",[t.field.label?e("label",[t._v("\n      "+t._s(t.field.label)+"\n    ")]):t._e(),t._v(" "),t._l(t.field.options,(function(n){return e("field-checkable",{key:n.id,attrs:{type:t.field.type,name:"checkbox"===t.field.type?"".concat(t.field.id,"[]"):t.field.id,size:"smaller",readonly:t.readonly}},[t._v("\n      "+t._s(n.value)+"\n    ")])}))],2):"select"===t.field.type?e("field-select",{attrs:{options:t.fieldOptions,label:t.field.label,readonly:t.readonly}}):t._e()],1)}]},58044:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.isValidLog?e("li",[e("div",{staticClass:"avatar"},[t.logUser?e("user-avatar",{staticClass:"avatar-xl",attrs:{user:t.logUser,tooltip:!1,"display-empty":!0}}):t._e()],1),t._v(" "),e("div",{staticClass:"description"},[e("p",[t._l(t.parsedLog.text,(function(n){return[":user"===n?e("span",{staticClass:"font-weight-700",style:{textDecoration:t.logUser?null:"line-through"}},[t._v("\n          "+t._s(t.logUser?t.logUser.name:"Deleted User")+"\n        ")]):":page"===n?e("span",{class:{"style-link":t.parsedLog.cell_id&&t.parsedLog.cell},style:{textDecoration:t.parsedLog.cell?null:"line-through"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onPageClick(t.parsedLog)}}},[t._v("\n          "+t._s(t.parsedLog.cell||t.parsedLog.meta.cell_name_id||"Deleted Page")+"\n        ")]):":status"===n?e("span",{staticClass:"font-weight-500"},[t.parsedLog.status?e("span",{staticClass:"workflow-status ml-2",style:{backgroundColor:t.parsedLog.status.color}}):t._e(),t._v(" "),e("span",{style:{textDecoration:t.parsedLog.status?null:"line-through"}},[t._v("\n            "+t._s((t.parsedLog.status?t.parsedLog.status.name:"")||t.parsedLog.meta.sitemap_data_id||"Deleted Status")+"\n          ")])]):":template"===n&&t.parsedLog.meta?e("span",[t._v("\n          "+t._s(t.parsedLog.meta.template_name||t.contentTemplates[t.parsedLog.meta.template_id]||"Deleted Template")+"\n        ")]):null!==n&&":"!==n.charAt(0)?e("span",[t._v("\n          "+t._s(n)+"\n        ")]):t._e()]}))],2),t._v(" "),e("small",[t._v(t._s(t.parsedLog.created_at))])])]):t._e()},i=[]},46437:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("li",{staticClass:"g-grid g-align-center",class:{"g-align-center":1===t.level,"row-single":1===t.level,"no-hover":1===t.level,"row-nested":!t.breadcrumbs&&t.page.childs}},[e("div",{staticClass:"g-col-auto col-name text-overflow",class:{"with-breadcrumbs":t.hasBreadcrumbs,selected:t.isSelected,"no-hover":!t.isProjectEditable||!t.isToolAvailable}},[t.isProjectEditable&&t.isToolAvailable?e("field-checkable",{attrs:{placeholder:!0,size:t.level>2?"smaller":"",checked:t.isSelected},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.toggleSelection.apply(null,arguments)}}}):t._e(),t._v(" "),e("div",{class:{helper:!t.hasBreadcrumbs&&!t.breadcrumbs&&t.page.childs}},[e("span",{staticClass:"_name"},[e("span",{staticClass:"workflow-status -with-margin",style:{backgroundColor:t.page.status_color||t.unassignedColor()}}),t._v(" "),e("span",{staticClass:"style-link-invert",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick.apply(null,arguments)}}},[t._v(t._s(t.page.text))]),t._v(" "),t.page.has_section?e("has-tooltip",{attrs:{tooltip:"Go to section",tag:"span"}},[e("icon-font",{staticClass:"clickable",attrs:{icon:"link-external"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$store.commit("content/setCurrentSection",t.page[t.constants.CELL_DATA_KEY_SUBSECTION])}}})],1):t._e()],1),t._v(" "),t.hasBreadcrumbs?e("span",{staticClass:"breadcrumbs"},[t._l(t.page.breadcrumbs,(function(n,r){return[r>0?e("icon-font",{attrs:{icon:"right-thin"}}):t._e(),t._v("\n          "+t._s(n.text)+"\n        ")]}))],2):!t.breadcrumbs&&t.page.childs?e("icon-font",{staticClass:"clickable",attrs:{icon:t.subpagesVisible?"triangle-up-sm":"triangle-down-sm"},nativeOn:{click:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onClickExpandCollapse.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:e.shiftKey?t.onClickExpandCollapseAll.apply(null,arguments):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:e.ctrlKey?t.onClickExpandCollapseAll.apply(null,arguments):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:e.metaKey?t.onClickExpandCollapseAll.apply(null,arguments):null}]}}):t._e()],1)],1),t._v(" "),e("div",{staticClass:"g-col-auto col-data text-overflow"},[t.page[t.constants.CELL_DATA_KEY_CONTENT_TEMPLATE]&&t.page.template_name?e("span",{class:{"style-link":t.$root.userCan(t.permissionsProject.MANAGE_CONTENT)},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onTemplateClick.apply(null,arguments)}}},[t._v("\n      "+t._s(t.page.template_name)+"\n    ")]):e("span",{staticClass:"text-gray-darkest"},[t._v("No template")])]),t._v(" "),e("div",{staticClass:"g-col-auto col-data",class:{"text-red":t.isOverdue}},[t._v("\n    "+t._s(t.page[t.constants.CELL_DATA_KEY_CONTENT_DUE_DATE]||"")+"\n  ")]),t._v(" "),e("div",{staticClass:"g-col-auto col-data"},[t._v("\n    "+t._s(t.page[t.constants.CELL_DATA_KEY_CONTENT_UPDATED_AT]||"")+"\n  ")]),t._v(" "),e("div",{staticClass:"g-col-auto g-col-bleed-y col-data text-overflow"},[t.assignee.length?e("user-avatars",{attrs:{users:t.assignee,limit:4,size:t.level>2?"xs":"sm"}}):t._e()],1),t._v(" "),t.subpages.length?e("ul",{staticClass:"g-col-12 row-child"},t._l(t.subpages,(function(n){return e("tree-table-row",{key:n.id,attrs:{level:t.level+1,page:n,"expand-on-init":"all"===t.subpagesVisible}})})),1):t._e()])},i=[]},42232:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"workflow-bar",style:t.workflowBarBackground}),t._v(" "),e("ol",{staticClass:"listing statuses-list no-wrap"},t._l(t.xContentStatuses,(function(n){return e("li",{key:n.alias,staticClass:"font-size-14",attrs:{title:n.name}},[e("i",{staticClass:"icon"},[e("span",{staticClass:"workflow-status -with-margin",style:{backgroundColor:n.color}})]),t._v(" "),e("span",{class:{"cursor-pointer":t.statusesCount[n.alias]>0},style:{textDecoration:t.excludeStatuses.includes(n.alias)?"line-through":null},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.filterStatus(n.alias)}}},[t._v("\n        "+t._s(n.name)+"\n        "),t.statusesCount[n.alias]?e("span",[t._v("("+t._s(t.statusesCount[n.alias])+")")]):t._e()])])})),0)])},i=[]},59112:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"blocks-preview style-content text-left selectable",class:{"-as-blocks":t.isBlocksMode}},[t.preprocessedBlocks.length<1?e("div",[e("p",{staticClass:"text-gray-darkest text-center",staticStyle:{padding:"3em 0"}},[t._v("\n      No content\n    ")])]):t._e(),t._v(" "),t._l(t.preprocessedBlocks,(function(n){return e("div",{key:n.id,staticClass:"_block-wrap",class:{"-active":n.id===t.activeBlock}},[t.isBlocksMode?e("div",{staticClass:"metabar2 is-flex"},[e("div",{staticClass:"_bar"},[e("p",[t._v(t._s(t.blockLabel(n)))]),t._v(" "),n.note?e("p",{staticClass:"text-gray-darkest",staticStyle:{"font-style":"italic"}},[t._v("\n          "+t._s(n.note)+"\n        ")]):t._e()]),t._v(" "),n.buttons.length?e("div",[e("buttons-list",{staticStyle:{margin:"0"},attrs:{buttons:n.buttons,rotate:!0}})],1):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"_block prose",class:"-"+n.type},[n.options.tag_html_before?e("pre",{staticClass:"_tag"},[t._v(t._s(n.options.tag_html_before))]):t._e(),t._v(" "),t.isBlocksMode&&t.isEmpty(n)?e("div",[e("p",{staticClass:"text-gray-darkest"},[t._v("\n          No content\n        ")])]):"wysiwyg"===n.type?e("div",{domProps:{innerHTML:t._s(n.content)}}):"code"===n.type?e("div",[e("prism-editor",{attrs:{highlight:t.highlighter,"line-numbers":!0,readonly:!0},model:{value:n.content,callback:function(e){t.$set(n,"content",e)},expression:"block.content"}})],1):"table"===n.type?e("div",[e("content-table-preview",{attrs:{id:n.id,"block-content":n.content}})],1):"file"===n.type?e("div",t._l(n.content,(function(r,i){return e("p",{key:i},[r.url?e("a",{attrs:{href:r.url,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(r.url))]):r.file_data&&r.file_data.url_download?e("a",{attrs:{href:r.file_data.url_download,target:"_blank",rel:"noreferrer noopener"}},[r.file_data.fa_icon?e("icon-font",{attrs:{icon:r.file_data.fa_icon,type:"fa"}}):t._e(),t._v("\n            "+t._s(r.file_data.filename||n.type)+"\n          ")],1):t._e(),t._v(" "),r.description?e("cite",{staticStyle:{display:"block","white-space":"pre-line"}},[t._v(t._s(r.description))]):t._e()])})),0):"image"===n.type?e("div",t._l(n.content,(function(r,i){var o,a,s,l,c;return e("p",{key:i},[null!==(o=r.file_data)&&void 0!==o&&o.url_preview||null!==(a=r.file_data)&&void 0!==a&&a.url_full||r.url?e("img",{attrs:{src:(null===(s=r.file_data)||void 0===s?void 0:s.url_preview)||(null===(l=r.file_data)||void 0===l?void 0:l.url_full)||r.url,alt:r.alt||(null===(c=r.file_data)||void 0===c?void 0:c.filename)||n.type,title:r.title||"",loading:"lazy",decoding:"async"}}):t._e()])})),0):"video"===n.type?e("div",t._l(n.content,(function(r,i){return e("p",{key:i},[r.url?e("a",{attrs:{href:r.url,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(r.url))]):r.file_data&&r.file_data.url_thumb&&r.file_data.url_download?e("a",{attrs:{href:r.file_data.url_download,target:"_blank",rel:"noreferrer noopener"}},[e("img",{attrs:{src:r.file_data.url_thumb,alt:r.file_data.filename||n.type,loading:"lazy",decoding:"async"}})]):r.file_data&&r.file_data.url_thumb?e("img",{attrs:{src:r.file_data.url_thumb,alt:r.file_data.filename||n.type,loading:"lazy",decoding:"async"}}):t._e(),t._v(" "),r.description?e("cite",{staticStyle:{display:"block","white-space":"pre-line"}},[t._v(t._s(r.description))]):t._e()])})),0):"info"===n.type?e("div",[t._v("\n        "+t._s(n.content)+"\n      ")]):"form"===n.type?e("div",[e("form",{attrs:{action:"#",method:"post",onsubmit:"return false"}},t._l(n.content,(function(t){return e("form-preview",{key:t.id,attrs:{field:t}})})),1)]):e("div",[e(n.options.tag&&"html"!==n.options.tag&&"script"!==n.options.tag?n.options.tag:"div",{tag:"component",domProps:{innerHTML:t._s(n.content)}})],1),t._v(" "),n.options.tag_html_after?e("pre",{staticClass:"_tag"},[t._v(t._s(n.options.tag_html_after))]):t._e()])])})),t._v(" "),e("block-metadata",{attrs:{"cell-id":t.xCurrentCellAlias,editable:!1}})],2)},i=[]},39668:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container-auto float-left",staticStyle:{width:"calc(100% - 364px)"}},[e("div",{style:{width:t.xContentFilters.bar_full?"calc(100% + 364px)":null}},[e("div",{staticClass:"g-grid g-align-center g-justify-end g-no-wrap"},[e("div",{staticClass:"g-col-auto-full g-col-bleed-y"},[e("div",{staticClass:"toolbar-search -fixed-width -z1 clearfix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],class:{focus:t.hasSearch},attrs:{placeholder:"Search for pages..."},domProps:{value:t.searchQuery},on:{input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}}),t._v(" "),t.hasSearch?e("icon-font",{staticClass:"clickable clear",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.searchQuery="")}}}):t._e()],1)]),t._v(" "),e("div",{ref:"filters",staticClass:"g-col-auto g-col-bleed-y"},[e("filters-reset",{attrs:{type:"content",count:t.countFilters},on:{reset:t.resetFilters}}),t._v(" "),t._l(t.availableFilters,(function(n){return e("dropdown",{key:n.id,staticClass:"font-size-14",attrs:{label:n.label,items:n.filters,multiple:n.multiple,html:n.html,"select-by":n.selectBy,selected:"section"===n.id?t.xContentSectionId:"language"===n.id?t.xContentLanguage:t.xContentFilters[n.id]},on:{select:function(e){return t.filterChange(n.id,e)}},scopedSlots:t._u(["status"===n.id?{key:"item",fn:function(n){var r=n.data;return[e("div",{staticClass:"workflow-status",style:{backgroundColor:r.color}}),t._v(" "),e("div",[t._v(t._s(r.name))])]}}:null,{key:"selectedValue",fn:function(e){var r=e.value;return[t._v("\n            "+t._s(t.parseFilterName(n.id,r))+"\n          ")]}}],null,!0)})}))],2)]),t._v(" "),t._m(0)]),t._v(" "),e("div",{ref:"table"},[t.topLevelPages.length?e("ul",{staticClass:"ui-listing -smaller -with-grid _content-dashboard",class:{"-read-only":!t.isProjectEditable}},[e("listing-head",{attrs:{columns:t.headers,sort:t.sort,resettable:[null,"asc"]},on:{sort:function(e){t.sort=e}}}),t._v(" "),t._l(t.topLevelPages,(function(n){return e("tree-table-row",{key:n.id,attrs:{level:1,page:n,breadcrumbs:t.hasSearch||t.hasFilters,"expand-on-init":t.allFilteredPages.length<=40}})}))],2):e("div",{staticClass:"text-center"},[e("hr",{staticClass:"spacer-150"}),t._v(" "),e("p",{staticClass:"font-size-14 line-height-166"},[t._v("\n        No pages found\n      ")])]),t._v(" "),t.xBarIsVisible?e("portal",{attrs:{to:"actionBar-afterButtons"}},[e("span",{class:{"non-clickable":t.currentSavingData}},t._l(t.actionBarButtons,(function(n){return e("span",{key:n.id,ref:n.id,refInFor:!0,staticClass:"button-item item-wider",class:t.currentSavingData?"cursor-not-allowed":"cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.openPopover(e,n.id)}}},[e("icon-loading",{attrs:{status:t.currentSavingData===n.id}},[e("icon-font",{attrs:{icon:n.icon}})],1),t._v(" "),e("span",{staticClass:"non-clickable",class:{"text-gray-darkest":t.currentSavingData===n.id}},[t._v("\n            "+t._s(n.label)+"\n          ")])],1)})),0)]):t._e()],1)])},i=[function(){var t=this._self._c;return t("div",{staticClass:"g-grid"},[t("div",{staticClass:"g-col-12 g-col-bleed-y"},[t("hr",{staticClass:"bg-gray-darker"})])])}]},86852:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this;return(0,t._self._c)("page-listing",{key:"templates",staticClass:"ps-padding ps-padding-top-toolbar",attrs:{items:t.xContentTemplates,description:{heading:"Add your first template",text:["Templates are used when you have multiple","pages that share the same structure."],link:"templates"},"description-list":!1,buttons:t.buttons,"action-bar-links":t.actionBarLinks,grid:[5,2,2,3],head:[{id:"name",label:"Template name"},{id:"pages_count",label:"Assigned to"},{id:"timestamp",label:"Last updated"}],"default-sort":["name","asc"],selectable:t.isContentToolAvailable}})},i=[]},15960:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ps-padding ps-padding-top-toolbar"},[t.xIsPageLoading?e("component-loading"):e("workflow-status-list",{attrs:{list:t.xContentStatuses,"is-editable":t.isProjectEditable}},[t.isProjectEditable?e("div",{staticClass:"g-container-narrow"},[e("div",{staticClass:"g-grid g-justify-space-between g-align-center list-buttons"},[e("div",{staticClass:"g-col-12 text-right"},[t.globalWorkflows.length?e("span",{staticClass:"button -plain -highlight -small",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onImportGlobal.apply(null,arguments)}}},[t._v("Import")]):t._e(),t._v(" "),e("span",{staticClass:"button -primary -small",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onForm.apply(null,arguments)}}},[t._v("+ Add status")])])])]):t._e()]),t._v(" "),t.xIsPageLoading?t._e():e("div",{staticClass:"g-container-narrow mt-3"},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-8 g-offset-2 text-center"},[e("p",{staticClass:"font-size-12 line-height-144 text-gray-darkest"},[t._v("\n          Manage your project’s workflow here. Create new statuses or customize existing ones. They can be dragged\n          below to re-order them.\n          "),e("link-help",{staticClass:"style-link",attrs:{id:"content_workflow"}},[t._v("\n            Learn more in the help section.\n          ")])],1)]),t._v(" "),t.statusesDropdown.length?e("portal",{attrs:{to:"modal-confirm"}},[e("div",{staticStyle:{"margin-top":"1em"}},[e("field-checkable",{attrs:{size:"small"},model:{value:t.reassign,callback:function(e){t.reassign=e},expression:"reassign"}},[t._v("\n            Reassign pages to a different status\n          ")]),t._v(" "),e("field-select",{directives:[{name:"show",rawName:"v-show",value:t.reassign,expression:"reassign"}],attrs:{options:t.statusesDropdown,label:"Status"},model:{value:t.reassignTo,callback:function(e){t.reassignTo=e},expression:"reassignTo"}})],1)]):t._e()],1)])],1)},i=[]},64724:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper"},[e("app-title-heading",{attrs:{border:!1},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticClass:"anim-wiggle"},[t._v("👋🏻")]),t._v("\n      "+t._s(t.$trans("messages.welcome",{name:t.xAccountData.first_name}))+"\n    ")]},proxy:!0},{key:"buttons",fn:function(){return[e("span",{ref:"createButton",staticClass:"button -primary",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.createProject.apply(null,arguments)}}},[t._v("\n        + "+t._s(t.$trans("new_project"))+"\n      ")])]},proxy:!0}])}),t._v(" "),e("dashboard-filters"),t._v(" "),e("projects-listing",{attrs:{"is-loading":t.lazyLoad}}),t._v(" "),t.hasFiltersNoResults||!t.xProjectsFiltered.length?e("div",{staticClass:"g-container margin-medium"},[e("div",{staticClass:"g-grid g-align-center g-justify-space-around"},[e("div",{staticClass:"g-col-6 text-center"},[t.hasFiltersNoResults?e("div",[e("hr",{staticClass:"spacer-150"}),t._v(" "),e("p",{staticClass:"line-height-166"},[t._v("\n            "+t._s(t.$trans("messages.no_projects_found"))+",\n            "),e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.xResetFilters.apply(null,arguments)}}},[t._v("\n              "+t._s(t.$trans("messages.reset_filters"))+"\n            ")])])]):e("div",[e("hr",{staticClass:"spacer-75"}),t._v(" "),e("image-tag",{attrs:{src:"/images/illustrations/empty-dashboard.png",retina:!0}}),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("p",{staticClass:"font-size-28 font-weight-700 line-height-166"},[t._v("\n            "+t._s(t.$trans("messages.create_your_first_project"))+"\n          ")]),t._v(" "),e("p",{staticClass:"line-height-166"},[t._v("\n            "+t._s(t.$trans("messages.create_your_first_project_description"))+"\n          ")]),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("span",{staticClass:"button -primary",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.createProject.apply(null,arguments)}}},[t._v("+ "+t._s(t.$trans("new_project")))])],1)])])]):t._e(),t._v(" "),e("div",{staticClass:"text-center",attrs:{id:"mobile-overlay"}},[e("image-tag",{attrs:{src:"/images/illustrations/empty-dashboard.png",retina:!0}}),t._v(" "),e("p",{staticClass:"font-size-28 font-weight-700 line-height-166"},[e("span",{staticClass:"anim-wiggle"},[t._v("👋🏻")]),t._v("\n      Welcome "+t._s(t.xAccountData.first_name)+"\n    ")]),t._v(" "),e("p",{staticClass:"line-height-166"},[t._v("\n      To begin creating new projects please login through a desktop browser.\n    ")])],1)],1)},i=[]},192:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container sticky-toolbar"},[e("div",{staticClass:"g-grid g-align-center g-justify-end g-no-wrap"},[e("div",{staticClass:"g-col-auto-full g-col-bleed-y"},[e("div",{staticClass:"toolbar-search -fixed-width clearfix"},[e("input",{class:{focus:t.xFilters.search},attrs:{id:"field-filter-search",placeholder:t.$trans("inputs.search_for_projects")},on:{keyup:function(e){return t.filterChange("search",e.target.value)}}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}}),t._v(" "),t.xFilters.search?e("icon-font",{staticClass:"clickable clear",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.setSearchFieldValue("",!0)}}}):t._e()],1)]),t._v(" "),e("div",{staticClass:"g-col-auto g-col-bleed-y"},t._l(t.availableFilters,(function(n,r){return e("dropdown",{key:r,staticClass:"font-size-14",attrs:{label:n.label,items:n.filters,selected:t.xFilters[r]},on:{select:function(e){return t.filterChange(r,e)}}})})),1),t._v(" "),e("div",{staticClass:"g-col-auto g-col-bleed-y"},[e("buttons-view",{on:{update:function(e){return t.filterChange("view",e)}}})],1)]),t._v(" "),t._m(0)])},i=[function(){var t=this._self._c;return t("div",{staticClass:"g-grid"},[t("div",{staticClass:"g-col-12 g-col-bleed-y"},[t("hr",{staticClass:"bg-gray-darker"})])])}]},86056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-col-3 row-single project buttons-list-handler",class:{selected:t.isSelected},attrs:{id:"project-".concat(t.project.alias)},on:{mouseenter:function(e){t.isHovering=!0},mouseleave:function(e){t.isHovering=!1}}},[e("div",{staticClass:"g-grid g-align-center g-grid-bleed project-inner"},[e("div",{staticClass:"g-col-auto-full column-name"},[e("field-checkable",{attrs:{placeholder:!0,checked:t.isSelected},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.rowSelected.apply(null,arguments)}}}),t._v(" "),e("div",{staticClass:"label",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void("archived"===t.project.status&&t.rowSelected())}}},["grid"===t.xFilters.view?e("div",{staticClass:"g-grid g-align-center logo"},[e("div",{staticClass:"g-col-auto-full"},[e("image-tag",{staticStyle:{"max-width":"100%"},attrs:{src:t.project.logo||t.defaultLogo}})],1)]):t._e(),t._v(" "),e("span",{staticClass:"name text-navy",class:{"cursor-pointer":"archived"!==t.project.status},attrs:{title:t.project.title},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.editProject.apply(null,arguments)}}},[t._v("\n          "+t._s(t.project.title)+"\n        ")]),t._v(" "),e("p",{staticClass:"meta text-gray-darkest font-size-13"},[e("span",[t._v(t._s(t.project.created_at))]),t._v(" "),e("span",[t._v(t._s(t.$trans("changed",{date:t.project.updated_at})))])])])],1),t._v(" "),e("div",{staticClass:"g-col-auto column-type"},[t._m(0)]),t._v(" "),e("div",{staticClass:"g-col-auto column-version font-size-14"},["sitemap"===t.project.type&&t.project.versions.length<=1?e("ul",{staticClass:"ui-dropdown is-empty"},[e("li",[e("p",[t._v("\n            "+t._s(t.project.version)+"\n            "),e("icon-font",{staticClass:"text-gray-darker",attrs:{icon:"triangle-down-sm"}})],1)])]):"sitemap"===t.project.type?e("dropdown",{attrs:{items:t.project.versions,selected:t.project.alias,"select-by":{key:"alias",value:"version"}},on:{select:t.onVersionSelect},scopedSlots:t._u([{key:"selectedValue",fn:function(){return[t._v("\n          "+t._s(t.project.version)+"\n        ")]},proxy:!0}])}):e("span",[t._v(" ")])],1),t._v(" "),e("user-avatars",{staticClass:"g-col-auto column-contributors",attrs:{users:t.project.contributors,limit:4}}),t._v(" "),e("div",{staticClass:"g-col-auto column-actions text-right"},[e("buttons-list",{attrs:{buttons:t.projectButtons,menu:!1}})],1)],1)])},i=[function(){var t=this;return(0,t._self._c)("p",{staticClass:"text-gray-darkest font-size-14"},[t._v("\n        "+t._s(t.$trans("diagram"===t.project.type?"user_flow_diagram":"site_planning_project"))+"\n      ")])}]},56632:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:t.xProjectsFiltered.length,expression:"xProjectsFiltered.length"}],ref:"projects-listing",staticClass:"g-container g-container-bleed rows-listing",class:t.containerClass},[e("div",{staticClass:"g-grid g-grid-bleed g-justify-space-between"},[t._l(t.filteredProjects,(function(t){return e("listing-item",{key:t.key,attrs:{project:t}})})),t._v(" "),t.isLoading?e("div",{staticClass:"g-col-3 row-single project lazy-load"},[e("div",{staticClass:"g-grid g-align-content-center g-align-center"},[e("div",{staticClass:"g-col-12 font-size-21 line-height-0 text-gray-darkest"},[e("icon-font",{key:"loading",attrs:{icon:"loading"}})],1)])]):t._e(),t._v(" "),e("div",{staticClass:"g-col-3 row-single project new font-size-16 cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.createProject.apply(null,arguments)}}},[e("div",{staticClass:"g-grid g-align-content-center g-align-center"},[e("div",{staticClass:"g-col-auto font-size-21 line-height-0 text-gray-darkest"},[e("icon-font",{key:"add",attrs:{icon:"add-o",anim:"color"}})],1),t._v(" "),t._m(0)])]),t._v(" "),t._l(t.blocksFill,(function(t){return e("div",{key:t,staticClass:"g-col-3 project placeholder"})}))],2)])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-col-auto-full text-navy margin-small"},[e("p",[t._v(t._s(t.$trans("add_new_project")))])])}]},99560:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-wrapper project-wrapper project-sitemap no-padding is-shared"},[e("project-header",{style:{width:t.projectWidth+"px"}},[e("diagram-header")],1),t._v(" "),e("scrollable",{attrs:{id:"project-scrollable",width:t.projectWidth,height:t.projectHeight,x:!0}},[e("router-view")],1),t._v(" "),e("router-view",{attrs:{name:"helper"}})],1)},i=[]},32728:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ps-padding-bottom"},[t.xIsPageLoading?e("component-loading"):t.xDiagramsList.length?e("diagrams-listing"):e("diagrams-empty")],1)},i=[]},49544:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("project-toolbar"),t._v(" "),e("panel"),t._v(" "),t.isProjectStructureEditable?e("diagram-sidebar"):t._e(),t._v(" "),t.isProjectStructureEditable?e("diagram-batch-edit"):t._e(),t._v(" "),t.isProjectShared?t._e():e("websocket-chat")],1)},i=[]},53674:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"_buttons"},t._l(t.buttons,(function(n){return e("has-tooltip",{key:n.icon,staticClass:"cursor-pointer",attrs:{tooltip:n.tooltip,tag:"li"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[t._o(e("icon-font",{staticClass:"font-size-14",attrs:{icon:n.icon}}),0,n.icon)],1)})),1)},i=[]},17800:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"centered-container text-center"},[e("image-tag",{attrs:{src:"/images/illustrations/empty-diagram.png",retina:!0}}),t._v(" "),e("hr",{staticClass:"spacer-225"}),t._v(" "),e("p",{staticClass:"font-size-28 font-weight-700"},[t._v("\n    Add your first diagram\n  ")]),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),e("p",{staticClass:"line-height-166"},[t.xSitemapCells.length?e("span",[t._v("Diagrams are a great way to show various structures"),e("br"),t._v("and flows, e.g. your users path to complete a task.")]):e("span",[t._v("To begin using the diagram maker add some pages with the site builder first.")]),t._v(" "),t.xSitemapCells.length?e("link-help",{staticClass:"style-link",attrs:{id:"diagrams"}},[t._v("\n      Need help?\n    ")]):t._e()],1),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),t._l(t.buttons,(function(n,r){return e("div",{class:["button",r+1===t.buttons.length?"-primary":"-plain -highlight"],on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[t._v("\n    "+t._s(n.label)+"\n  ")])}))],2)},i=[]},98312:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container mockups-grid"},[e("div",{staticClass:"ui-listing",class:"-cols-".concat(t.xFilters.columns)},t._l(t.xFilteredSortedDiagrams,(function(n){return e("div",{key:n.alias,staticClass:"row-single"},[e("p",{staticClass:"_page text-overflow",attrs:{title:n.title}},[e("span",{staticClass:"style-link-invert cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDiagramOpen(n.alias)}}},[t._v(t._s(n.title))])]),t._v(" "),e("div",{staticClass:"_head"},[e("user-avatars",{staticClass:"_users",attrs:{users:n.users,limit:t.avatarsLimit,size:"sm","with-avatars":!0,tooltip:n.users.length>1}}),t._v(" "),1===n.users.length?e("div",{staticClass:"_user text-overflow"},[t._v("\n          "+t._s(t.xGetTeamMemberData(n.users[0],"name"))+"\n        ")]):t._e(),t._v(" "),n.comments>0?e("div",{staticClass:"_comments clickable",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDiagramOpen(n.alias)}}},[e("icon-font",{attrs:{icon:"chat"}}),t._v(" "),e("div",[t._v(t._s(n.comments))])],1):t._e()],1),t._v(" "),e("div",{staticClass:"_thumbs -with-border clickable",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDiagramOpen(n.alias)}}},[e("img",{attrs:{src:n.url_thumb,loading:"lazy",decoding:"async"}})]),t._v(" "),e("div",{staticClass:"_foot"},[e("div",{staticClass:"_meta1"},[e("p",[t._v(t._s(n.cell_name))]),t._v(" "),e("p",[t._v("Updated "+t._s(n.updated_at))])]),t._v(" "),e("div",{staticClass:"_meta3 text-right"},[n.workflow_status&&t.workflowStatuses[n.workflow_status]?e("div",{staticClass:"workflow-status-block -mockup",style:{backgroundColor:t.workflowStatuses[n.workflow_status].color}},[t._v("\n            "+t._s(t.workflowStatuses[n.workflow_status].name)+"\n          ")]):t._e(),t._v(" "),e("diagram-buttons",{attrs:{diagram:n}})],1)])])})),0)])},i=[]},73088:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("filters-bar",{attrs:{type:"diagram",statuses:t.filtersData.statuses,buttons:t.buttons}}),t._v(" "),"grid"===t.xFilters.view?e("listing-grid"):e("listing-list")],1)},i=[]},66520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container mockups-list"},[e("div",{staticClass:"ui-listing"},t._l(t.xFilteredSortedDiagrams,(function(n){return e("div",{key:n.alias,staticClass:"row-single"},[e("div",{staticClass:"_thumbs -with-border clickable",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDiagramOpen(n.alias)}}},[e("img",{attrs:{src:n.url_thumb,loading:"lazy",decoding:"async"}})]),t._v(" "),e("div",{staticClass:"_meta4 clickable text-overflow",staticStyle:{flex:"1"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDiagramOpen(n.alias)}}},[e("div",[e("p",{staticClass:"_page style-link-invert text-overflow",attrs:{title:n.title}},[t._v("\n            "+t._s(n.title)+"\n          ")]),t._v(" "),n.comments>0?e("div",{staticClass:"_comments"},[e("icon-font",{attrs:{icon:"chat"}}),t._v(" "),e("div",[t._v(t._s(n.comments))])],1):t._e()]),t._v(" "),e("p",{staticClass:"is-flex"},[n.workflow_status&&t.workflowStatuses[n.workflow_status]?e("span",{staticClass:"workflow-status-block -mockup -small mr-2",style:{backgroundColor:t.workflowStatuses[n.workflow_status].color}},[t._v("\n            "+t._s(t.workflowStatuses[n.workflow_status].name)+"\n          ")]):t._e(),t._v(" "),e("span",{staticClass:"_trimmed"},[t._v(t._s(n.cell_name))]),t._v(" "),e("span",[t._v("| Updated "+t._s(n.updated_at))])])]),t._v(" "),e("user-avatars",{staticClass:"_users",attrs:{users:n.users,limit:5,size:"sm","with-avatars":!0,tooltip:n.users.length>1}}),t._v(" "),e("diagram-buttons",{attrs:{diagram:n}})],1)})),0)])},i=[]},66240:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this._self._c;return this.xIsPageLoading?t("component-loading"):t("diagram-structure")},i=[]},69848:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"diagram-structure"},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDownComment.apply(null,arguments)}}},[e("svg",{class:t.svgContainerClassAttr,style:t.svgContainerStyleAttr,attrs:{id:"diagram-svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[e("defs",[t._l(t.markersList,(function(n){return e("marker",{key:n.id,attrs:{id:"svg-marker-"+n.id,markerWidth:n.width,markerHeight:n.height,refX:n.x,refY:n.y,orient:"auto-start-reverse",markerUnits:"userSpaceOnUse"}},[e(n.type,t._b({tag:"component",attrs:{"stroke-linecap":"round","stroke-linejoin":"round"}},"component",n.attrs,!1))],1)})),t._v(" "),t.xDiagramGrid?e("pattern",{attrs:{id:"svg-grid",width:t.grid.width,height:t.grid.width,patternUnits:"userSpaceOnUse"}},[e("polyline",{attrs:{fill:"none",stroke:"#ededed","stroke-width":"2",points:t.grid.points}})]):t._e()],2),t._v(" "),e("rect",{attrs:{x:"0",y:"0",width:"100%",height:"100%",fill:t.xDiagramGrid?"url(#svg-grid)":"transparent","stroke-width":"0"},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown.apply(null,arguments)}}}),t._v(" "),e("g",t._b({},"g",t.gWrapperAttrs,!1),[e("g",{attrs:{id:"diagram-connectors",transform:"translate(0.5 0.5)"}},t._l(t.xDiagramConnectors,(function(t){return e("diagram-connector",{key:t,attrs:{id:t}})})),1),t._v(" "),e("g",{attrs:{id:"diagram-elements",transform:"translate(0.5 0.5)"}},t._l(t.diagramElements,(function(t){var n=t.id,r=t.component;return e(r,{key:n,tag:"component",attrs:{id:n}})})),1)]),t._v(" "),t.isProjectEditable&&!t.isCommentMode&&!t.isSpaceGrabbing&&t.xDiagramGhostSelect.visible?e("g",{attrs:{transform:"translate(0.5 0.5)","pointer-events":"none"}},[e("rect",t._b({attrs:{fill:"#3477f9","fill-opacity":"0.05","stroke-width":"1",stroke:"#3477f9","stroke-dasharray":"2","stroke-opacity":"0.5"}},"rect",t.xDiagramGhostSelect.attrs,!1))]):t._e()]),t._v(" "),e("floating-pins",{style:{pointerEvents:t.isSpaceGrabbing?"none":null},attrs:{section:"diagram",singles:t.commentPins,pin:t.pin.refId?null:t.pinCoords,introduce:t.commentIntroduce},on:{introduce:function(e){t.commentIntroduce=!0}}}),t._v(" "),t.isFloatingCommentVisible&&t.commentIntroduce?e("floating-comment-introduction",{attrs:{coords:t.pinCoords}}):t.isFloatingCommentVisible?e("floating-comments",{attrs:{autofocus:!0,coords:t.pinCoords,"ref-id":t.currentProjectDetails.alias,"comment-id":t.pin.refId,readonly:Boolean(!t.canWriteComments||t.isGuestAndIntroductionNeeded),introduce:!!t.isGuestAndIntroductionNeeded},on:{added:t.openPinComment,update:function(e){t.pin.hasContent=!!e},close:t.closePin,introduce:function(e){t.commentIntroduce=!0}}}):t._e()],1)},i=[]},37184:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){this._self._c;return this._m(0)},i=[function(){var t=this._self._c;return t("div",{staticClass:"text-center",staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},attrs:{id:"page-error"}},[t("p",{staticClass:"font-montserrat font-size-28"},[this._v("\n    Page Not Found (Error 404)\n  ")])])}]},49404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper"},[e("app-title-heading",{attrs:{title:t.$trans("titles.integrations")},scopedSlots:t._u([{key:"description",fn:function(){return[e("p",[t._v(t._s(t.$trans("messages.integrations_offer")))]),t._v(" "),e("p",[t._v("\n        "+t._s(t.$trans("messages.integrations_resource"))+"\n        "),e("link-help",{staticClass:"style-link",attrs:{id:"resources"}},[t._v("\n          "+t._s(t.$trans("resources"))+".\n        ")])],1)]},proxy:!0}])}),t._v(" "),t._l(t.integrations,(function(n){return e("div",{staticClass:"g-container margin-medium"},[e("div",{staticClass:"g-grid g-align-center"},[e("div",{staticClass:"g-col-12"},[e("p",{staticClass:"font-weight-500"},[t._v("\n          "+t._s(n.group)+"\n        ")])])]),t._v(" "),t._l(n.items,(function(n){return e("div",{staticClass:"g-grid g-align-center integrations-item"},[n.image?e("div",{staticClass:"g-col-1"},[e("image-tag",{staticStyle:{width:"99%"},attrs:{src:n.image,retina:!n.image.endsWith("svg")}})],1):t._e(),t._v(" "),e("div",{class:{"g-col-5":n.image,"g-col-6":!n.image}},[e("p",{staticClass:"font-weight-700"},[t._v("\n          "+t._s(n.name)+"\n        ")]),t._v(" "),e("p",{staticClass:"font-size-13 text-muted"},[t._v("\n          "+t._s(n.description)+"\n        ")])]),t._v(" "),e("div",{staticClass:"g-col-auto"},[n.id&&!n.can_connect?e("button-submit",{attrs:{"class-name":"-secondary -small"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onConnect(n))}}},[t._v("\n          "+t._s(t.$trans("connect"))+"\n        ")]):n.id&&!n.connected?e("button-submit",{attrs:{"is-submitting":n.saving,"class-name":"-secondary -small"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onConnect(n))}}},[t._v("\n          "+t._s(t.$trans("connect"))+"\n        ")]):n.id&&n.connected?e("button-submit",{attrs:{"is-submitting":n.saving,"class-name":"-secondary -small text-red"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onDisconnect(n))}}},[t._v("\n          "+t._s(t.$trans("disconnect"))+"\n        ")]):n.url?e("a",{staticClass:"button -secondary -small font-montserrat",attrs:{href:n.url,target:"_blank",rel:"noreferrer noopener"}},[t._v("\n          "+t._s(t.$trans("see_details"))+"\n        ")]):t._e()],1)])}))],2)}))],2)},i=[]},56232:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ps-padding-bottom"},[t.xIsPageLoading?e("component-loading"):t.xMockups.length?e("mockups-listing"):e("mockup-empty")],1)},i=[]},15164:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"centered-container text-center"},[e("image-tag",{attrs:{src:"/images/illustrations/empty-mockup.png",retina:!0}}),t._v(" "),e("hr",{staticClass:"spacer-225"}),t._v(" "),e("p",{staticClass:"font-size-28 font-weight-700"},[t._v("\n    Add your first mockup\n  ")]),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),e("p",{staticClass:"line-height-166"},[t._v("\n    "+t._s(t.xSitemapCells.length?"This is where you manage your project’s design mockups. Add wireframes, layouts or any image from your computer, our file library or directly from a Figma account.":"To begin using the design mockups add some pages with the site builder first.")+"\n    "),e("link-help",{staticClass:"style-link",attrs:{id:"mockups_overview"}},[t._v("\n      Learn more\n    ")])],1),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),t.xSitemapCells.length?e("div",{staticClass:"is-flex",staticStyle:{"justify-content":"center",gap:"1rem"}},[e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticStyle:{width:"200px"},attrs:{name:"upload",options:t.uploadTypes,placeholder:"Upload from..."},model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),e("button",{staticClass:"-primary",attrs:{disabled:!t.uploadType},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onSubmit.apply(null,arguments))}}},[t._v("\n      Upload mockups\n    ")])],1):t._e()],1)},i=[]},62786:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("filters-bar",{attrs:{type:"mockup",users:t.filtersData.users,sections:t.filtersData.sections,statuses:t.filtersData.statuses,buttons:t.buttons}}),t._v(" "),"grid"===t.xFilters.view?e("listing-grid",{key:"grid"}):e("listing-list",{key:"list"})],1)},i=[]},83444:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container mockups-grid"},[e("div",{staticClass:"ui-listing",class:"-cols-".concat(t.xFilters.columns)},t._l(t.xGroupedFilteredSortedMockupsWithDetails,(function(n){return e("div",{key:n.id,staticClass:"row-single"},[e("p",{staticClass:"_page text-overflow",attrs:{title:n.name}},[e("span",{staticClass:"cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickMockup(n.current.mockup)}}},[t._v(t._s(n.name))])]),t._v(" "),e("div",{staticClass:"_head"},[e("user-avatars",{staticClass:"_users",attrs:{users:n.users,limit:t.avatarsLimit,size:"sm","with-avatars":!0,tooltip:n.users.length>1}}),t._v(" "),1===n.users.length?e("div",{staticClass:"_user text-overflow"},[t._v("\n          "+t._s(t.xGetTeamMemberData(n.users[0],"name"))+"\n        ")]):t._e(),t._v(" "),n.current.comments>0?e("div",{staticClass:"_comments clickable",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickMockup(n.current.mockup,null,"comment")}}},[e("icon-font",{attrs:{icon:"chat"}}),t._v(" "),e("div",[t._v(t._s(n.current.comments))])],1):t._e()],1),t._v(" "),e("div",{staticClass:"_thumbs",style:{backgroundImage:"url("+n.current.mockup.url_thumb+")"}},[e("div",{staticClass:"_overlay",attrs:{title:n.current.mockup.filename},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickMockup(n.current.mockup)}}}),t._v(" "),n.mockups.length>1?e("div",{staticClass:"_pagination"},[e("div",{class:n.current.prevId?"clickable":null,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.switchMockup(n.id,n.current.prevId)}}},[e("icon-font",{attrs:{icon:"left"}})],1),t._v(" "),e("div",{attrs:{title:n.current.mockup.filename}},[t._v("\n            "+t._s(n.current.index+1)+"/"+t._s(n.mockups.length)+"\n          ")]),t._v(" "),e("div",{class:n.current.nextId?"clickable":null,on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.switchMockup(n.id,n.current.nextId)}}},[e("icon-font",{attrs:{icon:"right"}})],1)]):t._e()]),t._v(" "),e("div",{staticClass:"_foot"},[e("div",{staticClass:"_meta1"},[e("p",{staticClass:"cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickMockup(n.current.mockup)}}},[t._v("\n            "+t._s(t.$plural("Mockup",n.mockups.length,!0))+"\n          ")]),t._v(" "),t.xFilters.columns<4?e("p",[t._v("\n            Updated "+t._s(n.date)+"\n          ")]):t._e()]),t._v(" "),e("div",{staticClass:"_meta2"},[n.current.status?e("div",{staticClass:"workflow-status-block -mockup",style:{backgroundColor:n.current.status.color}},[t._v("\n            "+t._s(n.current.status.label)+"\n          ")]):t._e(),t._v(" "),t.xFilters.columns<4?e("mockup-buttons",{attrs:{mockup:n.current.mockup}}):t._e()],1)]),t._v(" "),t.xFilters.columns>=4?e("div",{staticClass:"_meta3"},[e("p",[t._v("Updated "+t._s(n.date))]),t._v(" "),e("mockup-buttons",{attrs:{mockup:n.current.mockup}})],1):t._e()])})),0)])},i=[]},22425:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container mockups-list"},[e("div",{staticClass:"ui-listing"},t._l(t.xGroupedFilteredSortedMockupsWithDetails,(function(n){return e("div",{key:n.id,staticClass:"row-single"},[e("div",{staticClass:"_thumbs clickable",style:{backgroundImage:"url("+n.current.mockup.url_thumb+")"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickMockup(n.current.mockup)}}}),t._v(" "),e("div",{staticClass:"_meta4 clickable text-overflow",staticStyle:{flex:"1"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickMockup(n.current.mockup)}}},[e("div",[e("p",{staticClass:"_page text-overflow",attrs:{title:n.name}},[t._v("\n            "+t._s(n.name)+"\n          ")]),t._v(" "),t.pageMockupComments(n.mockups)>0?e("div",{staticClass:"_comments clickable"},[e("icon-font",{attrs:{icon:"chat"}}),t._v(" "),e("div",[t._v(t._s(t.pageMockupComments(n.mockups)))])],1):t._e()]),t._v(" "),e("p",{staticClass:"is-flex"},[n.current.status?e("span",{staticClass:"workflow-status-block -mockup -small mr-2",style:{backgroundColor:n.current.status.color}},[t._v("\n            "+t._s(n.current.status.label)+"\n          ")]):t._e(),t._v(" "),e("span",[t._v(t._s(t.$plural("Mockup",n.mockups.length,!0))+" | Updated "+t._s(n.date))])])]),t._v(" "),e("user-avatars",{staticClass:"_users",attrs:{users:n.users,limit:5,size:"sm","with-avatars":!0,tooltip:n.users.length>1}}),t._v(" "),e("mockup-buttons",{attrs:{mockup:n.current.mockup}})],1)})),0)])},i=[]},11904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t,e=this,n=e._self._c;return n("div",{staticClass:"mockups-preview",style:{width:"".concat(e.wrapperSize.width,"px"),height:"".concat(e.wrapperSize.height,"px")}},[n("div",{staticClass:"_board",style:e.boardStyle,on:{mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onMouseDown.apply(null,arguments)},wheel:e.onMouseWheel}},[!1===e.imageLoaded||e.regeneratingPreview?n("component-loading"):"error"===e.imageLoaded?n("div",{staticClass:"_error centered-container text-center text-red"},[n("icon-font",{attrs:{icon:"notify-warning"}}),e._v(" "),n("p",{staticClass:"font-size-16 mt-3 text-nowrap"},[e._v("\n        Image preview not found.\n      ")]),e._v(" "),e.canEdit?n("p",{staticClass:"font-size-13 mt-3 text-nowrap text-gray-darkest"},[n("span",{staticClass:"style-link",on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.regeneratePreview.apply(null,arguments)}}},[e._v("Refresh preview")]),e._v("\n        or contact Slickplan Support\n      ")]):e._e()],1):e._e(),e._v(" "),n("img",{directives:[{name:"show",rawName:"v-show",value:"error"!==e.imageLoaded,expression:"imageLoaded !== 'error'"}],class:e.mockupClass,style:e.mockupStyle,attrs:{src:e.currentMockupDataImageUrl,alt:null===(t=e.currentMockupData)||void 0===t?void 0:t.filename,width:e.mockupWidth,height:e.mockupHeight},on:{dragstart:function(t){t.preventDefault()},load:e.onImageLoad,error:e.onImageError}}),e._v(" "),!0===e.imageLoaded?n("floating-pins",{attrs:{section:"mockup",singles:e.collectedCommentPinsSingle,multi:e.collectedCommentPinsMulti,pin:e.pin.refId?null:e.pinCoords,introduce:e.commentIntroduce},on:{introduce:function(t){e.commentIntroduce=!0}}}):e._e(),e._v(" "),e.isFloatingCommentVisible&&e.commentIntroduce&&!0===e.imageLoaded?n("floating-comment-introduction",{attrs:{coords:e.pinCoords}}):e.isFloatingCommentVisible&&!0===e.imageLoaded?n("floating-comments",{attrs:{autofocus:!0,coords:e.pinCoords,"ref-id":e.currentMockupDataId,"comment-id":e.pin.refId,readonly:Boolean(!e.canWriteComments||e.isGuestAndIntroductionNeeded),figma:e.figmaKey||null,introduce:!!e.isGuestAndIntroductionNeeded},on:{added:e.openPinComment,update:function(t){e.pin.hasContent=!!t},close:e.closePin,introduce:function(t){e.commentIntroduce=!0}}}):e._e(),e._v(" "),e.isProjectShared?e._e():n("div",{class:{_pagenav:e.isSingleCellMode&&e.currentMockupData}},[e.isSingleCellMode?n("div",{staticClass:"_nav"},[e.pagesWithMockups.length>1&&e.prevPageWithMockup?n("span",{staticClass:"button -tertiary -smallest",attrs:{title:e.prevPageWithMockup.cellName},on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.setMockupId(e.prevPageWithMockup.mockupId,e.prevPageWithMockup.cellId)}}},[n("icon-font",{attrs:{icon:"left"}}),e._v("\n          Prev page\n        ")],1):e._e(),e._v(" "),n("p",{staticClass:"font-montserrat"},[e._v("\n          "+e._s(e.cellName)+"\n        ")]),e._v(" "),e.pagesWithMockups.length>1&&e.nextPageWithMockup?n("span",{staticClass:"button -tertiary -smallest",attrs:{title:e.nextPageWithMockup.cellName},on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.setMockupId(e.nextPageWithMockup.mockupId,e.nextPageWithMockup.cellId)}}},[e._v("\n          Next page\n          "),n("icon-font",{attrs:{icon:"right"}})],1):e._e()]):e._e(),e._v(" "),n("div",{staticClass:"_close",on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.closePreview.apply(null,arguments)}}},[n("icon-font",{attrs:{icon:"x"}})],1)]),e._v(" "),e.currentMockupData&&e.mockupsNav.prev?n("div",{staticClass:"_nav -prev",on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.setMockupId(e.mockupsNav.prev.mockupId,e.mockupsNav.prev.cellId)}}},[n("icon-font",{attrs:{icon:"left"}})],1):e._e(),e._v(" "),e.currentMockupData&&e.mockupsNav.next?n("div",{staticClass:"_nav -next",on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.setMockupId(e.mockupsNav.next.mockupId,e.mockupsNav.next.cellId)}}},[n("icon-font",{attrs:{icon:"right"}})],1):e._e()],1),e._v(" "),!0===e.imageLoaded&&e.currentMockupData&&e.isProjectShared?n("div",{staticClass:"toolbar -primary"},[e.mockupStatus&&e.xMockupsStatuses[e.mockupStatus]?n("div",{staticClass:"_wrapper"},[n("has-tooltip",{attrs:{tooltip:"Status",position:"below"}},[n("span",{staticClass:"_pill",style:{backgroundColor:e.xMockupsStatuses[e.mockupStatus].color}},[e._v("\n          "+e._s(e.xMockupsStatuses[e.mockupStatus].label)+"\n        ")])])],1):e._e(),e._v(" "),e.mockupStatus&&e.xMockupsStatuses[e.mockupStatus]?n("div",{staticClass:"_item -separator"}):e._e(),e._v(" "),n("div",{staticClass:"_group"},[n("has-tooltip",{staticClass:"_item",attrs:{tooltip:"Zoom out"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.zoomOut()}}},[n("icon-font",{attrs:{icon:"tool-minus"}})],1),e._v(" "),n("div",{staticClass:"_item -text",on:{dblclick:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.zoomReset.apply(null,arguments)}}},[e._v("\n        "+e._s(e.scalePercent)+"\n      ")]),e._v(" "),n("has-tooltip",{staticClass:"_item",attrs:{tooltip:"Zoom in"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.zoomIn()}}},[n("icon-font",{attrs:{icon:"tool-plus"}})],1)],1),e._v(" "),n("div",{staticClass:"_item -separator"}),e._v(" "),n("has-tooltip",{staticClass:"_item",class:{"-active":e.isCommentMode,"-disabled":!e.canSeeComments},attrs:{tooltip:"Comments",position:"bottom"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onClickComments.apply(null,arguments)}}},[n("icon-font",{attrs:{icon:e.xCommentsLoading?"loading":"tool-comment"}})],1)],1):e._e(),e._v(" "),e.isProjectShared?n("shared-sidebar",{attrs:{type:"mockup","grouped-mockups":e.groupedFilteredSortedMockupsWithDetails,"current-file-id":e.currentMockupDataId}}):n("transition",{attrs:{name:"transition-from-bottom"}},[e.showThumbnails||e.isSingleCellMode?n("thumbs-bar",{attrs:{simple:e.isSingleCellMode,"board-size":e.boardSize,"grouped-mockups":e.groupedFilteredSortedMockupsWithDetails,"current-file-id":e.currentMockupDataId,"can-edit":e.canEdit},on:{close:function(t){e.showThumbnails=!1}}}):e._e()],1),e._v(" "),!0===e.imageLoaded&&e.currentMockupData&&!e.isProjectShared?n("div",{staticClass:"_scale"},[n("icon-font",{staticClass:"clickable",attrs:{icon:"minus"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.zoomOut()}}}),e._v(" "),n("span",{on:{dblclick:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.zoomReset.apply(null,arguments)}}},[e._v(e._s(e.scalePercent))]),e._v(" "),n("icon-font",{staticClass:"clickable",attrs:{icon:"plus"},nativeOn:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.zoomIn()}}})],1):e._e(),e._v(" "),e.currentMockupData&&!e.isProjectShared?n("div",{staticClass:"_menu"},[n("div",{staticClass:"_breadcrumbs"},[e.isProjectShared||e.isSingleCellMode?e._e():n("span",{staticClass:"style-link",on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.closePreview.apply(null,arguments)}}},[e._v("Design Mockups")]),e._v(" "),e.isProjectShared||e.isSingleCellMode?e._e():n("icon-font",{attrs:{icon:"right-sm"}}),e._v(" "),n("span",{staticClass:"_path",on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onFilenameClick.apply(null,arguments)}}},[n("span",{staticClass:"text-overflow",class:{"style-link-invert":!e.isSingleCellMode},attrs:{title:e.cellName}},[e._v(e._s(e.cellName))]),e._v(" "),n("icon-font",{attrs:{icon:"right-sm"}}),e._v(" "),n("span",{staticClass:"text-overflow",class:{"style-link-invert":!e.isSingleCellMode,"font-weight-600":e.isSingleCellMode},attrs:{title:e.currentMockupData.filename}},[e._v(e._s(e.currentMockupData.filename))]),e._v(" "),e.isSingleCellMode&&e.canEdit?n("icon-font",{staticClass:"clickable font-size-13",attrs:{icon:"edit"}}):e.isSingleCellMode?e._e():n("icon-font",{attrs:{icon:e.showThumbnails?"triangle-down-sm":"triangle-up-sm"}})],1)],1),e._v(" "),n("div",{staticClass:"_functions is-flex"},[e.canSeeComments?n("field-radio-bar",{attrs:{radios:e.availableModes},model:{value:e.currentMode,callback:function(t){e.currentMode=t},expression:"currentMode"}}):e._e(),e._v(" "),e.isProjectShared&&e.mockupStatus&&e.xMockupsStatuses[e.mockupStatus]?n("div",{staticClass:"workflow-status-block -mockup",style:{backgroundColor:e.xMockupsStatuses[e.mockupStatus].color}},[e._v("\n        "+e._s(e.xMockupsStatuses[e.mockupStatus].label)+"\n      ")]):e._e(),e._v(" "),e.canEdit?n("field-select",{staticClass:"-compact",attrs:{name:"status",options:e.availableStatuses,"option-value":"id",placeholder:"Choose status"},on:{input:e.onStatusChange},scopedSlots:e._u([{key:"option",fn:function(t){var r=t.option;return[r.color?n("span",{staticClass:"workflow-status mr-1",style:{backgroundColor:r.color}}):e._e(),e._v(" "),n("span",{class:r.id?"":"font-weight-700 style-link"},[e._v(e._s(r.label))])]}},{key:"singleLabel",fn:function(t){var r=t.option;return[r.color?n("span",{staticClass:"workflow-status mr-1",style:{backgroundColor:r.color}}):e._e(),e._v(" "),n("span",[e._v(e._s(r.id?r.label:""))])]}}],null,!1,2758647222),model:{value:e.mockupStatus,callback:function(t){e.mockupStatus=t},expression:"mockupStatus"}}):e._e()],1),e._v(" "),n("div",{staticClass:"_side",class:{"non-clickable":e.isCommentModeWithSidebar},style:{opacity:e.isCommentModeWithSidebar?0:null}},[e.isProjectShared?e._e():n("mockup-buttons",{staticClass:"font-size-16",attrs:{mockup:e.currentMockupData,preview:!0}})],1)]):e._e(),e._v(" "),e.isFigmaFileUpdated&&!e.isProjectShared&&e.canUpload?n("div",{staticClass:"_note"},[n("p",[e._v("There have been changes made to this Figma file. Would you like to update this file?")]),e._v(" "),e.figmaFileUpdateRequest?e._e():n("p",{staticClass:"clickable font-weight-700",on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.figmaNoteUpdate.apply(null,arguments)}}},[e._v("\n      Yes\n    ")]),e._v(" "),e.figmaFileUpdateRequest?n("icon-font",{attrs:{icon:"loading"}}):n("p",{staticClass:"clickable font-weight-700 text-gray-darkest",on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.figmaNoteIgnore.apply(null,arguments)}}},[e._v("\n      Ignore\n    ")]),e._v(" "),n("icon-font",{staticClass:"clickable text-gray-darkest ml-5",attrs:{icon:"x"},on:{click:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.figmaNoteIgnore.apply(null,arguments)}}})],1):e._e()],1)},i=[]},20072:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_thumbs",class:{"-simple":t.simple},style:{width:t.boardSize.width+"px"}},[t.simple?t._e():e("div",{staticClass:"_head"},[e("div",{staticClass:"toolbar-search -fixed-width clearfix"},[e("input",{class:{focus:t.xActiveMockupFilters.search},attrs:{id:"field-filter-search",placeholder:"Type to find a mockup..."},domProps:{value:t.xActiveMockupFilters.search},on:{keyup:function(e){return t.filterChange("search",e.target.value)}}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}}),t._v(" "),t.xActiveMockupFilters.search?e("icon-font",{staticClass:"clickable clear",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.setSearchFieldValue("",!0)}}}):t._e()],1),t._v(" "),e("div",[e("p",[t.countThumbsMockups<t.totalMockups?e("span",[t._v("Displaying "+t._s(t.countThumbsMockups)+" of")]):t._e(),t._v("\n        "+t._s(t.$plural("total mockup",t.totalMockups,!0))+"\n        "),t.totalPages>1?e("span",[t._v("in "+t._s(t.$plural("page",t.totalPages,!0)))]):t._e()]),t._v(" "),e("filters-reset",{attrs:{type:"mockup"}}),t._v(" "),e("dropdown",{staticClass:"font-size-14",attrs:{label:"Sort by",items:t.sortFilter,selected:t.xFilters.sort},on:{select:function(e){return t.filterChange("sort",e)}}})],1),t._v(" "),e("icon-font",{staticClass:"clickable",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("close")}}})],1),t._v(" "),e("scrollable",{directives:[{name:"show",rawName:"v-show",value:t.countThumbsMockups,expression:"countThumbsMockups"}],attrs:{x:!0,y:!1}},[e("div",{staticClass:"_list",style:t.listStyles},t._l(t.groupedMockups,(function(n){return e("div",{key:n.id},[t.simple?t._e():e("p",{staticClass:"_page font-montserrat text-overflow selectable"},[t._v("\n          "+t._s(n.name)+"\n        ")]),t._v(" "),e("ul",{class:{"draggable-boxed":t.canReorder},attrs:{"data-id":n.id}},t._l(n.mockups,(function(r){return e("li",{key:r.cell_file_id,class:{"-active":r.cell_file_id===t.currentFileId,draggable:t.canReorder},attrs:{id:"mock-thumb-".concat(r.cell_file_id),"data-id":r.cell_file_id}},[e("div",{staticClass:"_thumb",style:{backgroundImage:"url("+r.url_thumb+")"},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onMouseDown(e,r.cell_file_id,n.id)}}},[r.status&&t.xMockupsStatuses[r.status]?e("div",{staticClass:"workflow-status-block -mockup",style:{backgroundColor:t.xMockupsStatuses[r.status].color}},[t._v("\n                "+t._s(t.xMockupsStatuses[r.status].label)+"\n              ")]):t._e()]),t._v(" "),t.simple?t._e():e("div",{staticClass:"_filename cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.canEdit?t.onFilenameClick(r.cell_file_id,r.filename):t.setMockupId(r.cell_file_id,n.id))}}},[e("p",{staticClass:"text-overflow selectable"},[t._v("\n                "+t._s(r.filename)+"\n              ")]),t._v(" "),t.canEdit?e("icon-font",{attrs:{icon:"edit"}}):t._e()],1)])})),0)])})),0)])],1)},i=[]},51512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-head-menu",class:{"-visible":t.xMockupUploadBar}},[t._l(t.buttons,(function(n){return e("div",{key:n.icon,staticClass:"_item",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n.icon)}}},[e("icon-font",{attrs:{icon:n.icon}}),t._v(" "),e("div",{staticClass:"_meta"},[e("p",[t._v(t._s(n.title))]),t._v(" "),e("p",[t._v(t._s(n.description))])])],1)})),t._v(" "),e("div",{staticClass:"_close",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.closeBar.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"x"}})],1)],2)},i=[]},57504:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper"},[e("app-title-heading",{attrs:{title:t.$trans("titles.profile")}}),t._v(" "),e("form",{ref:"form",staticClass:"g-container",attrs:{"data-vv-scope":t.formHelper.scope,autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-3"},[e("div",{staticClass:"avatar-form"},[t.uploadFileStatus?e("div",{staticClass:"placeholder is-loading"},[e("div",{staticClass:"progress",style:t.uploadProgressWidth}),t._v(" "),e("icon-font",{attrs:{icon:"loading"}})],1):t.xAccountData.avatar?e("img",{attrs:{src:t.xAccountData.avatar,alt:t.xAccountData.username}}):e("div",{staticClass:"placeholder"},[t._v("\n            "+t._s(t.xAccountData.initials)+"\n          ")]),t._v(" "),e("div",{staticClass:"action line-height-166 text-center"},[e("span",{staticClass:"style-link font-size-14 cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.uploadFileSelect.apply(null,arguments)}}},[t._v("\n              "+t._s(t.xAccountData.avatar?t.$trans("change_photo"):t.$trans("add_photo"))+"\n            ")]),t._v(" "),t.xAccountData.avatar?e("div",[e("span",{staticClass:"style-link font-size-14 cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onAvatarDelete.apply(null,arguments)}}},[t._v("\n                "+t._s(t.$trans("delete_photo"))+"\n              ")])]):t._e(),t._v(" "),t.uploadFileError?e("div",{staticClass:"text-red font-size-12"},[e("hr",{staticClass:"spacer-75"}),t._v("\n              "+t._s(t.uploadFileError)+"\n            ")]):t._e()]),t._v(" "),e("input",{attrs:{type:"hidden",name:"avatar"},domProps:{value:t.xAccountData.avatar}})])]),t._v(" "),e("div",{staticClass:"g-col-3"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"username",label:t.$trans("username"),"field-error":t.formFieldError("username"),autocomplete:!1},model:{value:t.xAccountData.username,callback:function(e){t.$set(t.xAccountData,"username",e)},expression:"xAccountData.username"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|email",expression:"'required|email'"}],attrs:{name:"email",type:"email",label:t.$trans("email_address"),"field-error":t.formFieldError("email"),autocomplete:!1,maxlength:"255"},model:{value:t.xAccountData.email,callback:function(e){t.$set(t.xAccountData,"email",e)},expression:"xAccountData.email"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"min:7|max:48",expression:"'min:7|max:48'"}],attrs:{name:"password",type:"password",minlength:"7",maxlength:"48",label:t.$trans("new_password"),"field-error":t.formFieldError("password"),autocomplete:"new-password"},model:{value:t.xAccountData.password,callback:function(e){t.$set(t.xAccountData,"password",e)},expression:"xAccountData.password"}}),t._v(" "),e("div",{staticClass:"field field-switch is-flex",class:{checked:t.isTwoFactorEnabled}},[e("p",{staticClass:"label"},[t._v("\n            Two-factor authentication\n          ")]),t._v(" "),e("label",{on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onTwoFactorChange.apply(null,arguments)}}},[t._v(" ")])])],1),t._v(" "),e("div",{staticClass:"g-col-3"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"first_name",label:t.$trans("first_name"),"field-error":t.formFieldError("first_name"),autocomplete:!1},model:{value:t.xAccountData.first_name,callback:function(e){t.$set(t.xAccountData,"first_name",e)},expression:"xAccountData.first_name"}}),t._v(" "),e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"last_name",label:t.$trans("last_name"),"field-error":t.formFieldError("last_name"),autocomplete:!1},model:{value:t.xAccountData.last_name,callback:function(e){t.$set(t.xAccountData,"last_name",e)},expression:"xAccountData.last_name"}}),t._v(" "),e("field-select",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"timezone",label:t.$trans("timezone"),options:t.timezones,"field-error":t.formFieldError("timezone"),placeholder:"Search..."},model:{value:t.xAccountData.timezone,callback:function(e){t.$set(t.xAccountData,"timezone",e)},expression:"xAccountData.timezone"}}),t._v(" "),e("hr",{staticClass:"spacer-225"}),t._v(" "),e("div",{staticClass:"text-right"},[e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting,"is-submitted":t.formHelper.isSubmitted,"is-disabled":!t.formHelper.isDirty||t.formHasErrors()}})],1)],1)])])],1)},i=[]},7788:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-wrapper project-wrapper no-padding",class:"project-"+t.projectType},[e("project-header"),t._v(" "),e("scrollable",{attrs:{id:"project-scrollable",width:t.isActiveCrawler?t.xWindowSize.width:t.projectWidth,height:t.projectHeight,x:!0,y:!0},on:{scroll:t.onScroll}},[e("router-view")],1),t._v(" "),e("router-view",{attrs:{name:"helper"}})],1)},i=[]},69468:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this._self._c;return t("div",{staticClass:"content-wrapper"},[t("router-view")],1)},i=[]},71350:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container",attrs:{id:"seo-tools"}},[t._m(0),t._v(" "),e("form",{staticClass:"_seo",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url",type:"url",placeholder:"Type or paste the URL to your website...","field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),t.url&&!t.formHasErrors()?e("button-submit",{staticClass:"-small",attrs:{"is-disabled":!t.url||t.formHelper.isSubmitting,"is-submitting":t.formHelper.isSubmitting}},[t._v("\n      Check headers\n    ")]):t._e()],1),t._v(" "),t.responseData?e("div",{staticClass:"_frame"},[e("div",{staticClass:"_item font-size-16"},[e("h4",[t._v("\n        Status code:\n      ")]),t._v(" "),e("p",{class:{"text-red":t.responseData.status>=400,"text-green":t.responseData.status<300}},[t._v("\n        "+t._s(t.responseData.status)+"\n        ("+t._s(t.responseData.statusName)+")\n      ")])]),t._v(" "),e("div",{staticClass:"_item font-size-16"},[e("h4",[t._v("\n        Response time:\n      ")]),t._v(" "),e("p",{class:{"text-red":t.responseData.time>1}},[t._v("\n        "+t._s(t.responseData.time)+"s\n      ")])]),t._v(" "),e("hr",{staticClass:"bg-gray-darker"}),t._v(" "),t._m(1),t._v(" "),t._l(t.responseData.headers,(function(n,r){return e("div",{key:r,staticClass:"_item -flex-01a"},[e("p",{staticClass:"font-weight-500"},[t._v("\n        "+t._s(r)+":\n      ")]),t._v(" "),e("div",{staticClass:"_trunk"},t._l(n,(function(n){return e("p",{attrs:{title:n}},[t._v("\n          "+t._s(n)+"\n        ")])})),0)])}))],2):t._e()])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("h1",[t._v("\n      Check your HTTP/HTTPS status codes and headers\n    ")]),t._v(" "),e("p",[t._v("\n      Enter a URL to see server response and status codes.\n      "),e("a",{staticClass:"style-link",attrs:{href:"https://slickplan.com/http-header-checker",target:"_blank",rel:"noreferrer noopener"}},[t._v("\n        Learn more\n      ")])])])},function(){var t=this._self._c;return t("div",{staticClass:"_item font-size-16"},[t("h4",[this._v("Headers:")])])}]},33024:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container",attrs:{id:"seo-tools"}},[t._m(0),t._v(" "),e("form",{staticClass:"_seo",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url",type:"url",placeholder:"Type or paste the URL...","field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),t.url&&!t.formHasErrors()?e("button-submit",{staticClass:"-small",attrs:{"is-disabled":!t.url||t.formHelper.isSubmitting,"is-submitting":t.formHelper.isSubmitting}},[t._v("\n      Check redirect\n    ")]):t._e()],1),t._v(" "),t.finalStatus?e("div",{staticClass:"_frame"},[t._l(t.responseData,(function(n){return e("dl",{staticClass:"_redirect"},[e("dt",[e("icon-font",{attrs:{icon:"download"}})],1),t._v(" "),e("dd",[e("p",[t._v("\n          "+t._s(n.from)+"\n        ")]),t._v(" "),e("p",[t._v("\n          "+t._s(n.status)+" "+t._s(t.statusDescription(n.status))+": "+t._s(n.to)+"\n        ")])])])})),t._v(" "),e("dl",{staticClass:"_redirect",class:t.finalStatus<300?"-ok":"-error"},[e("dt",[e("icon-font",{attrs:{icon:t.finalStatus<300?"accept":"cancel"}})],1),t._v(" "),e("dd",[e("p",[t._v("\n          "+t._s(t.finalUrl)+"\n        ")]),t._v(" "),e("p",[t._v("\n          "+t._s(t.finalStatus)+" "+t._s(t.statusDescription(t.finalStatus))+"\n        ")]),t._v(" "),!t.responseData||t.responseData.length<=0?e("p",[t._v("\n          No redirects\n        ")]):t._e()])])],2):t._e()])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("h1",[t._v("\n      Check and understand your URL redirects\n    ")]),t._v(" "),e("p",[t._v("\n      Enter a URL to check for any redirects.\n      "),e("a",{staticClass:"style-link",attrs:{href:"https://slickplan.com/redirect-checker",target:"_blank",rel:"noreferrer noopener"}},[t._v("\n        Learn more\n      ")])])])}]},76576:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container",attrs:{id:"seo-tools"}},[t._m(0),t._v(" "),e("form",{staticClass:"_frame -full g-grid",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(t){return t.preventDefault(),function(){return!1}.apply(null,arguments)}}},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-4"},[e("field-select",{attrs:{label:"Default (All robots)",options:[{value:"allow",label:"Allowed"},{value:"deny",label:"Refused"}]},model:{value:t.formFields.crawl,callback:function(e){t.$set(t.formFields,"crawl",e)},expression:"formFields.crawl"}})],1),t._v(" "),e("div",{staticClass:"g-col-4"},[e("field-select",{attrs:{label:"Crawl-Delay",options:t.optionsDelay},model:{value:t.formFields.delay,callback:function(e){t.$set(t.formFields,"delay",e)},expression:"formFields.delay"}})],1),t._v(" "),e("div",{staticClass:"g-col-4"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"url",expression:"'url'"}],attrs:{name:"url",type:"url",label:"Sitemap URL",placeholder:"https://example.com/sitemap.xml","field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.formFields.sitemap,callback:function(e){t.$set(t.formFields,"sitemap",e)},expression:"formFields.sitemap"}})],1),t._v(" "),t._m(1),t._v(" "),t._l(t.searchRobotsColumns,(function(n){return e("div",{staticClass:"g-col-4"},t._l(n,(function(n){var r=n.name,i=n.key;return e("div",{key:i,staticClass:"is-flex -flex-auto"},[e("div",{staticClass:"-flex-full"},[t._v("\n            "+t._s(r)+":\n          ")]),t._v(" "),e("field-switch",{model:{value:t.searchRobots[i].value,callback:function(e){t.$set(t.searchRobots[i],"value",e)},expression:"searchRobots[key].value"}})],1)})),0)})),t._v(" "),t._m(2),t._v(" "),t._l(t.formFields.dirs,(function(n,r){return e("div",{key:r,staticClass:"g-col-4 g-col-bleed-half-y _seofloat"},[e("field-input",{staticClass:"-flex-full",attrs:{placeholder:"/cgi-bin/",autocomplete:!1},scopedSlots:t._u([{key:"htmlAfter",fn:function(){return[e("icon-font",{staticClass:"clickable",attrs:{icon:"trash"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.formFields.dirs.splice(r,1)}}})]},proxy:!0}],null,!0),model:{value:t.formFields.dirs[r],callback:function(e){t.$set(t.formFields.dirs,r,e)},expression:"formFields.dirs[index]"}})],1)})),t._v(" "),e("div",{staticClass:"g-col-12",class:t.formFields.dirs.length?"":"g-col-bleed-top"},[e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.formFields.dirs.push("")}}},[t._v("+ Add new directory")])])],2)]),t._v(" "),e("form",{directives:[{name:"show",rawName:"v-show",value:t.generatedFile,expression:"generatedFile"}],staticClass:"_seo -full-text",on:{submit:function(t){return t.preventDefault(),function(){return!1}.apply(null,arguments)}}},[e("div",{staticClass:"field textarea"},[e("field-textarea",{attrs:{readonly:!0,autosize:!0},model:{value:t.generatedFile,callback:function(e){t.generatedFile=e},expression:"generatedFile"}})],1),t._v(" "),e("has-tooltip",{staticClass:"clickable",attrs:{tooltip:"Download"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDownload.apply(null,arguments)}}},[e("icon-font",{attrs:{icon:"download"}})],1),t._v(" "),e("has-tooltip",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.generatedFile,expression:"generatedFile",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onClipboard,expression:"onClipboard",arg:"success"}],staticClass:"clickable",attrs:{tooltip:t.copyLink}},[e("icon-font",{attrs:{icon:"clone"}})],1)],1)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("h1",[t._v("\n      Generate a robots.txt file for smarter crawling\n    ")]),t._v(" "),e("p",[t._v("\n      Enter your parameters to tell search engines what to crawl.\n      "),e("a",{staticClass:"style-link",attrs:{href:"https://slickplan.com/robots-txt-generator",target:"_blank",rel:"noreferrer noopener"}},[t._v("\n        Learn more\n      ")])])])},function(){var t=this._self._c;return t("div",{staticClass:"g-col-12 g-col-bleed-bottom"},[t("b",[this._v("Search robots:")])])},function(){var t=this._self._c;return t("div",{staticClass:"g-col-12"},[t("b",[this._v("Exclude directories:")])])}]},75760:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container",attrs:{id:"seo-tools"}},[t._m(0),t._v(" "),e("form",{staticClass:"_frame -full g-grid",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(t){return t.preventDefault(),function(){return!1}.apply(null,arguments)}}},[e("div",{staticClass:"g-col-6"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url",type:"url",label:"Landing page URL",placeholder:"https://","field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}})],1),t._v(" "),t._l(t.utmFields,(function(n,r){return e("div",{key:r,staticClass:"g-col-6"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"utm_source"===r?"required":"",expression:"id === 'utm_source' ? 'required' : ''"}],attrs:{label:n,name:r,"field-error":t.formFieldError(r),autocomplete:!1},model:{value:t.parameters[r],callback:function(e){t.$set(t.parameters,r,e)},expression:"parameters[id]"}})],1)}))],2),t._v(" "),e("form",{directives:[{name:"show",rawName:"v-show",value:t.generatedUrl,expression:"generatedUrl"}],staticClass:"_seo -full",on:{submit:function(t){return t.preventDefault(),function(){return!1}.apply(null,arguments)}}},[e("field-input",{attrs:{name:"url",readonly:!0,autoselect:!0},model:{value:t.generatedUrl,callback:function(e){t.generatedUrl=e},expression:"generatedUrl"}}),t._v(" "),e("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.generatedUrl,expression:"generatedUrl",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onClipboard,expression:"onClipboard",arg:"success"}],staticClass:"button -primary -small -block"},[t._v("\n      "+t._s(t.copyLink)+"\n    ")])],1)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("h1",[t._v("\n      Create UTM links for your next Google campaign\n    ")]),t._v(" "),e("p",[t._v("\n      Enter your campaign details and quickly generate a UTM tagged link.\n      "),e("a",{staticClass:"style-link",attrs:{href:"https://slickplan.com/google-utm-builder",target:"_blank",rel:"noreferrer noopener"}},[t._v("\n        Learn more\n      ")])])])}]},27300:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container",attrs:{id:"seo-tools"}},[t._m(0),t._v(" "),e("form",{staticClass:"_seo",class:{"non-clickable":t.isProcessing},attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url",type:"url",placeholder:"Type or paste the URL...","field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),t.url&&!t.formHasErrors()||t.isProcessing?e("button-submit",{staticClass:"-small",attrs:{"is-disabled":!t.url||t.formHelper.isSubmitting,"is-submitting":t.isProcessing||t.formHelper.isSubmitting}},[t._v("\n      Generate sitemap\n    ")]):t._e()],1),t._v(" "),t._m(1),t._v(" "),null!==t.timer||t.isFinished?e("div",{staticClass:"_frame",staticStyle:{"margin-top":"3rem"}},[e("div",{staticClass:"_item font-size-16"},[e("h4",[t._v("\n        Number of pages fetched:\n      ")]),t._v(" "),e("p",[t._v(t._s(t.count||"0"))])]),t._v(" "),e("div",{staticClass:"_item font-size-16"},[e("h4",[t._v("\n        Crawling time:\n      ")]),t._v(" "),e("p",[t._v(t._s(t.timer||"0")+"s")])]),t._v(" "),t.isFinished?e("div",{staticClass:"text-center mt-5"},[e("span",{staticClass:"button -primary -small",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onDownload.apply(null,arguments)}}},[t._v("\n        Download XML file\n      ")])]):t._e()]):t._e()])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("h1",[t._v("\n      Generate a free Google XML Sitemap\n    ")]),t._v(" "),e("p",[t._v("\n      Enter your website’s URL to generate a sitemap.\n      "),e("a",{staticClass:"style-link",attrs:{href:"https://slickplan.com/xml-sitemap-generator",target:"_blank",rel:"noreferrer noopener"}},[t._v("\n        Learn more\n      ")])])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"text-center"},[e("b",[t._v("💡 Note:")]),t._v(" This tool won't work on a site that disallows crawling in its robots.txt file.\n  ")])}]},30604:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-container",attrs:{id:"seo-tools"}},[t._m(0),t._v(" "),e("form",{staticClass:"_seo",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required|url",expression:"'required|url'"}],attrs:{name:"url",type:"url",placeholder:"Type or paste the URL to your sitemap.xml file...","field-error":t.formFieldError("url"),autocomplete:!1},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),t.url&&!t.formHasErrors()?e("button-submit",{staticClass:"-small",attrs:{"is-disabled":!t.url||t.formHelper.isSubmitting,"is-submitting":t.formHelper.isSubmitting}},[t._v("\n      Validate sitemap\n    ")]):t._e()],1),t._v(" "),t.isValid>0||t.responseErrors.length?e("div",{staticClass:"_frame",class:t.responseErrors.length?"-errors":"-success"},[e("h3",[e("icon-font",{attrs:{icon:t.isValid>0?"accept":"cancel"}}),t._v(" "),e("span",{staticClass:"ml-2"},[t._v(t._s(t.isValid>0?"Sitemap is valid!":t.$plural("Error",t.responseErrors.length)))])],1),t._v(" "),e("ul",{staticClass:"_list"},[t.isValid>0?e("li",[t._v("\n        Sitemap contains "+t._s(t.isValid)+" "+t._s(t.$plural("URL",t.isValid))+".\n      ")]):t._e(),t._v(" "),t._l(t.responseErrors,(function(n,r){return e("li",{key:r,domProps:{innerHTML:t._s(n)}})})),t._v(" "),t.responseErrors.length?e("li",{staticClass:"mt-5"},[t._m(1)]):t._e()],2)]):t._e()])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("h1",[t._v("\n      Validate your XML Sitemap\n    ")]),t._v(" "),e("p",[t._v("\n      To validate, enter the URL of your sitemap.\n      "),e("a",{staticClass:"style-link",attrs:{href:"https://slickplan.com/sitemap-validator",target:"_blank",rel:"noreferrer noopener"}},[t._v("\n        Learn more\n      ")])])])},function(){var t=this,e=t._self._c;return e("small",[t._v("\n          Please check "),e("a",{staticClass:"style-link",attrs:{href:"https://www.sitemaps.org/protocol.html",rel:"nofollow noopener",target:"_blank"}},[t._v("sitemaps.org")]),t._v(" for file specification.\n        ")])}]},95072:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-login"}},[e("header-branding",{attrs:{account:t.xAccountData}}),t._v(" "),e("div",{attrs:{id:"login-dialog"}},[e("div",{staticClass:"heading is-flex g-justify-space-between"},[t._m(0),t._v(" "),e("span",{staticClass:"style-link font-size-14",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLogin.apply(null,arguments)}}},[t._v("Sign in")])]),t._v(" "),e("form",{staticClass:"g-container-full form-wrapper",attrs:{"data-vv-scope":t.formHelper.scope},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"form-inner-wrapper"},[e("div",{staticClass:"g-grid"},[e("div",{staticClass:"g-col-12"},[e("field-input",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",type:"password",minlength:"1",maxlength:"48",label:t.$trans("password"),"field-error":t.formFieldError("password")},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1)]),t._v(" "),e("div",{staticClass:"g-grid g-align-center g-align-content-space-between",staticStyle:{"margin-top":"10px"}},[e("div",{staticClass:"g-col-12 text-right"},[e("button-submit",{attrs:{"is-submitting":t.formHelper.isSubmitting}},[t._v("\n              "+t._s(t.$trans("submit"))+"\n            ")])],1)])])])])],1)},i=[function(){var t=this,e=t._self._c;return e("h1",{staticClass:"font-size-21 font-weight-500"},[e("p",[t._v("Enter password")]),t._v(" "),e("p",{staticClass:"font-size-14 text-gray-darkest font-default mt-3"},[t._v("\n          This project is password protected.\n        ")])])}]},96912:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"min-height":"3em"}},[t.xIsContentLoading?e("component-loading",{attrs:{"offset-left":150}}):e("div",{staticClass:"project-wrapper content-preview"},[t.xCellStatus?e("workflow-status",{staticClass:"-alt",attrs:{status:t.xCellStatus}}):t._e(),t._v(" "),e("scrollable",{attrs:{"max-height":t.scrollableHeight}},[e("content-preview",{attrs:{"external-warning":!0}})],1)],1),t._v(" "),e("shared-sidebar",{attrs:{type:"content"}})],1)},i=[]},99254:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"_items"},[e("tree",{staticClass:"pages-list",attrs:{tree:t.pagesTree,hide:t.collapsed},scopedSlots:t._u([{key:"label",fn:function(n){var r=n.node;return[e("div",{staticClass:"name",class:{active:r.id===t.xCurrentCellAlias}},[!r[t.constants.CELL_DATA_KEY_PARENT_ID]&&r.childs&&r.childs.length?e("icon-font",{staticClass:"clickable",attrs:{icon:t.collapsed.includes(r.id)?"triangle-up-sm":"triangle-down-sm"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.toggle(r.id))}}}):t._e(),t._v(" "),e("span",{on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onPageClick(r.id,!0)}}},[t._v(t._s(r[t.constants.CELL_DATA_KEY_LABEL]))]),t._v(" "),!r[t.constants.CELL_DATA_KEY_PARENT_ID]&&r.childs&&r.childs.length?e("ins",[t._v("\n          "+t._s(t.countChilds(r.childs))+"\n        ")]):t._e(),t._v(" "),t.showStatuses&&r[t.constants.CELL_DATA_KEY_CONTENT_STATUS]&&r[t.constants.CELL_DATA_KEY_CONTENT_STATUS][t.xContentLanguage]&&r[t.constants.CELL_DATA_KEY_CONTENT_STATUS][t.xContentLanguage]!==t.constants.CONTENT_STATUS_UNASSIGNED?e("workflow-status",{staticStyle:{"margin-top":"5px"},attrs:{detailed:!1,tooltip:!0,status:r[t.constants.CELL_DATA_KEY_CONTENT_STATUS][t.xContentLanguage]}}):t._e(),t._v(" "),r[t.constants.CELL_DATA_KEY_SUBSECTION]&&r[t.constants.CELL_DATA_KEY_SUBSECTION].indexOf(":")<0?e("icon-font",{staticClass:"clickable text-blue font-size-11 mt-1",attrs:{icon:"link-external"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.onSectionChange(r[t.constants.CELL_DATA_KEY_SUBSECTION]))}}}):t._e()],1)]}}])}),t._v(" "),e("portal",{attrs:{to:"sidebar-dropdown",slim:""}})],1)},i=[]},56476:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.tableStructure?e("table",{staticClass:"selectable cursor-text",staticStyle:{"table-layout":"fixed"}},t._l(t.tableStructure,(function(n,r){return e("tr",{key:t.id+r},t._l(n,(function(n){return e(0===r&&t.blockContent.thead?"th":"td",{key:t.id+n.row+n.col,tag:"component",attrs:{rowspan:n.rowspan,colspan:n.colspan}},[t._v("\n      "+t._s(n.content)+"\n    ")])})),1)})),0):t._e()},i=[]},31880:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.xCurrentDiagramId&&!t.xIsPageLoading?e("diagram-structure"):e("component-loading"),t._v(" "),e("shared-sidebar",{attrs:{type:"diagram"}})],1)},i=[]},14648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-toolbar"},[t.xCurrentDiagramData.logo?e("div",[e("div",{staticClass:"logo"},[e("img",{attrs:{src:t.xCurrentDiagramData.logo,alt:t.xCurrentDiagramData.title}})])]):t._e(),t._v(" "),e("div",{staticClass:"head-meta"},[e("div",{staticClass:"meta"},[e("p",{staticClass:"font-size-16 font-weight-500 line-height-166 text-navy"},[t._v("\n        "+t._s(t.xCurrentDiagramData.title)+"\n      ")]),t._v(" "),t.xDiagramLastSaved?e("p",{staticClass:"font-size-14 text-gray-darkest"},[e("dynamic-timestamp",{attrs:{timestamp:t.xDiagramLastSaved}})],1):t._e()])])])},i=[]},98424:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"_items"},t._l(t.filteredDiagramList,(function(n){return e("li",{key:n.cell_id},[e("div",{staticClass:"name",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.toggle(n.cell_id)}}},[e("icon-font",{attrs:{icon:t.collapsed.includes(n.cell_id)?"triangle-up-sm":"triangle-down-sm"}}),t._v(" "),e("span",[t._v(t._s(n.cell_name))]),t._v(" "),e("ins",[t._v(t._s(n.diagrams.length))])],1),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:!t.collapsed.includes(n.cell_id),expression:"!collapsed.includes(cell.cell_id)"}]},t._l(n.diagrams,(function(n){return e("li",{key:n.alias,staticClass:"is-flex",class:{active:t.xCurrentDiagramId===n.alias},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(n.alias)}}},[e("icon-font",{attrs:{icon:"diagram"}}),t._v(" "),e("p",{staticClass:"ml-3"},[t._v("\n          "+t._s(n.title)+"\n        ")])],1)})),0)])})),0)},i=[]},37701:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app-header"}},[e("div",{attrs:{id:"shared-warning"}},[e("a",{attrs:{href:"https://slickplan.com",target:"_blank"}},[e("svg",{attrs:{width:"16",height:"18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M14.994 11.648c-.024-1.011-.23-1.866-.621-2.564a6.631 6.631 0 0 0-1.692-1.959 16.776 16.776 0 0 0-2.427-1.58 58.02 58.02 0 0 1-2.739-1.582c.09-.415.163-.853.223-1.313a6.49 6.49 0 0 0 .044-1.292c-.03-.4-.141-.727-.334-.98C7.255.127 6.965 0 6.58 0c-.416 0-.795.111-1.136.334a3.284 3.284 0 0 0-.89.868 4.759 4.759 0 0 0-.601 1.158 3.451 3.451 0 0 0-.223 1.158c0 .327.051.631.156.913.104.282.23.542.378.78-.119.415-.274.883-.467 1.402-.194.52-.409 1.062-.646 1.625a15.753 15.753 0 0 1-.824 1.67c-.312.55-.63 1.047-.957 1.492-.238.386-.364.72-.379 1.002-.014.283.022.542.112.78.059.177.17.408.334.69.162.282.318.497.467.645.148.15.296.245.445.29.149.044.297-.052.446-.29a28.13 28.13 0 0 0 2.293-3.63 24.872 24.872 0 0 0 1.626-3.762c.474.297.986.609 1.536.935.549.327 1.069.69 1.559 1.091s.89.84 1.202 1.314c.312.475.468 1.024.468 1.648 0 .534-.15 1.024-.446 1.47a3.06 3.06 0 0 1-1.113 1.024 9.452 9.452 0 0 1-1.559-.557 13.581 13.581 0 0 0-1.58-.601c-.49-.149-.921-.2-1.292-.156-.372.044-.617.29-.735.734-.119.446-.097.899.067 1.359.163.46.423.884.78 1.269.355.386.808.698 1.358.935.548.238 1.15.37 1.803.401.279.017.551.01.819-.021.831-.044 2.364-.33 3.934-2.01 1.177-1.258 1.592-2.929 1.479-4.312Z",fill:"#fff"}})])]),t._v(" "),e("p",[t._v("You are viewing content shared via Slickplan. Always verify external links before clicking. If something looks suspicious, please contact support")]),t._v(" "),e("a",{attrs:{href:"mailto:help@slickplan.com"}},[t._v("Slickplan support")])]),t._v(" "),t._t("default")],2)},i=[]},13840:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("ul",{staticClass:"_items -files"},t._l(t.groupedMockups,(function(n){return e("li",{key:n.id},[e("div",{staticClass:"name",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.toggle(n.id)}}},[e("icon-font",{attrs:{icon:t.collapsed.includes(n.id)?"triangle-up-sm":"triangle-down-sm"}}),t._v(" "),e("span",[t._v(t._s(n.name))]),t._v(" "),e("ins",[t._v(t._s(n.mockups.length))])],1),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:!t.collapsed.includes(n.id),expression:"!collapsed.includes(group.id)"}]},t._l(n.mockups,(function(r){return e("li",{key:r.cell_file_id,class:{active:t.currentFileId===r.cell_file_id},attrs:{title:r.filename},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClick(r.cell_file_id,n.id)}}},[e("div",{staticClass:"_thumb",style:{backgroundImage:"url("+r.url_thumb+")"}}),t._v("\n          "+t._s(r.filename)+"\n        ")])})),0)])})),0)])},i=[]},89200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){return(0,this._self._c)("mockup-preview",{on:{update:this.onMockupChange}})},i=[]},66936:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-sidebar -alt -shared visible",style:t.sidebarHeightStyle},[e("div",{staticClass:"toolbar-search -full-width -with-border clearfix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],class:{focus:t.hasSearch},domProps:{value:t.searchQuery},on:{input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}}),t._v(" "),e("icon-font",{attrs:{icon:"search"}}),t._v(" "),t.hasSearch?e("icon-font",{staticClass:"clickable clear",attrs:{icon:"close"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.searchQuery="")}}}):t._e()],1),t._v(" "),e("div",{key:t.type,staticClass:"_head"},[e("div",{staticClass:"is-flex g-justify-space-between",staticStyle:{transform:"translateY(-15%)"}},[t.heading?e("p",{staticClass:"_caption text-navy"},[t._v("\n        "+t._s(t.heading)+"\n      ")]):t._e(),t._v(" "),"content"===t.type?e("field-switch",{attrs:{label:"Status"},model:{value:t.filterViewStatus,callback:function(e){t.filterViewStatus=e},expression:"filterViewStatus"}}):t._e()],1),t._v(" "),t.filteredSectionsList.length>1||"content"===t.type||"mockup"===t.type?e("div",{staticClass:"is-flex mt-5"},[t.filteredSectionsList.length>1?e("dropdown",{staticClass:"font-size-14",attrs:{label:"Section",items:t.filteredSectionsList,selected:t.currentSectionId},on:{select:t.onSectionChange},scopedSlots:t._u([{key:"selectedValue",fn:function(e){var n=e.value;return[t._v("\n          "+t._s(t.sectionNameTrim(n))+"\n        ")]}}],null,!1,1019993909)}):t._e(),t._v(" "),"mockup"===t.type?e("dropdown",{staticClass:"font-size-14",attrs:{label:"Sort",items:t.mockupSortFilter,selected:t.xFilters.sort},on:{select:function(e){return t.mockupFilterChange("sort",e)}}}):t._e(),t._v(" "),"content"===t.type?e("dropdown",{staticClass:"font-size-14",attrs:{label:"View",items:[{key:"rendered",value:"Rendered"},{key:"block",value:"Blocks"}],selected:t.contentViewFilter},on:{select:function(e){t.contentViewFilter=e}}}):t._e()],1):t._e()]),t._v(" "),e("scrollable",{attrs:{"max-height":t.scrollableHeight}},["content"===t.type?e("list-contents",{key:t.type,attrs:{search:t.hasSearch,section:t.currentSectionId}}):"diagram"===t.type?e("list-diagrams",{key:t.type,attrs:{search:t.hasSearch,section:t.currentSectionId}}):"mockup"===t.type?e("list-mockups",{key:t.type,attrs:{search:t.hasSearch,section:t.currentSectionId,"grouped-mockups":t.groupedMockups,"current-file-id":t.currentFileId}}):t._e()],1)],1)},i=[]},54986:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-wrapper project-wrapper project-sitemap no-padding is-shared",class:{"has-sidebar":t.hasSidebar}},[e("project-header",[e("sitemap-header")],1),t._v(" "),t.shouldHaveScrollbars?e("scrollable",{attrs:{id:"project-scrollable",width:t.projectWidth,height:t.projectHeight,x:!0,y:!0},on:{scroll:t.onScroll}},[e("router-view")],1):e("router-view"),t._v(" "),e("router-view",{attrs:{name:"helper"}})],1)},i=[]},79080:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-toolbar"},[t.xSitemapData.logo?e("div",[e("div",{staticClass:"logo"},[e("img",{attrs:{src:t.xSitemapData.logo,alt:t.xSitemapData.title}})])]):t._e(),t._v(" "),e("div",{staticClass:"head-meta"},[e("div",{staticClass:"meta"},[e("p",{staticClass:"font-size-16 font-weight-500 line-height-166 text-navy text-overflow -shadow"},[e("span",{class:{"style-link-invert":t.titleBreadcrumbs.length},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onBreadcrumbClick()}}},[t._v("\n          "+t._s(t.xSitemapData.title)+"\n        ")]),t._v(" "),t._l(t.titleBreadcrumbs,(function(n,r){return e("span",{key:n.cell_id},[t._o(e("icon-font",{staticClass:"font-size-12 text-gray-darkest",staticStyle:{transform:"translateY(-1px)"},attrs:{icon:"right-sm"}}),0,n.cell_id),t._v(" "),t.titleBreadcrumbs.length<=r+1?e("span",[t._v(t._s(n.name))]):e("span",{staticClass:"style-link-invert",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onBreadcrumbClick(r)}}},[t._v("\n            "+t._s(n.name)+"\n          ")])],1)}))],2),t._v(" "),e("div",{staticClass:"font-size-14 text-gray-darkest metas"},[e("span",[t._v(t._s(t.xSitemapData.updated_at))]),t._v(" "),t.pagesCount?e("span",[t._v("Pages: "+t._s(t.pagesCount))]):t._e(),t._v(" "),t.versionsArray.length>1?e("span",[e("dropdown",{staticClass:"font-size-14",attrs:{items:t.versionsArray,selected:t.xSitemapData.alias},on:{select:t.onVersionChange},scopedSlots:t._u([{key:"default",fn:function(n){var r=n.value;return[e("p",[e("span",[t._v("Version "+t._s(r))]),t._v(" "),e("icon-font",{attrs:{icon:"triangle-down-sm"}})],1)]}}],null,!1,719699748)})],1):e("span",[t._v("Version "+t._s(t.xSitemapData.version))]),t._v(" "),t.canDisplayLanguages?e("span",[e("dropdown",{staticClass:"font-size-14",attrs:{items:t.languages,"select-by":{key:"value",value:"label"},selected:t.xContentLanguage},on:{select:t.onLanguageChange},scopedSlots:t._u([{key:"default",fn:function(n){var r=n.value;return[e("p",[e("span",[t._v(t._s(r))]),t._v(" "),e("icon-font",{attrs:{icon:"triangle-down-sm"}})],1)]}}],null,!1,2794341557)})],1):t._e()])])]),t._v(" "),e("div",{staticClass:"text-right head-nav",class:{"cursor-not-allowed":t.isLoading}},[e("field-radio-bar",{class:{"non-clickable":t.isLoading},attrs:{radios:t.modules,inputs:!1,inline:!0},model:{value:t.currentModule,callback:function(e){t.currentModule=e},expression:"currentModule"}})],1)])},i=[]},44280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"centered-container text-center"},[e("image-tag",{attrs:{src:"/images/import/crawling.gif",retina:!0,alt:"Crawling&hellip;"}}),t._v(" "),e("hr",{staticClass:"spacer-150"}),t._v(" "),e("p",{staticClass:"font-montserrat font-size-28"},[t._v("\n    "+t._s(t.progressMessage)+"\n  ")]),t._v(" "),t.url?e("p",{staticClass:"mt-3"},[e("small",{staticClass:"text-gray-darkest"},[t._v(t._s(t.url))])]):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:"crawling"===t.status,expression:"status === 'crawling'"}]},[e("hr",{staticClass:"spacer-150"}),t._v(" "),e("p",{staticClass:"button -secondary -small",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.callApi("stop")}}},[t._v("\n      Stop & Save\n    ")]),t._v(" "),e("hr",{staticClass:"spacer-75"}),t._v(" "),e("p",[e("span",{staticClass:"font-size-13 text-red cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.callApi("cancel")}}},[t._v("Cancel Import")])])])],1)},i=[]},9036:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[e("project-toolbar"),t._v(" "),e("panel"),t._v(" "),e("transition",{attrs:{name:"transition-panel"}},[t.isProjectShared&&t.isInDesignMockups||!t.xIsMockupVisible?t._e():e("mockup-preview")],1),t._v(" "),t.isDiagramStructureEditable&&t.isInSitemapDiagram?e("diagram-sidebar"):t._e(),t._v(" "),t.isProjectStructureEditable?e("batch-edit-bar"):t._e(),t._v(" "),t.isDiagramStructureEditable&&t.isInSitemapDiagram?e("diagram-batch-edit"):t._e(),t._v(" "),t.isProjectShared?t._e():e("websocket-chat"),t._v(" "),t.isProjectEditable?e("mockup-upload-bar"):t._e(),t._v(" "),t.canUseAi?e("ai-chatbot",{directives:[{name:"show",rawName:"v-show",value:t.canViewAi,expression:"canViewAi"}]}):t._e()],1)},i=[]},35024:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{class:t.wrapperClasses,attrs:{id:"sitemap-wrapper"}},[e("div",{ref:"container",staticClass:"sitemap-inner-wrapper"},[e("div",{staticClass:"sitemap-cells-wrapper",class:"sitemap-section-"+t.xCurrentSectionId,attrs:{id:"cells-search"}},t._l(t.foundCells,(function(t){return e("sitemap-cell",{key:t,attrs:{"cell-id":t,search:!0}})})),1)])])},i=[]},46548:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",[t.isLoaded?e("div",{class:t.classNames},[t.xSearchQuery?[e("sitemap-search-results",{attrs:{query:t.xSearchQuery}})]:e("transition",{attrs:{name:"transition-sections-"+t.sectionsTransitionDirection},on:{"after-leave":t.transitionAfterLeave,"before-leave":t.onBeforeStructureLeave,"after-enter":t.onAfterStructureLoaded}},[e("sitemap-structure",{key:t.sectionId,attrs:{"section-id":t.sectionId}})],1)],2):e("component-loading")],1)},i=[]},34324:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return t.xSitemapStructureLoaded?e("div",{class:t.wrapperClasses,style:t.sitemapWrapperStyles,attrs:{id:"sitemap-wrapper"},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onWrapperMouseDown.apply(null,arguments)}}},[e("transition",{attrs:{name:"transition-fade",mode:"out-in"}},[t.isNewSitemap&&!t.xSitemapCells.length?e("structure-empty",{key:"empty",attrs:{editable:t.isProjectStructureEditable},on:{click:function(e){return t.onClickAddPage(t.constants.CELL_LEVEL_MAIN)}}}):e("div",{key:"container",ref:"container",staticClass:"sitemap-inner-wrapper",class:t.sectionWrapperClassName,style:t.sitemapWrapperContainerStyles},[e("transition",{attrs:{name:"transition-fade-slide"}},[t.xSectionsVisible.util&&(t.isProjectStructureEditable||t.sectionCellsUtil.length)?e("div",[e("div",{staticClass:"sitemap-cells-wrapper",style:t.cellsContainersStyles.util,attrs:{id:"cells-util"}},[e("div",{style:t.stickyAreasStyles.util},[t.sectionCellsUtil.length?t._l(t.sectionCellsUtil,(function(t){return e("sitemap-cell",{key:t,attrs:{"cell-id":t}})})):e("div",{staticClass:"empty-util cell-droparea",attrs:{"data-type":"util"}},[e("div",{staticClass:"new-page-button cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickAddPage(t.constants.CELL_LEVEL_UTIL)}}},[t._v("\n                  + Add utility page\n                ")])])],2)])]):t._e()]),t._v(" "),t.isProjectStructureEditable||t.sectionCellsUtil.length?e("structure-separator",{attrs:{type:"util",visible:t.xSectionsVisible.util,position:t.sectionTogglePosition,count:t.sectionsPagesCount.util},on:{click:function(e){return t.onSectionToggle(t.constants.CELL_LEVEL_UTIL)}}}):t._e(),t._v(" "),t.sectionCellsMain.length?e("div",{staticClass:"sitemap-cells-wrapper",style:t.cellsContainersStyles.main,attrs:{id:"cells-main"}},[t.xSitemapCellDragging.from&&0===t.sectionsPagesCount.home?e("div",{staticClass:"empty-home cell-droparea",attrs:{"data-type":"home"}}):t._e(),t._v(" "),t.shouldDisplayLines?e("svg",{staticClass:"lines",attrs:{width:t.structureSizes.main.width,height:t.structureSizes.main.height,"pointer-events":"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{style:t.linesTransformStyle,attrs:{d:t.linesPath,stroke:t.linesColor,"stroke-width":t.linesWidth,fill:"none","shape-rendering":"geometricPrecision"}})]):t._e(),t._v(" "),e("div",{class:t.cellsWrapperClasses,style:t.styleAttrMainCellsWrapper},t._l(t.sectionCellsMain,(function(t){return e("sitemap-cell",{key:t,attrs:{"cell-id":t}})})),1)]):e("div",{staticClass:"empty-main cell-droparea",attrs:{"data-type":"main"}},[e("div",{staticClass:"new-page-button cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickAddPage(t.constants.CELL_LEVEL_MAIN)}}},[t._v("\n          + Add page\n        ")])]),t._v(" "),t.isProjectStructureEditable||t.sectionCellsFoot.length?e("structure-separator",{attrs:{type:"foot",visible:t.xSectionsVisible.foot,position:t.sectionTogglePosition,count:t.sectionsPagesCount.foot},on:{click:function(e){return t.onSectionToggle(t.constants.CELL_LEVEL_FOOT)}}}):t._e(),t._v(" "),e("transition",{attrs:{name:"transition-fade-slide"},on:{beforeEnter:t.onBeforeFootShow,afterEnter:t.onAfterFootShow,enterCancelled:t.onAfterFootShow}},[t.xSectionsVisible.foot&&(t.isProjectStructureEditable||t.sectionCellsFoot.length)?e("div",[e("div",{staticClass:"sitemap-cells-wrapper",style:t.cellsContainersStyles.foot,attrs:{id:"cells-foot"}},[e("div",{style:t.stickyAreasStyles.foot},[t.sectionCellsFoot.length?t._l(t.sectionCellsFoot,(function(t){return e("sitemap-cell",{key:t,attrs:{"cell-id":t}})})):e("div",{staticClass:"empty-foot cell-droparea",attrs:{"data-type":"foot"}},[e("div",{staticClass:"new-page-button cursor-pointer",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onClickAddPage(t.constants.CELL_LEVEL_FOOT)}}},[t._v("\n                  + Add footer page\n                ")])])],2)])]):t._e()])],1)],1)],1):t._e()},i=[]},1322:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper"},[e("app-title-heading",{staticClass:"sticky-toolbar",staticStyle:{top:"-85px","margin-bottom":"0"},attrs:{title:"Team"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("icon-font",{attrs:{icon:"team"}}),t._v(" "),e("span",{staticClass:"description"},[t._v(t._s(t.visibleMembers.length))])]},proxy:!0},{key:"buttons",fn:function(){return[e("span",{staticClass:"button -primary",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.addMember.apply(null,arguments)}}},[t._v("+ New User")])]},proxy:!0},{key:"menu",fn:function(){return[e("buttons-view",{staticClass:"float-right",staticStyle:{"margin-top":"0.3em"},attrs:{value:t.viewType},on:{update:function(e){t.viewType=e}}}),t._v(" "),e("ul",{staticClass:"tab-menu -letters"},t._l(t.letters,(function(n){return e("li",{key:n.letter,class:{_active:n.active,_disabled:n.disabled},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.filterByLetter(n.letter)}}},[t._v("\n          "+t._s(n.letter)+"\n        ")])})),0)]},proxy:!0}])}),t._v(" "),e("div",{staticClass:"g-container g-container-bleed rows-listing",class:t.containerClass},[e("div",{staticClass:"g-grid g-grid-bleed g-justify-space-between"},[t._l(t.visibleMembers,(function(t){return e("listing-item",{key:t.id,attrs:{member:t}})})),t._v(" "),t._l(t.blocksFill,(function(t){return e("div",{staticClass:"g-col-5 user-row-fake"})}))],2)])],1)},i=[]},27488:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-col-5 row-single user-row buttons-list-handler",class:{selected:t.isSelected},on:{mouseenter:function(e){t.isHovering=!0},mouseleave:function(e){t.isHovering=!1}}},[e("div",{staticClass:"g-grid g-align-center g-grid-bleed user-row-inner"},[e("div",{staticClass:"g-col-auto-full column-name"},[t.canSelect?e("field-checkable",{attrs:{placeholder:!0,checked:t.isSelected},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.rowSelected.apply(null,arguments)}}}):t._e(),t._v(" "),e("div",{staticClass:"label",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void(t.canSelect&&t.rowSelected())}}},[e("user-avatar",{staticClass:"item",attrs:{user:t.member,tooltip:!1}}),t._v(" "),e("div",{staticClass:"name",class:{inactive:!t.member.is_active},attrs:{title:t.member.email}},[t._v("\n          "+t._s(t.member.first_name)+"\n          "+t._s(t.member.last_name)+"\n        ")]),t._v(" "),t.member.type===t.constants.USER_TYPE_OWNER?e("span",{staticClass:"style-label"},[t._v("\n          "+t._s(t.$trans(t.member.type))+"\n        ")]):t.member.is_active?t.member.type===t.constants.USER_TYPE_ADMINISTRATOR?e("span",{staticClass:"style-label"},[t._v("\n          "+t._s(t.$trans("admin"))+"\n        ")]):t._e():e("span",{staticClass:"style-label error",domProps:{innerHTML:t._s(t.member.type===t.constants.USER_TYPE_ADMINISTRATOR?"Inactive&nbsp;admin":"Inactive")}})],1)],1),t._v(" "),t.canSelect?e("div",{staticClass:"g-col-auto column-actions text-right"},[e("buttons-list",{attrs:{buttons:t.userButtons}})],1):t._e()])])},i=[]},98168:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:t.transition}},[t.visibility.overlay?e("div",{ref:"overlay",class:[t.overlayClassName,t.containerClassName],attrs:{"data-modal":t.name},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),t.onBackgroundClick.apply(null,arguments))},touchstart:function(e){return e.stopPropagation(),t.onBackgroundClick.apply(null,arguments)}}},[e("transition",{attrs:{name:t.transition},on:{"after-enter":t.onAfterEnter}},[t.visibility.modal?e("div",{ref:"modal",staticClass:"modal modal-box",class:t.modalClassName,style:t.modalStyle,on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:void e.stopPropagation()},touchstart:function(t){t.stopPropagation()}}},[t.title||t.closeButton?e("div",{staticClass:"modal-titlebar",class:t.titleClassName},[t.title?e("p",{staticClass:"font-montserrat font-size-20",class:t.titleClass},[t._v("\n            "+t._s(t.title)+"\n          ")]):t._e(),t._v(" "),t.closeButton?e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},on:{click:function(e){return t.toggle(!1)}}}):t._e()],1):t._e(),t._v(" "),t._t("default"),t._v(" "),t.modalButtons?e("div",{staticClass:"modal-buttons text-right"},t._l(t.modalButtons,(function(n){return e("button",{class:n.className,attrs:{disabled:t.formIsSubmitting,type:"button"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.buttonClicked(n))},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.buttonClicked(n)}}},[e("span",{staticClass:"caption"},[t._v(t._s(n.label))]),t._v(" "),t.formIsSubmitting===n.id?e("icon-font",{attrs:{icon:"loading"}}):t._e()],1)})),0):t._e()],2):t._e()])],1):t._e()])},i=[]},72248:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"modals-container"}},t._l(t.modals,(function(n){return e("modal",t._g(t._b({key:n.id,on:{closed:function(e){return t.remove(n.id)}}},"modal",n.config,!1),n.events),[e(n.component,t._g(t._b({tag:"component",on:{close:function(e){return t.$modal.hide(n.config.name)},action:function(e){return t.$modal.action(n.config.name,e)}}},"component",n.params,!1),t.$listeners))],1)})),1)},i=[]},89328:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-content"},[t.htmlText?e("p",{domProps:{innerHTML:t._s(t.htmlText)}}):t.markdownText?e("p",{domProps:{innerHTML:t._s(t.markdownTextFormatted)}}):t.text?e("p",[t._v("\n    "+t._s(t.text)+"\n  ")]):t.items.length>1?[e("p",{domProps:{innerHTML:t._s(t.$trans("messages.confirm_deletion_type",{name:t.items.length,type:t.type?t.type:t.$trans("items",t.items.length)}))}}),t._v(" "),t.items.length<=10?e("ul",{staticClass:"modal-list"},t._l(t.items,(function(n){return e("li",[t._v("\n        "+t._s(n)+"\n      ")])})),0):t._e()]:t.items.length?e("p",[t._v("\n    Are you sure you would like to delete "),e("b",[t._v(t._s(t.items[0]))]),t._v("?\n  ")]):t._e(),t._v(" "),t.htmlAppend?e("p",{staticStyle:{"margin-top":"1em"},domProps:{innerHTML:t._s(t.htmlAppend)}}):t._e(),t._v(" "),e("portal-target",{attrs:{name:"modal-confirm",tag:"div",slim:""}})],2)},i=[]},79440:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"notification",class:t.typeClass},[e("div",{staticClass:"_content"},[t.icon?e("icon-font",{staticClass:"icon",attrs:{icon:t.icon}}):t._e(),t._v(" "),e("div",[t.progressBarPercent&&t.title?e("div",{staticClass:"title"},[e("span",[t._v(t._s(t.title))]),t._v(" "),e("span",[t._v(t._s(t.progressBarPercent))])]):t.title?e("div",{staticClass:"title"},[t._v("\n        "+t._s(t.title)+"\n      ")]):t._e(),t._v(" "),e("div",{staticClass:"message selectable"},[t.item.format&&"text"!==t.item.format?e("div",{domProps:{innerHTML:t._s(t.formattedText)}}):[t._v("\n          "+t._s(t.itemText)+"\n        ")]],2),t._v(" "),t.itemNote?e("div",{staticClass:"selectable"},[t.item.format&&"text"!==t.item.format?e("small",{domProps:{innerHTML:t._s(t.formattedNote)}}):e("small",[t._v(t._s(t.itemNote))])]):t._e(),t._v(" "),t.item.buttons&&t.item.buttons.length?e("div",{staticClass:"buttons"},t._l(t.item.buttons,(function(n){return e("span",{staticClass:"style-link",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:n.onClick.apply(null,arguments)}}},[t._v(t._s(n.label))])})),0):t._e(),t._v(" "),"ai-submit"===t.type?e("div",{staticClass:"_progressbar"},[e("span",{style:{width:t.progressBarPercent}})]):t._e()]),t._v(" "),t.isAiType?t._e():e("icon-font",{staticClass:"clickable close",attrs:{icon:"x"},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.$emit("close",t.item.id)}}})],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.item.duration>0,expression:"item.duration > 0"}],staticClass:"_progress"},[e("div",{staticClass:"_slider",style:"transition-duration: ".concat(t.item.duration,"ms")})])])},i=[]},54e3:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.list.length,expression:"list.length"}],staticClass:"notifications",style:"top: ".concat(t.topPosition,"px")},[e("transition-group",{staticClass:"notification-wrapper",attrs:{tag:"div",name:"transition-notification"},on:{"after-leave":t.clean}},t._l(t.active,(function(n){return e("item",{key:n.id,attrs:{item:n},on:{close:function(e){return t.destroy(n.id)}}})})),1)],1)},i=[]},33544:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"popover-container"}},[t.isVisible?e("div",{staticClass:"container-overlay",class:t.overlayClick?"cursor-default":"cursor-not-allowed",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onOverlayClick.apply(null,arguments)}}}):t._e(),t._v(" "),e("transition",{attrs:{name:"popover"},on:{enter:t.onTransitionEnter}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],ref:"popover",class:t.classes,style:t.styles},[t.shouldMount?e(t.component,t._g(t._b({tag:"component",attrs:{width:t.width,height:t.height}},"component",t.props,!1),t.listeners)):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.buttons.length,expression:"buttons.length"}],staticClass:"buttons clearfix"},t._l(t.buttons,(function(n){return e("button-submit",{key:n.id,attrs:{"class-name":n.className,"is-submitting":t.isSubmitting===n.id,"is-disabled":!!t.isSubmitting},nativeOn:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onButtonClick(n))}}},[t._v("\n          "+t._s(n.label)+"\n        ")])})),1)],1)])],1)},i=[]},52356:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this;return(0,t._self._c)(t.tag,{tag:"component",staticClass:"ps-container",style:t.styles,on:{scroll:t.onScroll}},[t._t("default")],2)},i=[]},82460:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(t,e){return t("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M6 32.2077C3.79086 32.2077 2 30.4168 2 28.2077L2 9C2 6.79086 3.79086 5 6 5L43 5C45.2091 5 47 6.79086 47 9L47 28.2076C47 30.4168 45.2091 32.2077 43 32.2077L21.7321 32.2077L21.7321 40.1787C21.7321 41.1207 20.5486 41.5402 19.9553 40.8085L12.9821 32.2077L6 32.2077Z",fill:"url(#svgFeedback1)"}}),e._v(" "),t("path",{attrs:{d:"M11 14H38",stroke:"#CACBD9","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("path",{attrs:{d:"M11 21H27",stroke:"#CACBD9","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("circle",{attrs:{cx:"36",cy:"33",r:"8",fill:"url(#svgFeedback2)"}}),e._v(" "),t("path",{attrs:{d:"M32.7998 33H39.1998",stroke:"white","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("path",{attrs:{d:"M36 36.2L36 29.8",stroke:"white","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("defs",[t("linearGradient",{attrs:{id:"svgFeedback1",x1:"4167.2",y1:"-6091.68",x2:"4167.2",y2:"-9257.42",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#E6E6ED"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#F0F0F5"}})],1),e._v(" "),t("linearGradient",{attrs:{id:"svgFeedback2",x1:"2526.4",y1:"1082.6",x2:"1628.48",y2:"366.44",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#B3B3C7"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#CACBD9"}})],1)],1)])},i=[]},5932:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(t,e){return t("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M9 4C9 1.79086 10.7909 0 13 0H30L47 17V44C47 46.2091 45.2091 48 43 48H13C10.7909 48 9 46.2091 9 44V4Z",fill:"url(#svgFile1)"}}),e._v(" "),t("circle",{attrs:{cx:"12",cy:"28",r:"10",fill:"url(#svgFile2)"}}),e._v(" "),t("path",{attrs:{d:"M8 28H16",stroke:"white","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("path",{attrs:{d:"M12 32L12 24",stroke:"white","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("path",{attrs:{opacity:"0.6",d:"M30 11V0L47 17H36C32.6863 17 30 14.3137 30 11Z",fill:"white"}}),e._v(" "),t("defs",[t("linearGradient",{attrs:{id:"svgFile1",x1:"23.2413",y1:"36.8276",x2:"45.1185",y2:"5.64285",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#F0F0F5"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#E6E6ED"}})],1),e._v(" "),t("linearGradient",{attrs:{id:"svgFile2",x1:"3125",y1:"1340",x2:"2002.6",y2:"444.8",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#B3B3C7"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#CACBD9"}})],1)],1)])},i=[]},93132:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(t,e){return t("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M31.1111 4C28.1656 4 25.7778 6.38781 25.7778 9.33333V37.7778C25.7778 40.7233 28.1656 43.1111 31.1111 43.1111C34.0566 43.1111 36.4444 40.7233 36.4444 37.7778V9.33333C36.4444 6.38781 34.0566 4 31.1111 4Z",fill:"url(#svgMetrics1)"}}),e._v(" "),t("path",{attrs:{d:"M12.4444 19.1111C12.4444 16.1656 14.8322 13.7778 17.7778 13.7778C20.7233 13.7778 23.1111 16.1656 23.1111 19.1111V37.7778C23.1111 40.7233 20.7233 43.1111 17.7778 43.1111C14.8322 43.1111 12.4444 40.7233 12.4444 37.7778V19.1111Z",fill:"url(#svgMetrics2)"}}),e._v(" "),t("path",{attrs:{d:"M0 31.5556C0 28.61 2.3878 26.2222 5.33333 26.2222C8.27886 26.2222 10.6667 28.61 10.6667 31.5556V37.7778C10.6667 40.7233 8.27886 43.1111 5.33333 43.1111C2.3878 43.1111 0 40.7233 0 37.7778V31.5556Z",fill:"url(#svgMetrics3)"}}),e._v(" "),t("circle",{attrs:{cx:"39.1111",cy:"26.2222",r:"8.88889",fill:"url(#svgMetrics4)"}}),e._v(" "),t("path",{attrs:{d:"M35.5554 26.2221H42.6665",stroke:"white","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("path",{attrs:{d:"M39.111 29.7777L39.111 22.6666",stroke:"white","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("defs",[t("linearGradient",{attrs:{id:"svgMetrics1",x1:"13.6583",y1:"34.0077",x2:"30.3331",y2:"6.03086",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#F0F0F5"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#E6E6ED"}})],1),e._v(" "),t("linearGradient",{attrs:{id:"svgMetrics2",x1:"13.6583",y1:"34.0077",x2:"30.3331",y2:"6.03086",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#F0F0F5"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#E6E6ED"}})],1),e._v(" "),t("linearGradient",{attrs:{id:"svgMetrics3",x1:"13.6583",y1:"34.0077",x2:"30.3331",y2:"6.03086",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#F0F0F5"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#E6E6ED"}})],1),e._v(" "),t("linearGradient",{attrs:{id:"svgMetrics4",x1:"2806.22",y1:"1192.44",x2:"1808.53",y2:"396.711",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#B3B3C7"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#CACBD9"}})],1)],1)])},i=[]},61280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{render:()=>r,staticRenderFns:()=>i});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"saving-circle",class:[{"anim-spin":"saving"===t.step,"-visible":"saving"===t.step||"saved"===t.step},t.classColor]},[e("svg",{attrs:{width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("mask",{attrs:{id:"checkmark"}},[e("path",{attrs:{d:"M5.284 5.215a.875.875 0 1 0-1.237 1.237L6.38 8.785a.873.873 0 0 0 1.237 0l5.833-5.833a.875.875 0 0 0-1.236-1.237L6.999 6.929 5.284 5.215Z",fill:"#ffffff"}})]),t._v(" "),e("path",{attrs:{d:"M12.949 7.023a1.167 1.167 0 0 0-1.377.91 4.666 4.666 0 1 1-3.64-5.506A1.167 1.167 0 0 0 8.399.139a7 7 0 1 0 5.46 8.261 1.169 1.169 0 0 0-.91-1.377Z"}}),t._v(" "),e("rect",{attrs:{x:"0",y:"0",width:"saved"===t.step||"hide"===t.step?14:0,height:"14",mask:"url(#checkmark)"}})])])},i=[]},52068:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(89899),i=n.n(r),o=n(99016),a=n(47928),s=n(22164);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}var c=function t(e){return Array.isArray(e)?e.map((function(e){return t(e)})):e&&e.success?void 0!==e.data?e.data:e:null},u=i().create(),d=i().CancelToken;u.defaults.timeout=6e4,u.defaults.baseURL="/json/",u.defaults.responseType="json",u.defaults.withCredentials=!1,u.defaults.xsrfCookieName=null,u.defaults.xsrfHeaderName=null,u.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",u.defaults.headers.post["Content-Type"]="application/json",u.interceptors.request.use((function(t){var e=t;if("get"===e.method?(e.params||(e.params={}),e.params._=(new Date).getTime(),Slickplan.constants.GUEST_TOKEN&&(e.headers["X-Slickplan-Guest-Token"]=Slickplan.constants.GUEST_TOKEN)):(e.data||(e.data={}),"object"===l(e.data)&&(e.data instanceof FormData?e.data.append("_token",Slickplan.globalVars.csrf):e.data._token=Slickplan.globalVars.csrf)),e.url.indexOf("upload")<0){var n={};void 0!==e.data&&Object.keys(e.data).forEach((function(t){null!==e.data[t]&&(n[t]=e.data[t])})),e.data=n}return e})),u.interceptors.response.use((function(t){var e=t.data||null;return Slickplan.globalVars.lastActiveTime=Date.now(),t.config&&"blob"===t.config.responseType?Promise.resolve(t):e&&e.data&&(e.data.redirect||e.data.refresh)?void(e.data.refresh?window.location.reload():Slickplan.helpers.navigateTo(e.data.redirect,!0)):(e&&(e.success&&a.default.dispatch("core/setTimeOffset",e.success),e.storage_used&&a.default.commit("core/setPlanLimits",{limits:{storage_used:e.storage_used}}),e.notified_users&&a.default.state.project.currentProjectType&&Slickplan.websocket.newNotification(a.default.state.project.currentProjectType.project,null,e.notified_users),["sitemap","diagram"].forEach((function(n){var r="".concat(n,"_updated_at");if(e[r]){var i=r.replace(/_/g,"-"),o={type:n,date:e[r],timestamp:e["".concat(r,"_timestamp")]};s.EventBus.$emit(i,o),t.config&&"get"!==t.config.method&&s.EventBus.$emit("".concat(i,"-post"),o),a.default.commit("project/setSavedDate",o)}})),"boolean"!=typeof e.sitemap_can_undo&&"boolean"!=typeof e.diagram_can_undo||a.default.commit("project/setUndoRedoStatus",e)),Promise.resolve(c(e)))}),(function(t){var e,n,r;if(!i().isCancel(t)){var a=60,s="Oops! Looks like something went wrong. Please try again later or contact Slickplan Support",l=null;if("account/log"===t.config.url)s=null;else if(t.response){var c=t.response.data;switch(t.response.status){case 422:if(c&&c.errors)return Promise.reject(c);s=(null==c?void 0:c.message)||"Validation error - missing or incorrect data",l=(null==c?void 0:c.message_note)||null;break;case 401:case 419:return void Slickplan.helpers.navigateTo("/login",!0);case 403:if(!Slickplan.globalVars.lastActiveTime)return void Slickplan.helpers.navigateTo("/login",!0);s=(null===(e=t.response.data)||void 0===e?void 0:e.message)||"Access denied",l=(null===(n=t.response.data)||void 0===n?void 0:n.message_note)||null;break;case 404:s="Oops! Page not found";break;case 429:var u=60;/^[0-9]+$/.test((null===(r=t.response)||void 0===r||null===(r=r.headers)||void 0===r?void 0:r["retry-after"])||"")&&(u=Math.max(u,parseInt(t.response.headers["retry-after"],10)));var d=new Date;d.setSeconds(d.getSeconds()+u),a=u,s="Too many requests to this page, you are temporary locked until ".concat(Slickplan.helpers.formatTime(d),".");break;case 503:s="Server is under maintenance. Please try again in a minute";break;default:s+=" (".concat(t.response.status,")")}}if(s){var f={type:"error",text:s,duration:t.config.url.startsWith("payment")?0:1e3*a};l&&(f.note=l),o.default.prototype.$notify(f)}return Promise.reject(t.response?t.response.data:null)}}));const f={axios:u,request:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],s=e[3],c=e[4];r=r.toLowerCase();var f=d.source();"get"===r||"delete"===r?(c=!0,(o="object"===l(o)?{params:Slickplan.helpers.objectCloneDeep(o)}:{}).cancelToken=f.token):(s&&"object"===l(s)||(s={}),s.cancelToken=f.token);var p=(i=i.replace(":sitemap",Slickplan.globalVars.sitemapAlias).replace(":diagram",Slickplan.globalVars.diagramAlias)).split("/");c||["sitemap","diagram"].includes(p[0])&&!Slickplan.helpers.arrayIntersection(["comments","import","export","mockup","library","files","share","metrics","crawler"],p).length||(c=!0),c||a.default.commit("project/addSavingProcess",i);var m=u[r](i,o,s);return c||m.finally((function(){return a.default.commit("project/removeSavingProcess",i)})),{promise:m,source:f}}}},56019:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={getEmailMessages:function(){return r.default.request("GET","account/messages")},updateEmailMessages:function(t){return r.default.request("PUT","account/messages",t)},updateCompany:function(t){return r.default.request("PUT","account/company",t)},getInvoices:function(){return r.default.request("GET","account/invoices")},downloadInvoices:function(t){return r.default.request("POST","account/invoices/pdf",{invoices:t},{responseType:"blob"})},getBillingData:function(){return r.default.request("GET","account/billing")},addActivityLog:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return r.default.request("POST","account/log",{type:t,action:e,meta:n,project_id:i})},closeAccount:function(){return r.default.request("POST","account/close")},getGlobalWorkflows:function(){return r.default.request("GET","account/workflows")},addGlobalWorkflow:function(t){return r.default.request("POST","account/workflows",{name:t})},updateGlobalWorkflow:function(t,e){return r.default.request("PUT","account/workflows/".concat(t),e)},deleteGlobalWorkflows:function(t){return r.default.request("POST","account/workflows/delete",{ids:t})},cloneGlobalWorkflows:function(t,e){return r.default.request("POST","account/workflows/clone",{ids:t,name:e})},verifyEmailAddress:function(t){return r.default.request("POST","account/verify",{code:t})},verifyEmailResendCode:function(){return r.default.request("POST","account/verify/resend")},verifyEmailChangeAddress:function(t){return r.default.request("PUT","account/verify",{email:t})}}},81560:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={getDetails:function(t){return r.default.request("GET","api/".concat(t))},register:function(t){return r.default.request("POST","api/register",t)},update:function(t,e){return r.default.request("PUT","api/".concat(t),e)},delete:function(t){return r.default.request("POST","api/delete",t)}}},99512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(52068);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={login:function(t,e,n,i,o){return r.default.request("POST","login",{username:t,password:e,remember:n?1:null,totp_token:i,options:o||{}})},logout:function(){return r.default.request("POST","login/delete")},register:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=["first_name","last_name","email","password","company_name","subdomain","form_ref","ref","turnstile_token"];return n||(i=i.concat(["company_logo","dark_font","site_color","ga4_client_id","utms"])),Slickplan.globalVars.gaClientId&&(t.ga4_client_id=Slickplan.globalVars.gaClientId),r.default.request("POST","register",a(a({terms:1,newsletter:t.newsletter?1:null,step:n?"validate":"save"},Slickplan.helpers.objectPick(t,i)),{},{options:e||{}}))},passwordSend:function(t){return r.default.request("POST","login/password/send",{email:t})},passwordReset:function(t,e){return r.default.request("POST","login/password/reset",{token:t,password:e})},getAccountsList:function(){return r.default.request("GET","login/accounts")},removeSsoAccount:function(t){return r.default.request("POST","login/accounts/delete",{id:t})},getTotpStatus:function(){return r.default.request("GET","helpers/totp")},generateTotp:function(){return r.default.request("POST","helpers/totp")},setTotp:function(t){return r.default.request("PUT","helpers/totp",t)}}},26424:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={create:function(t,e){return r.default.request("POST","".concat(t,"/:").concat(t,"/comments"),e)},update:function(t,e,n){return r.default.request("PUT","".concat(t,"/:").concat(t,"/comments/").concat(e),n)},delete:function(t,e){return r.default.request("POST","".concat(t,"/:").concat(t,"/comments/delete"),{ids:Slickplan.helpers.castArray(e)})},like:function(t,e){return r.default.request("PUT","".concat(t,"/:").concat(t,"/comments/like"),{ids:Slickplan.helpers.castArray(e)})},resolve:function(t,e){return r.default.request("PUT","".concat(t,"/:").concat(t,"/comments/resolve"),{ids:Slickplan.helpers.castArray(e)})},changeCoords:function(t,e,n,i){return r.default.request("PUT","".concat(t,"/:").concat(t,"/comments/coords"),{ids:Slickplan.helpers.castArray(e),x:n,y:i})},getList:function(t){return r.default.request("GET","".concat(t,"/:").concat(t,"/comments"))},getThreaded:function(t){return r.default.request("GET","".concat(t,"/:").concat(t,"/comments/threads"))},getByCell:function(t,e){return r.default.request("GET","".concat(t,"/:").concat(t,"/").concat(e,"/comments"))},getByMockup:function(t){return r.default.request("GET","sitemap/:sitemap/mockups/".concat(t,"/comments"))},getByContentBlock:function(t,e,n){return r.default.request("GET","sitemap/:sitemap/content/page/".concat(t,"/").concat(e,"/comments"),{language:n})},getByDiagram:function(t,e){return r.default.request("GET","".concat("diagram"===t?t:"sitemap/:sitemap/diagrams","/").concat(e,"/comments"))}}},52656:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(52068);function i(t,e){var n=!0===t?":diagram":t,r=!0===e?":sitemap":e;return(r?"sitemap/".concat(r,"/diagrams/"):"diagram/")+n}const o={getDetails:function(t,e,n){return r.default.request("GET",i(t,e)+(e?"":"/details"),{contributors:1,comments:1,workflow:1,notifications:n?1:0})},updateDetails:function(t,e){return r.default.request("PUT","".concat(i(!0,e)).concat(e?"":"/details"),t)},clone:function(t,e,n){return r.default.request("POST","diagram/".concat(e||":diagram","/clone").concat(n?"/".concat(n):""),t)},mass:function(t,e,n,o,a){return r.default.request("POST","".concat(i(!0,a),"/mass/").concat(t),{elements:Slickplan.helpers.castArray(e),connectors:Slickplan.helpers.castArray(n),diagram:o})},massCreate:function(t,e,n,r){return this.mass("create",t,e,n,r)},massUpdate:function(t,e,n,r){return this.mass("update",t,e,n,r)},massDelete:function(t,e,n,r){return this.mass("delete",t,e,n,r)},updateElementsOrder:function(t,e){return r.default.request("PUT","".concat(i(!0,e),"/order"),{elements:t})},import:function(t,e){return r.default.request("POST","diagram/:diagram/import/".concat(t),e)},export:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.request("POST","diagram/:diagram/export/".concat(t),e,{responseType:"blob"})},revision:function(t,e){return r.default.request("PUT","".concat(i(!0,e),"/revision/").concat(t))},undo:function(t){return this.revision("undo",t)},redo:function(t){return this.revision("redo",t)},saveItemData:function(t,e){return r.default.request("POST","".concat(i(!0,e),"/data/mass/update"),{data:t})},assignContributors:function(t){return r.default.request("PUT","diagram/:diagram/contributors",{contributors:t})},guestAuthenticate:function(t,e){return r.default.request("POST","diagram/".concat(e||":diagram","/guest/authenticate"),t)},guestIntroduce:function(t,e){return r.default.request("POST","diagram/".concat(e||":diagram","/guest/introduce"),t)}}},14836:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(52068);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={getSignedPost:function(t){var e=t.name,n=t.type,i=t.size;return r.default.request("POST","upload/s3/prepost",{name:e,type:n,size:i})},postProcess:function(t){return r.default.request("POST","upload/s3/postprocess",a({type:"application/octet-stream"},t))},regeneratePreview:function(t){return r.default.request("PUT","upload/s3/regenerate/".concat(t))},upload:function(t,e,n){var o="object"===i(n)?a({},n):{};return o.headers||(o.headers={}),o.headers["Content-Type"]="multipart/form-data",r.default.request("POST","upload/".concat(t),e,o)},getFileLibrary:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.default.request("GET",Slickplan.globalVars.sitemapAlias?"sitemap/:sitemap/library":"diagram/:diagram/library",t?{projects:1}:{})},getMockupsList:function(t,e,n){return r.default.request("GET","sitemap/:sitemap/mockups/list",{comments:t?1:0,statuses:e?1:0,figma:n?1:0})},updateCellMockupStatus:function(t,e,n){return r.default.request("PUT","sitemap/:sitemap/mockups/status",{ids:Slickplan.helpers.castArray(e),status:n||null})},getCellMockups:function(t){return r.default.request("GET","sitemap/:sitemap/mockups/cell/".concat(t))},reassignMockups:function(t){return r.default.request("PUT","sitemap/:sitemap/mockups/reassign",{files:t})},assignFilesAsMockups:function(t,e){return r.default.request("PUT","sitemap/:sitemap/mockups/assign",{files:t,list:e?1:null})},deleteMockups:function(t,e){return r.default.request("POST","sitemap/:sitemap/mockups/delete",{ids:t,keep:e?1:null})},renameMockupFile:function(t,e){return r.default.request("PUT","sitemap/:sitemap/mockups/rename",{id:t,name:e})},updateFigmaFile:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r.default.request("PUT","sitemap/:sitemap/mockups/update",{file_id:t,date:e,mockup_id:n})},deleteFiles:function(t,e){return r.default.request("POST",Slickplan.globalVars.sitemapAlias?"sitemap/:sitemap/library/delete":"diagram/:diagram/library/delete",{files:t,keep:e?1:null})},downloadMultipleFiles:function(t){return r.default.request("POST","download/s3",{files:t})},getCellFiles:function(t){return r.default.request("GET","sitemap/:sitemap/".concat(t,"/files"))},assignFilesToCell:function(t,e){return r.default.request("POST","sitemap/:sitemap/".concat(t,"/files"),{files:e})},importFigmaFile:function(t,e){return r.default.request("POST","sitemap/:sitemap/integrations/figma/import",{file_id:t,items:e})},loadFigmaFile:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r.default.request("POST","integrations/figma/load",{file_id:t,item_id:e,filename:n})},updateMockupsOrder:function(t,e){return r.default.request("PUT","sitemap/:sitemap/mockups/cell/".concat(t,"/order"),{order:e})}}},71995:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(52068),i=n(99512),o=n(56019),a=n(81560),s=n(26424),l=n(52656),c=n(14836),u=n(53808),d=n(40536),f=n(2140),p=n(4588),m=n(28508),h=n(84380),v=n(73024),b=n(24672);const y={beforeNavigation:function(t){var e=t.auth,n=t.path,i=t.route;r.default.axios.defaults.headers.common["X-Slickplan-Navigation"]=[e,n,i].join(":"),Slickplan.globalVars.navigationPath=n;var o=r.default.request("POST","navigation");return o.promise.then((function(t){t&&t.csrf&&(Slickplan.globalVars.csrf=t.csrf)})).catch(_noop),o},helper:function(t,e){return r.default.request("GET","helpers/".concat(t),e)},setGuestToken:function(t){r.default.axios.defaults.headers.get["X-Slickplan-Guest-Token"]=t},blob:function(t){return r.default.axios.get(t,{responseType:"blob"})},account:o.default,api:a.default,auth:i.default,comments:s.default,diagram:l.default,file:c.default,integration:u.default,team:d.default,payment:f.default,project:p.default,seo:m.default,sitemap:h.default,sitemapCell:v.default,user:b.default}},53808:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={getList:function(){return r.default.request("GET","integrations")},getServicesList:function(){return r.default.request("GET","integrations/services")},getForm:function(t,e){return r.default.request("POST","integrations/form/".concat(t),e)},connect:function(t,e){return(e=e||{}).service=t,r.default.request("POST","integrations/connect",e)},disconnect:function(t){return r.default.request("POST","integrations/disconnect",{service:t})},getFigmaProjects:function(t){return r.default.request("POST","sitemap/:sitemap/integrations/figma/mockups",{team_id:t})},getFigmaFiles:function(t){return r.default.request("POST","sitemap/:sitemap/integrations/figma/mockups",{project_id:t})},getFigmaPages:function(t,e){return r.default.request("POST","sitemap/:sitemap/integrations/figma/mockups",{project_id:t,file_id:e})},getFigmaFileDate:function(t){return r.default.request("GET","integrations/figma/filedate",{file_id:t})}}},2140:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={getPlans:function(){return r.default.request("GET","helpers/plans")},paymentForm:function(t,e){return Slickplan.globalVars.gaClientId&&(e.ga4_client_id=Slickplan.globalVars.gaClientId),r.default.request("POST","payment/".concat(t),e)},downgradeToFree:function(){return r.default.request("POST","payment/free")},getBillingPortalUrl:function(t){return r.default.request("POST","payment/billing/portal",t||{})},getBillingData:function(t){return r.default.request("POST","payment/billing",{sessid:t})}}},4588:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={getProjects:function(){return r.default.request("GET","projects")},create:function(t,e){return r.default.request("POST","projects/".concat(t),e)},delete:function(t){return r.default.request("POST","projects/delete",{ids:Slickplan.helpers.castArray(t)})},setStatus:function(t,e,n){return r.default.request("PUT","projects/status",{ids:Slickplan.helpers.castArray(t),type:e,status:n})},massAssignContributors:function(t,e){return r.default.request("PUT","projects/contributors",{projects:t,contributors:e})},addArchetype:function(t){return r.default.request("POST","archetypes",t)},updateArchetype:function(t,e){return r.default.request("PUT","archetypes/".concat(t),e)},deleteArchetypes:function(t){return r.default.request("POST","archetypes/delete",{ids:Slickplan.helpers.castArray(t)})},getResourceTemplates:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r.default.request("GET","helpers/resource-templates",{type:t})},share:function(t,e,n){var i="diagram"===t?"diagram/:diagram":"sitemap/:sitemap";return r.default.request("POST","".concat(i,"/share/").concat(e),n)}}},28508:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={getHeaders:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.default.request("POST","seo/headers",{url:t,redirects:e})},validateXml:function(t){return r.default.request("POST","seo/xml/validate",{url:t})},generateXml:function(t){return r.default.request("POST","seo/xml/generate",{url:t})},generateXmlStatus:function(t){return r.default.request("GET","seo/xml/generate",{url_index:t})},generateXmlDownload:function(){return r.default.request("POST","seo/xml/download",{},{responseType:"blob"})},log:function(t,e){return r.default.request("POST","seo/log",{tool:t,action:e})}}},73024:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={create:function(t){return r.default.request("POST","sitemap/:sitemap/cells",t)},delete:function(t){return r.default.request("POST","sitemap/:sitemap/cells/delete",{ids:[].concat(t)})},updateData:function(t,e,n,i){return r.default.request("PUT","sitemap/:sitemap/".concat(t,"/data"),{key:e,data:n,language:i})},removeData:function(t,e,n){return r.default.request("POST","sitemap/:sitemap/".concat(t,"/data/delete"),{keys:Slickplan.helpers.castArray(e).filter((function(t){return t})),language:n})},massCreate:function(t,e,n){return r.default.request("POST","sitemap/:sitemap/mass/create",{create:t,update:e,log:n})},massSaveData:function(t,e){return r.default.request("PUT","sitemap/:sitemap/mass",{data:[].concat(t),log:e})},massRemoveData:function(t,e){return r.default.request("POST","sitemap/:sitemap/mass/delete",{data:[].concat(t),log:e})},massMovePages:function(t,e){return r.default.request("PUT","sitemap/:sitemap/mass/move",Slickplan.helpers.objectMergeDeep(t,{log:e}))},createSection:function(t,e){return r.default.request("POST","sitemap/:sitemap/".concat(t,"/section"),e)},removeSection:function(t,e){return r.default.request("POST","sitemap/:sitemap/".concat(t,"/section/delete"),e)},clone:function(t){return r.default.request("POST","sitemap/:sitemap/cells/clone",t)},getContent:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return r.default.request("GET","sitemap/:sitemap/content/page/".concat(t),{language:e,slug:n,comments:i})},getContentRevisionsList:function(t,e){return r.default.request("GET","sitemap/:sitemap/content/page/".concat(t,"/revisions"),{language:e})},getContentRevisionsCompare:function(t,e,n,i){return r.default.request("GET","sitemap/:sitemap/content/page/".concat(t,"/revisions/compare"),{language:e,current:n,old:i})},restoreContentRevision:function(t,e,n){return r.default.request("POST","sitemap/:sitemap/content/page/".concat(t,"/revisions/restore"),{language:e,revision_id:n})}}},84380:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(52068);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={getBaseDetails:function(t,e){return r.default.request("GET","sitemap/".concat(e||":sitemap","/details"),t)},getDiagramsList:function(t,e,n){return r.default.request("GET","sitemap/".concat(t||":sitemap","/diagrams"),{comments:e?1:0,users:n?1:0})},addDiagram:function(t){return r.default.request("POST","sitemap/:sitemap/diagrams",t)},editDiagram:function(t,e){return r.default.request("PUT","sitemap/:sitemap/diagrams/".concat(t),e)},cloneDiagram:function(t,e){return r.default.request("POST","sitemap/:sitemap/diagrams/".concat(t,"/clone"),e)},importDiagram:function(t,e){return e&&(t.name=null,t.cell_id=null,t.diagram_id=e),r.default.request("POST","sitemap/:sitemap/diagrams/import",t)},deleteDiagrams:function(t){return r.default.request("POST","sitemap/:sitemap/diagrams/delete",{ids:Slickplan.helpers.castArray(t)})},assignDiagrams:function(t,e){return r.default.request("PUT","sitemap/:sitemap/diagrams/mass/assign",{ids:Slickplan.helpers.castArray(t),cell_id:e})},massDiagramWorkflowStatus:function(t,e){return r.default.request("PUT","sitemap/:sitemap/diagrams/mass/workflow",{ids:Slickplan.helpers.castArray(t),workflow_status:e})},getStructure:function(t){return r.default.request("GET","sitemap/".concat(t||":sitemap","/structure"))},setSettings:function(t){return r.default.request("PUT","sitemap/:sitemap/settings",t)},setCellBoxSetting:function(t,e){return e&&(e+="px"),r.default.request("PUT","sitemap/:sitemap/settings/cells",{box_size:t,font_size:e})},setSectionOptions:function(t,e){return r.default.request("PUT","sitemap/:sitemap/options/".concat(t),e,void 0,!0)},getThemes:function(){return r.default.request("GET","sitemap/:sitemap/themes")},addTheme:function(t){return r.default.request("POST","sitemap/:sitemap/themes",t)},updateTheme:function(t,e){return r.default.request("PUT","sitemap/:sitemap/themes/".concat(t),e)},deleteTheme:function(t){return r.default.request("POST","sitemap/:sitemap/themes/delete",{ids:Slickplan.helpers.castArray(t)})},import:function(t,e){return r.default.request("POST","sitemap/:sitemap/import/".concat(t),e)},export:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.request("POST","sitemap/:sitemap/export/".concat(t),e,{responseType:"blob"})},assignContributors:function(t){return r.default.request("PUT","sitemap/:sitemap/contributors",{contributors:t})},clone:function(t,e){return r.default.request("POST","sitemap/".concat(e||":sitemap","/clone"),t)},newVersion:function(t){return r.default.request("POST","sitemap/:sitemap/version",{version:t})},guestAuthenticate:function(t,e){return r.default.request("POST","sitemap/".concat(e||":sitemap","/guest/authenticate"),t)},guestIntroduce:function(t){return r.default.request("POST","sitemap/:sitemap/guest/introduce",t)},addContentStatus:function(t){return r.default.request("POST","sitemap/:sitemap/content/status",t)},updateContentStatus:function(t,e){return r.default.request("PUT","sitemap/:sitemap/content/status",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({alias:t},e))},deleteContentStatus:function(t){return r.default.request("POST","sitemap/:sitemap/content/status/delete",t)},updateContentStatusOrder:function(t){return r.default.request("PUT","sitemap/:sitemap/content/status/order",{order:t})},importGlobalWorkflow:function(t){return r.default.request("POST","sitemap/:sitemap/content/status/import",{id:t})},getContentSummary:function(){return r.default.request("GET","sitemap/:sitemap/content/summary")},getAllContentTemplates:function(){return r.default.request("GET","content/template")},getContentTemplates:function(){return r.default.request("GET","sitemap/:sitemap/content/template")},addContentTemplate:function(t){return r.default.request("POST","sitemap/:sitemap/content/template",t)},getContentTemplate:function(t){return r.default.request("GET","sitemap/:sitemap/content/template/".concat(t))},cloneContentTemplate:function(t,e){return r.default.request("POST","sitemap/:sitemap/content/template/".concat(t,"/clone"),e)},updateContentTemplate:function(t,e){return r.default.request("PUT","sitemap/:sitemap/content/template/".concat(t),e,void 0,!0)},cloneContentTemplates:function(t){return r.default.request("POST","sitemap/:sitemap/content/template/clone",{ids:Slickplan.helpers.castArray(t)})},cloneDefaultTemplates:function(t){return r.default.request("POST","sitemap/:sitemap/content/template/default",{ids:Slickplan.helpers.castArray(t)})},deleteContentTemplate:function(t){return r.default.request("POST","sitemap/:sitemap/content/template/delete",{ids:Slickplan.helpers.castArray(t)})},addPageContentBlock:function(t,e,n,i,o){return r.default.request("POST","sitemap/:sitemap/content/page/".concat(t),{element:e,position:i,position_id:o,language:n})},updatePageContentBlock:function(t,e,n,i){return r.default.request("PUT","sitemap/:sitemap/content/page/".concat(t,"/").concat(e),{element:n,language:i})},deletePageContentBlock:function(t,e,n){return r.default.request("POST","sitemap/:sitemap/content/page/".concat(t,"/").concat(e,"/delete"),{language:n})},addPageContentBlocks:function(t,e,n){return r.default.request("POST","sitemap/:sitemap/content/page/".concat(t,"/mass"),{elements:[].concat(e),language:n})},updatePageContentBlocks:function(t,e,n){return r.default.request("PUT","sitemap/:sitemap/content/page/".concat(t,"/mass"),{elements:[].concat(e),language:n})},deletePageContentBlocks:function(t,e,n){return r.default.request("POST","sitemap/:sitemap/content/page/".concat(t,"/delete"),{ids:[].concat(e),language:n})},reorderPageContentBlocks:function(t,e,n){return r.default.request("PUT","sitemap/:sitemap/content/page/".concat(t,"/order"),{data:e,language:n})},copyContentFromLanguage:function(t,e,n,i){return r.default.request("POST","sitemap/:sitemap/content/page/".concat(t,"/copy"),{language:e,source_page:n||t,source_language:i})},getContentLog:function(t){return r.default.request("GET","sitemap/:sitemap/content/activity",t)},revision:function(t){return r.default.request("PUT","sitemap/:sitemap/revision/".concat(t))},undo:function(){return this.revision("undo")},redo:function(){return this.revision("redo")},getMetrics:function(t,e,n){return r.default.request("POST","sitemap/:sitemap/metrics".concat(n?"/top":""),{metric:n,date_from:t,date_to:e})},getCellMetrics:function(t,e,n){return r.default.request("POST","sitemap/:sitemap/metrics/page/".concat(t),{date_from:e,date_to:n})},removeMetricsProfile:function(){return r.default.request("POST","sitemap/:sitemap/metrics/view/delete")},connectGa4:function(t){return r.default.request("POST","sitemap/:sitemap/metrics/ga4",t)},crawler:function(t,e){return r.default.request("POST","sitemap/:sitemap/crawler/".concat(t||"progress"),{url_index:e})},aiBotGenerate:function(t,e){return r.default.request("PUT","sitemap/:sitemap/ai/chat",{steps:t,options:e})},aiBotSave:function(t){return r.default.request("POST","sitemap/:sitemap/ai/chat",{token:t})},aiGenerate:function(t){return r.default.request("POST","sitemap/:sitemap/ai/generate",t)}}},40536:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(52068);const i={getUsersList:function(){return r.default.request("GET","team",{groups:1})},create:function(t){return r.default.request("POST","team",t)},update:function(t,e){return r.default.request("PUT","team/".concat(t),e)},updateStatus:function(t,e){return r.default.request("PUT","team/status",{ids:Slickplan.helpers.castArray(t),is_active:e})},delete:function(t){return r.default.request("POST","team/delete",{ids:Slickplan.helpers.castArray(t)})},resendInvitation:function(t){return r.default.request("POST","team/reinvite",{ids:Slickplan.helpers.castArray(t)})}}},24672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(52068);function i(t,e,n){var r="notifications".concat(n?"/".concat(n):"");return!t||"sitemap"!==t&&"diagram"!==t?"account/".concat(r):"".concat(t,"/").concat(e||":".concat(t),"/").concat(r)}const o={updateProfile:function(t){return r.default.request("PUT","user/profile",t)},getPreferences:function(){return r.default.request("GET","user/preferences")},updatePreferences:function(t){return r.default.request("PUT","user/preferences",t)},getNotifications:function(t,e,n){return r.default.request("GET",i(e,n),{count:t?0:1})},readNotifications:function(t,e){return r.default.request("PUT",i(t,e,"read"))}}},82176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>it});var r=n(99016),i=n(52232),o=n(35027),a=n.n(o),s=n(89448),l=n.n(s),c=n(36804),u=n(69704),d=n.n(u),f=n(95700),p=n(8264),m=n.n(p),h=n(98224),v=n.n(h),b=n(7152),y=n.n(b),g=n(44076),_=n.n(g),S=n(3912),C=n(47928),k=n(42712),x=n(63124),w=n(29320),E=n(51300),O=n(94756),D=n(22164),A=n(84744),T=n(81512),P=n(17156),L=n(29804),j=n(97052),I=n(99396),M=n(8036),R=n(35276),N=n(43688),$=n(99208),F=n(21264),B=n(13504),U=n(3784),G=n(39200),H=n(47128),z=n(35312),V=n(32388),K=n(71352),W=n(56088),q=n(28896),Y=n(77916),X=n(42456),Z=n(14580);function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function J(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nt(t,e,n){var r;return r=function(t,e){if("object"!=Q(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Q(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}(0,c.sync)(C.default,S.default);var rt=Object.fromEntries(Array.prototype.map.call(document.head.querySelectorAll('meta[name^="slickplan"][content]'),(function(t){var e;try{e=JSON.parse(atob(t.content))}catch(n){e=t.content}return[t.name.replace("slickplan/",""),e]})));window._noop=function(){},window.Pusher=m(),window.Slickplan={helpers:Object.freeze(D.default),constants:Object.freeze(rt),sitemapCellsMath:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?et(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Z.sitemapStructure),websocket:A.default,globalVars:{csrf:rt.CSRF||"",lastActiveTime:!1,navigationCount:0,navigationPath:"",userId:0,sitemapAlias:"",diagramAlias:"",sectionAlias:Z.constants.SITEMAP_SECTION_MAIN_ID,pageAlias:"",gaClientId:null},catchAll:function(t){var e=!1;t&&t.errors&&(e=Object.keys(t.errors).some((function(e){if(t.errors[e]&&Array.isArray(t.errors[e])&&t.errors[e].length){var n=J(t.errors[e],1)[0];return D.EventBus.$emit("notify",{type:"error",text:n}),!0}return!1}))),!e&&t&&t.message&&D.EventBus.$emit("notify",{type:"error",text:t.message})}},Slickplan.constants.DEBUG?r.default.config.performance=!0:(r.default.config.silent=!0,r.default.config.productionTip=!1,r.default.config.devtools=!1,r.default.config.errorHandler=function(t,e,n){if(window.XMLHttpRequest){var r,i="error=".concat(encodeURIComponent(t.toString()),"&url=").concat(encodeURIComponent(window.location.href),"&ua=").concat(encodeURIComponent(window.navigator.userAgent),"&component=").concat(encodeURIComponent((null==e||null===(r=e.$options)||void 0===r?void 0:r.name)||""),"&lifecycle=").concat(encodeURIComponent(n||""));t&&t.stack&&(i+="&stack=".concat(encodeURIComponent(t.stack)));var o=new XMLHttpRequest;o.open("POST","https://".concat(window.location.hostname,"/callbacks/jserror"),!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(i)}}),r.default.use(k.default),r.default.use(v()),r.default.use(f.default),r.default.use(i.default),r.default.use(a(),{drivers:{http:l()}}),r.default.use(d()),r.default.use(y()),r.default.use(x.default),r.default.use(w.default),r.default.use(E.default),Slickplan.constants.GA4_GTM&&r.default.use(_(),{id:Slickplan.constants.GA4_GTM,vueRouter:S.default}),Y.translations.validator&&i.Validator.localize(Y.translations.validator),r.default.component("app-title-heading",P.default),r.default.component("icon-font",j.default),r.default.component("icon-loading",I.default),r.default.component("image-tag",M.default),r.default.component("user-avatar",R.default),r.default.component("field-checkable",N.default),r.default.component("field-radio-bar",$.default),r.default.component("field-input",F.default),r.default.component("field-select",B.default),r.default.component("field-switch",U.default),r.default.component("button-submit",G.default),r.default.component("has-tooltip",H.default),r.default.component("tree",z.default),r.default.component("tree-node",V.default),r.default.component("tree-table-row",K.default),r.default.component("scrollable",O.default),r.default.component("dropdown",L.default),r.default.component("comments-list",W.default),r.default.component("comments-form",q.default);document.addEventListener("mousemove",(function t(){Slickplan.globalVars.lastActiveTime&&Slickplan.globalVars.lastActiveTime<Date.now()-18e6&&(document.removeEventListener("mousemove",t),window.location.reload())}),!1),/Apple/.test(navigator.vendor)&&/Safari/.test(navigator.userAgent)&&document.body.classList.add("browser-safari"),r.default.mixin({computed:{constants:function(){return Z.constants}}});const it=new r.default({el:"#app",store:C.default,router:S.default,mixins:[X.mixinRoot],created:function(){this.$store.commit("core/onboard",Slickplan.constants.ONBOARD)},render:function(t){return t(T.default)}})},64480:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(97592);const i={name:"comments-empty",functional:!0,props:{text:{type:String,default:"No feedback for now"},description:{type:String,default:null}},render:function(t,e){var n=e.props,i=[t("p",{},[t(r.default)]),t("p",{class:"font-size-14 line-height-300 font-weight-500"},[n.text])];return n.description&&i.push(t("p",{class:"font-size-12 line-height-144 text-gray-darkest"},[n.description])),t("div",{class:"text-center"},i)}}},9328:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"foreign-object",functional:!0,render:function(t,e){return t("foreignObject",Slickplan.helpers.functionalAttrs(e),[t("div",{class:"foreign-object",attrs:{xmlns:"http://www.w3.org/1999/xhtml"}},[e.slots().default])])}}},38856:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"icon-archetype",functional:!0,props:{archetypeId:{type:String,required:!0}},render:function(t,e){var n=e.parent.$store.state.sitemap.archetypes[e.props.archetypeId],r=null;if(n&&n.icon&&"?"!==n.icon){var i=n.icon.substring(0,2);"nc"!==i&&"fa"!==i||(r=t("icon-font",{props:{icon:n.icon,type:i}}))}return r||(r=t("div",{class:"archetype-icon letter"},[n&&n.name?"".concat(n.name).trim().match(/(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g)[0]:"?"])),t("div",Slickplan.helpers.functionalData(e),[r])}}},97052:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"icon-font",functional:!0,props:{icon:{type:String,required:!0},iconClass:{type:String,default:""},wrapper:{type:Boolean,default:!1},type:{type:String,default:"nc",validator:function(t){return"nc"===t||"fa"===t}}},render:function(t,e){var n=e.props,r=n.type,i=n.icon,o=n.iconClass,a=n.wrapper,s="".concat(r,"-"),l="loading"===i&&"nc"===r?["nc-loading",o||""].join(" "):[r+("nc"===r?"-icon":""),s+i.replace(s,""),o].join(" "),c=[];return a&&c.push(t("span",{},[t("span",{class:l})])),t("i",Slickplan.helpers.functionalData(e,{class:a?"".concat(r,"-icon-wrapper"):l}),c)}}},8036:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"image-tag",functional:!0,props:{retina:{type:Boolean,default:!1}},render:function(t,e){var n=Slickplan.helpers.functionalData(e);return n.attrs.alt||(n.attrs.alt=""),e.props.retina&&n.attrs.src&&(n.attrs.srcset="".concat(n.attrs.src," 1x, ").concat(n.attrs.src.replace(/\.(png|jpe?g|gif)/,"@2x.$1")," 2x")),t("img",n)}}},30160:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"link-help",functional:!0,props:{id:{type:[String,Number],default:""},target:{type:String,default:"_blank"}},render:function(t,e){var n=Slickplan.constants.KB_ARTICLES,r="";e.props.id&&(n.links[e.props.id]?r=n.links[e.props.id]:/^\d+$/.test(e.props.id)&&(r=e.props.id)),r&&!/:\/\//.test(r)&&(r="".concat(n.base,"/").concat(r));var i=Slickplan.helpers.functionalAttrs(e);return i.attrs.href=r||n.base,e.props.target&&(i.attrs.target=e.props.target||""),"_blank"===i.attrs.target&&(i.attrs.ref="noopener"),t("a",i,[e.slots().default])}}},86180:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"loading",functional:!0,render:function(t,e){var n=e.props,r=n.offsetLeft,i=n.offsetTop;return t("div",{class:"text-center",style:{position:"absolute",top:i?"calc(50% + ".concat(i,"px)"):"50%",left:r?"calc(50% + ".concat(r,"px)"):"50%",transform:"translate(-50%, -50%)"}},[t("p",{class:"font-montserrat font-size-28"},[t("icon-font",{props:{icon:"loading"}})])])}}},47504:(t,e,n)=>{"use strict";n.r(e),n.d(e,{attributeKey:()=>s,colorLabels:()=>a});var r=n(14580);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=o(o(o(o(o({},r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND,"Fill"),r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR,"Text"),r.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR,"Line"),r.constants.CELL_DATA_KEY_BG_COLOR,"Fill"),r.constants.CELL_DATA_KEY_TEXT_COLOR,"Text");function s(t){return t===r.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR?"lines":t===r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR||t===r.constants.CELL_DATA_KEY_TEXT_COLOR?"text":"background"}},58676:(t,e,n)=>{"use strict";n.r(e),n.d(e,{dateRanges:()=>a,validateRange:()=>s});var r=n(62264),i=n.n(r);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var a=function(){return[{label:"Today",start:i()(),end:i()()},{label:"Yesterday",start:i()().subtract(1,"day"),end:i()().subtract(1,"day")},{label:"This week",start:i()().startOf("week"),end:i()().endOf("week")},{label:"Last week",start:i()().subtract(1,"week").startOf("week"),end:i()().subtract(1,"week").endOf("week")},{label:"This month",start:i()().startOf("month"),end:i()().endOf("month")},{label:"Last month",start:i()().subtract(1,"month").startOf("month"),end:i()().subtract(1,"month").endOf("month")}]},s=function(t,e,n){return"object"===o(t)&&(null===t[e]||i().isDayjs(t[e]))&&(null===t[n]||i().isDayjs(t[n]))}},14580:(t,e,n)=>{"use strict";var r,i;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e),n.d(e,{constants:()=>l,contentPlannerBlocks:()=>w,countries:()=>E,diagramConnectors:()=>y,diagramElements:()=>b,diagramElementsContainers:()=>S,diagramElementsGroups:()=>g,diagramElementsSwimlanes:()=>_,diagramStructure:()=>p,imageFormats:()=>A,mockupsFormats:()=>T,mutationTypes:()=>c,permissionsAccount:()=>u,permissionsProject:()=>d,sampleDashTxt:()=>P,sitemapStructure:()=>f,supportedAiLanguages:()=>O,tinymceCustomLists:()=>x,tinymceProps:()=>k,userColors:()=>D});var l=Object.freeze({SITEMAP_SECTION_MAIN_ID:"svgmainsection",SITEMAP_SECTION_DATA_KEY_NAME:"name",SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME:"color_scheme",SITEMAP_SECTION_DATA_KEY_ORIENTATION:"template",SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND:"default_color",SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR:"text_color",SITEMAP_SECTION_DATA_KEY_LINES_COLOR:"lines_color",SITEMAP_ORIENTATION_HORIZONTAL:"horizontal",SITEMAP_ORIENTATION_VERTICAL:"vertical",SITEMAP_ORIENTATION_TREE:"tree",CELL_DATA_KEY_ID:"id",CELL_DATA_KEY_LABEL:"text",CELL_DATA_KEY_NOTE:"desc",CELL_DATA_KEY_LINKS:"url",CELL_DATA_KEY_SUBSECTION:"section",CELL_DATA_KEY_SECTION_ID:"section_id",CELL_DATA_KEY_LEVEL:"level",CELL_DATA_KEY_PARENT_ID:"parent",CELL_DATA_KEY_ORDER:"order",CELL_DATA_KEY_BG_COLOR:"color",CELL_DATA_KEY_TEXT_COLOR:"textcolor",CELL_DATA_KEY_ARCHETYPE:"archetype",CELL_DATA_KEY_COLLAPSED:"collapsed",CELL_DATA_KEY_CONTENT_STATUS:"content_status",CELL_DATA_KEY_CONTENT_ASSIGNEE:"content_assignee",CELL_DATA_KEY_CONTENT_TEMPLATE:"content_template",CELL_DATA_KEY_CONTENT_DUE_DATE:"content_due_date",CELL_DATA_KEY_CONTENT_UPDATED_AT:"content_updated_at",CELL_DATA_HAS_DIAGRAMS:"diagrams",CELL_DATA_HAS_CONTENT:"has_content",CELL_DATA_HAS_MOCKUPS:"has_mockups",CELL_DATA_HAS_FILES:"has_files",CUSTOM_CELL_DATA_NUMBERING:"_numbering",CELL_ADD_BEFORE:"before",CELL_ADD_AFTER:"after",CELL_ADD_SUBPAGE:"subpage",CELL_ID_DROP_PLACEHOLDER:"placeholder-drop",CELL_ID_HOME_PLACEHOLDER:"placeholder-home",CELL_LEVEL_HOME:"home",CELL_LEVEL_UTIL:"util",CELL_LEVEL_FOOT:"foot",CELL_LEVEL_MAIN:"main",CONTENT_STATUS_UNASSIGNED:"~",DIAGRAM_ELEMENT_BLOCK:"block",DIAGRAM_ELEMENT_PAGE:"page",DIAGRAM_ELEMENT_PROCESS:"process",DIAGRAM_ELEMENT_FILE:"file",DIAGRAM_ELEMENT_CIRCLE:"circle",DIAGRAM_ELEMENT_CONNECTOR:"connector",DIAGRAM_ELEMENT_SEMICIRCLE:"halfcircle",DIAGRAM_ELEMENT_TRIANGLE:"triangle",DIAGRAM_ELEMENT_EXTRACT:"extract",DIAGRAM_ELEMENT_TRAPEZE:"trapez",DIAGRAM_ELEMENT_DIAMOND:"diamond",DIAGRAM_ELEMENT_DECISION:"romb",DIAGRAM_ELEMENT_HEXAGON:"hexagon",DIAGRAM_ELEMENT_PARALLELOGRAM:"parallelogram",DIAGRAM_ELEMENT_DATA:"data",DIAGRAM_ELEMENT_ELLIPSE:"ellipse",DIAGRAM_ELEMENT_ROUNDED_RECTANGLE:"roundedrect",DIAGRAM_ELEMENT_USER:"user",DIAGRAM_ELEMENT_NOTE:"note",DIAGRAM_ELEMENT_DATABASE:"database",DIAGRAM_ELEMENT_DELAY:"delay",DIAGRAM_ELEMENT_DISPLAY:"display",DIAGRAM_ELEMENT_MAGNETIC_TAPE:"tape",DIAGRAM_ELEMENT_MERGE:"merge",DIAGRAM_ELEMENT_OFF_PAGE_CONNECTOR:"offpage",DIAGRAM_ELEMENT_OR:"or",DIAGRAM_ELEMENT_SUMMING:"summing",DIAGRAM_ELEMENT_PREDEFINED_PROCESS:"predefprocess",DIAGRAM_ELEMENT_COLLATE:"collate",DIAGRAM_ELEMENT_MANUAL_INPUT:"maninput",DIAGRAM_ELEMENT_MANUAL_OPERATION:"manoperation",DIAGRAM_ELEMENT_PREPARATION:"preparation",DIAGRAM_ELEMENT_SORT:"sort",DIAGRAM_ELEMENT_STORED_DATA:"storeddata",DIAGRAM_ELEMENT_INTERNAL_STORAGE:"intstorage",DIAGRAM_ELEMENT_MULTIPLE_DOCUMENTS:"multipledoc",DIAGRAM_ELEMENT_PAPER_TYPE:"papertype",DIAGRAM_ELEMENT_GROUP_RECT:"group",DIAGRAM_ELEMENT_GROUP_CIRCLE:"group_circle",DIAGRAM_ELEMENT_GROUP_DIAMOND:"group_diamond",DIAGRAM_ELEMENT_GROUP_ROUND_RECT:"group_round_rect",DIAGRAM_ELEMENT_SWIMLANE_VERTICAL:"swimlane_v",DIAGRAM_ELEMENT_SWIMLANE_HORIZONTAL:"swimlane_h",DIAGRAM_ELEMENT_IMAGE:"image",DIAGRAM_ELEMENT_TEXT:"text",DIAGRAM_ELEMENT_FREEFORM_CONNECTOR:"freeline",DIAGRAM_CONNECTOR_SOLID:"solid",DIAGRAM_CONNECTOR_DASHED:"dashed",DIAGRAM_CONNECTOR_DOUBLE:"double",DIAGRAM_CONNECTOR_NONE:"none",DIAGRAM_CONNECTOR_ARROW:"arrow",DIAGRAM_CONNECTOR_CIRCLE:"circle",DIAGRAM_CONNECTOR_POINTER:"pointer",DIAGRAM_CONNECTOR_STOP:"stop",DIAGRAM_ITEM_DATA_KEY_FILL:"fill_color",DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY:"fill_opacity",DIAGRAM_ITEM_DATA_KEY_STROKE:"border_color",DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR:"text_color",DIAGRAM_ITEM_DATA_KEY_ATTACHMENT:"attachment",DIAGRAM_ITEM_DATA_KEY_RATIO:"aspect_ratio",DIAGRAM_ITEM_DATA_KEY_MAGNETIZE:"magnetize",DIAGRAM_ITEM_DATA_KEY_BORDER_DASH_ARRAY:"border_dash",SAVING_STATUS_LOADING:"loading",SAVING_STATUS_SUCCESS:"success",SAVING_STATUS_ERROR:"error",PANEL_OVERLAY_PROGRESS:"progress",PANEL_OVERLAY_NOT_ALLOWED:"not-allowed",PANEL_OVERLAY_RESIZE:"resize",PANEL_OVERLAY_NOTIFICATION:"note",USER_TYPE_OWNER:"owner",USER_TYPE_ADMINISTRATOR:"administrator",USER_TYPE_CONTRIBUTOR:"contributor",COMMENTS_TYPE_GLOBAL:"global",COMMENTS_TYPE_DIAGRAM:"diagram",COMMENTS_TYPE_PAGE:"page",COMMENTS_TYPE_FILE:"file",COMMENTS_TYPE_CONTENT_BLOCK:"content",COMMENTS_TYPE_REPLY:"reply",WEBSOCKET_CHAT_CLOSED:"closed",WEBSOCKET_CHAT_COLLAPSED:"collapsed",WEBSOCKET_CHAT_EXPANDED:"opened",PROMISE_QUEUE_DEFAULT:"kurwa",PROMISE_QUEUE_SITEMAP_OPTIONS:"dupa",PROMISE_QUEUE_SITEMAP_CELLS:"cipa",PROMISE_QUEUE_DIAGRAM_UPDATE:"chuj",SHARED_SIDEBAR_WIDTH:300,DEFAULT_PANEL_WIDTH:352,DATE_FORMAT_YMD:"YYYY-MM-DD",DATE_FORMAT_LONG:"MMM D, YYYY",FEATURE_CONTRIBUTORS:"contributors_limit",FEATURE_SITEMAPS:"sitemaps_limit",FEATURE_DIAGRAMS:"sitemaps_limit",FEATURE_STORAGE:"storage_limit",FEATURE_TRANSFER:"transfer_limit",FEATURE_BRANDING:"account_branding",FEATURE_ORIENTATION_VERTICAL:"sitemap_vertical_design",FEATURE_ORIENTATION_TREE:"sitemap_family_tree_design",FEATURE_IMPORT_XML:"sitemap_import_slickplan",FEATURE_IMPORT_CRAWLER:"sitemap_import_crawler",FEATURE_IMPORT_TEXT_FILE:"sitemap_import_dash_hierarchy",FEATURE_EXPORT_PDF:"sitemap_export_pdf",FEATURE_EXPORT_EPS:"sitemap_export_eps",FEATURE_EXPORT_PNG:"sitemap_export_png",FEATURE_EXPORT_HTML:"sitemap_export_html",FEATURE_EXPORT_XML:"sitemap_export_xml",FEATURE_EXPORT_CSV:"sitemap_export_csv",FEATURE_EXPORT_DOCX:"sitemap_export_docx",FEATURE_EXPORT_TXT:"sitemap_export_txt",FEATURE_COLOR_PALETTES:"sitemap_custom_color",FEATURE_SECTIONS:"sitemap_sections",FEATURE_COMMENTS:"sitemap_comments",FEATURE_SHARE_LINK:"sitemap_share_link",FEATURE_SHARE_EMAIL:"sitemap_share_email",FEATURE_SHARE_BASECAMP:"sitemap_share_basecamp",FEATURE_SHARE_SLACK:"sitemap_share_slack",FEATURE_SHARE_TEAMWORK:"sitemap_share_teamwork",FEATURE_SHARE_ASANA:"sitemap_share_asana",FEATURE_SHARE_SOCIAL_MEDIA:"sitemap_share_social",FEATURE_CELL_BG_COLOR:"cell_color",FEATURE_CELL_TEXT_COLOR:"cell_text_color",FEATURE_CELL_NOTE:"cell_note",FEATURE_CELL_LINK:"cell_url",FEATURE_CELL_PAGE_TYPE:"cell_archetype",FEATURE_GROUPS:"cell_group",FEATURE_CELLS_CLONING:"cell_cloning",FEATURE_BATCH_EDIT:"batch_editing",FEATURE_FILES:"cell_files",FEATURE_CELL_DIAGRAMS:"cell_diagrams",FEATURE_STANDALONE_DIAGRAMS:"standalone_diagrams",FEATURE_CONTENT:"content_gathering",FEATURE_FAST_EDIT_SIDEBAR:"fast_edit_sidebar",FEATURE_METRICS:"metrics",FEATURE_AI:"ai",STATUS_ACTIVE:"active",STATUS_ARCHIVED:"archived",STATUS_LOCKED:"locked",STATUS_SHARED:"shared",LOG_CONTENT_STATUS_ADD:"content_status_add",LOG_CONTENT_STATUS_DELETE:"content_status_delete",LOG_CONTENT_STATUS_UPDATE:"content_status_update",LOG_CONTENT_STATUS_REORDER:"content_status_reorder",LOG_PAGE_CONTENT_STATUS_UPDATE:"page_content_status_update",LOG_PAGE_CONTENT_STATUS_DELETE:"page_content_status_delete",LOG_CONTENT_TEMPLATE_ADD:"content_template_add",LOG_CONTENT_TEMPLATE_DELETE:"content_template_delete",LOG_PAGE_CONTENT_BODY_UPDATE:"content_body_update",LOG_PAGE_CONTENT_BODY_REORDER:"content_body_reorder",LOG_PAGE_CONTENT_BODY_REVISION_RESTORE:"content_body_revision_restore",LOG_PAGE_CONTENT_META_DESCRIPTION_UPDATE:"page_content_meta_description_update",LOG_PAGE_CONTENT_META_DESCRIPTION_DELETE:"page_content_meta_description_delete",LOG_PAGE_CONTENT_META_KEYWORDS_UPDATE:"page_content_meta_keywords_update",LOG_PAGE_CONTENT_META_KEYWORDS_DELETE:"page_content_meta_keywords_delete",LOG_PAGE_CONTENT_META_TITLE_UPDATE:"page_content_meta_title_update",LOG_PAGE_CONTENT_META_TITLE_DELETE:"page_content_meta_title_delete",LOG_PAGE_BATCH_EDIT:"batch_edit",COLOR_UNASSIGNED:"#e2e6f0"}),c={CORE_PAGE_LOADING_SET:"CORE_PAGE_LOADING_SET",CORE_WINDOW_SIZE_SET:"CORE_WINDOW_SIZE_SET",CORE_SCROLLBAR_WIDTH_REFRESH:"CORE_SCROLLBAR_WIDTH_REFRESH",CORE_SET_TIME_OFFSET:"CORE_SET_TIME_OFFSET",COMMENTS_SET:"COMMENTS_SET",COMMENTS_ADD:"COMMENTS_ADD",COMMENTS_REMOVE:"COMMENTS_REMOVE",COMMENTS_LOADING_SET:"COMMENTS_LOADING_SET",COMMENTS_TYPE_SET:"COMMENTS_TYPE_SET",COMMENTS_REPLY_SET:"COMMENTS_REPLY_SET",COMMENTS_EDIT_SET:"COMMENTS_EDIT_SET",COMMENTS_FORM_RESET:"COMMENTS_FORM_RESET",COMMENTS_FORM_SET:"COMMENTS_FORM_SET",DASHBOARD_PROJECTS_LOAD:"DASHBOARD_PROJECTS_LOAD",DASHBOARD_PROJECTS_UPDATE:"DASHBOARD_PROJECTS_UPDATE",DASHBOARD_FILTERS_SET:"DASHBOARD_FILTERS_SET",DASHBOARD_FILTERS_RESET:"DASHBOARD_FILTERS_RESET",DASHBOARD_PROJECTS_TO_DISPLAY_INCREASE:"DASHBOARD_PROJECTS_TO_DISPLAY_INCREASE",DASHBOARD_SWITCH_VERSION:"DASHBOARD_SWITCH_VERSION",DASHBOARD_PROJECTS_SET_SELECTED:"DASHBOARD_PROJECTS_SET_SELECTED",PLAN_LIMITS_SET:"PLAN_LIMITS_SET",TEAM_MEMBER_ADD:"TEAM_MEMBER_ADD",TEAM_MEMBER_UPDATE:"TEAM_MEMBER_UPDATE",TEAM_MEMBER_DELETE:"TEAM_MEMBER_DELETE",SAVING_STATUS_SET:"SAVING_STATUS_SET",SAVING_STATUS_RESET:"SAVING_STATUS_RESET",SITEMAP_CELL_NEW:"SITEMAP_CELL_NEW",SITEMAP_CELL_CLEAR_NEW:"SITEMAP_CELL_CLEAR_NEW",SITEMAP_CELL_ADD:"SITEMAP_CELL_ADD",SITEMAP_CELL_DELETE:"SITEMAP_CELL_DELETE",SITEMAP_CELL_UPDATE:"SITEMAP_CELL_UPDATE",SITEMAP_CELL_UPDATE_CLEAN:"SITEMAP_CELL_UPDATE_CLEAN",SITEMAP_SECTION_ADD:"SITEMAP_SECTION_ADD",SITEMAP_SECTION_REMOVE:"SITEMAP_SECTION_REMOVE",SITEMAP_SECTION_UPDATE:"SITEMAP_SECTION_UPDATE",SITEMAP_SECTION_BREADCRUMB_PUSH:"SITEMAP_SECTION_BREADCRUMB_PUSH",SITEMAP_SECTION_BREADCRUMB_BACK:"SITEMAP_SECTION_BREADCRUMB_BACK",SITEMAP_CELL_CURRENT_SET:"SITEMAP_CELL_CURRENT_SET",SITEMAP_CELL_DRAGGING_SET:"SITEMAP_CELL_DRAGGING_SET",SITEMAP_CELL_HOVER_SET:"SITEMAP_CELL_HOVER_SET",SITEMAP_CELL_SET_SELECTED:"SITEMAP_CELL_SET_SELECTED",SITEMAP_PROJECT_SETTINGS_SET:"SITEMAP_PROJECT_SETTINGS_SET",SITEMAP_CONTENT_STATUS_SET:"SITEMAP_CONTENT_STATUS_SET",SITEMAP_CONTENT_STATUS_DELETE:"SITEMAP_CONTENT_STATUS_DELETE",SITEMAP_ARCHETYPE_SET:"SITEMAP_ARCHETYPE_SET",SITEMAP_ARCHETYPE_DELETE:"SITEMAP_ARCHETYPE_DELETE",SITEMAP_THEME_ADD:"SITEMAP_THEME_ADD",SITEMAP_THEMES_RESET:"SITEMAP_THEMES_RESET",SITEMAP_TEMP_COLOR_SET:"SITEMAP_TEMP_COLOR_SET",SITEMAP_TEMP_COLOR_RESET:"SITEMAP_TEMP_COLOR_RESET",SITEMAP_CONTRIBUTORS_SET:"SITEMAP_CONTRIBUTORS_SET",SITEMAP_HEADER_VISIBILITY_SET:"SITEMAP_HEADER_VISIBILITY_SET",SITEMAP_CELLS_REGROUP:"SITEMAP_CELLS_REGROUP",SITEMAP_RECALCULATE_POSITIONS:"SITEMAP_RECALCULATE_POSITIONS",SITEMAP_RECALCULATE_LINES:"SITEMAP_RECALCULATE_LINES",SITEMAP_SECTION_COLORS_SET:"SITEMAP_SECTION_COLORS_SET",SITEMAP_SECTION_COLORS_REMOVE:"SITEMAP_SECTION_COLORS_REMOVE",SITEMAP_IMPORT_FORM_DATA_SET:"SITEMAP_IMPORT_FORM_DATA_SET",SITEMAP_IMPORT_CURRENT_FORM_SET:"SITEMAP_IMPORT_CURRENT_FORM_SET",SITEMAP_EXPORT_FORM_DATA_SET:"SITEMAP_EXPORT_FORM_DATA_SET",SITEMAP_EXPORT_CURRENT_FORM_SET:"SITEMAP_EXPORT_CURRENT_FORM_SET",DIAGRAM_ADD:"DIAGRAM_ADD",DIAGRAM_DELETE:"DIAGRAM_DELETE",DIAGRAM_CURRENT_SET:"DIAGRAM_CURRENT_SET",DIAGRAM_ELEMENT_ADD:"DIAGRAM_ELEMENT_ADD",DIAGRAM_ELEMENT_UPDATE:"DIAGRAM_ELEMENT_UPDATE",DIAGRAM_ELEMENT_DELETE:"DIAGRAM_ELEMENT_DELETE",DIAGRAM_ELEMENT_ACTIVE_SET:"DIAGRAM_ELEMENT_ACTIVE_SET",DIAGRAM_CONNECTOR_ADD:"DIAGRAM_CONNECTOR_ADD",DIAGRAM_CONNECTOR_UPDATE:"DIAGRAM_CONNECTOR_UPDATE",DIAGRAM_CONNECTOR_DELETE:"DIAGRAM_CONNECTOR_DELETE",DIAGRAM_CONNECTOR_DRAGGING_SET:"DIAGRAM_CONNECTOR_DRAGGING_SET",DIAGRAM_ITEMS_SELECTED_SET:"DIAGRAM_ITEMS_SELECTED_SET",DIAGRAM_ITEMS_SELECTED_REMOVE:"DIAGRAM_ITEMS_SELECTED_REMOVE",DIAGRAM_CONNECTORS_COLORS_SET:"DIAGRAM_CONNECTORS_COLORS_SET",PANEL_ID_SET:"PANEL_ID_SET",PANEL_WIDTH_SET:"PANEL_WIDTH_SET",PANEL_TITLE_SET:"PANEL_TITLE_SET",PANEL_TABS_SET:"PANEL_TABS_SET",PANEL_CURRENT_TAB_SET:"PANEL_CURRENT_TAB_SET",PANEL_BUTTONS_SET:"PANEL_BUTTONS_SET",PANEL_HIGHLIGHT_SET:"PANEL_HIGHLIGHT_SET",PANEL_PREVIEWS_SET:"PANEL_PREVIEWS_SET",PANEL_VISIBILITY_SET:"PANEL_VISIBILITY_SET",PANEL_STANDALONE_SET:"PANEL_STANDALONE_SET",PANEL_MIN_WIDTH_SET:"PANEL_MIN_WIDTH_SET",PANEL_MAX_WIDTH_SET:"PANEL_MAX_WIDTH_SET",PANEL_OVERLAY_SET:"PANEL_OVERLAY_SET",PANEL_COMPONENT_SET:"PANEL_COMPONENT_SET",PANEL_NOTIFICATION_SET:"PANEL_NOTIFICATION_SET",WEBSOCKET_CHAT_STATUS:"WEBSOCKET_CHAT_STATUS",WEBSOCKET_CHAT_MESSAGE_ADD:"WEBSOCKET_CHAT_MESSAGE_ADD",WEBSOCKET_CHAT_CLEAR:"WEBSOCKET_CHAT_CLEAR",WEBSOCKET_JOINING:"WEBSOCKET_JOINING",WEBSOCKET_LEAVING:"WEBSOCKET_LEAVING"},u=Object.freeze({CLOSE_ACCOUNT:"close_account",COMPANY_SETTINGS:"company_settings",MESSAGE_TEMPLATES:"message_templates",MANAGE_TEAM:"team",CREATE_SITEMAPS:"create_sitemaps",PAYMENTS:"payment",VIEW_INVOICES:"view_invoices"}),d=Object.freeze({MODIFY_STRUCTURE:"project.structure",MANAGE_CONTRIBUTORS:"project.contributors",WRITE_COMMENTS:"project.discuss",MANAGE_COMMENTS:"project.comments",MANAGE_DIAGRAMS:"diagram.manage",MANAGE_MOCKUPS:"mockup.manage",MANAGE_CONTENT:"content.manage",MODIFY_ASSIGNED_CONTENT_PAGES:"content.pages"}),f=Object.freeze({CELL_WIDTH:{small:244,medium:236,large:220},CELL_HEIGHT:{small:44,medium:72,large:112},UTIL_GAP_HORIZONTAL:20,UTIL_GAP_VERTICAL:20,MAIN_CHILD_INDENT:17,MAIN_GAP_HORIZONTAL:50,MAIN_GAP_VERTICAL:11,MAIN_GAP_VERTICAL_BEFORE_CHILDS:27,MAIN_GAP_VERTICAL_AFTER_CHILDS:20,MAIN_GAP_HORIZONTAL_BEFORE_CHILDS:25,MAIN_GAP_TREE_BEFORE_CHILDS:50,MAIN_GAP_TREE_BETWEEN_GROUPS:125,LINE_CURVE:8,PAGE_MARGIN_TOP:40,PAGE_MARGIN_BOTTOM:40,PAGE_MARGIN_LEFT:50,PAGE_MARGIN_RIGHT:50}),p=Object.freeze({colorResizeFill:"#d6e4fe",colorConnection:"#98b8eb",colorActive:"#3477f9",colorNormal:"#8f99a4",colorFill:"#ffffff",colorText:"#000000",snapToGrid:0,workareaMargins:[55,20,55,20,20],elementMargin:8,selectionBorderOffset:1,strokeWidthSelected:3,connectorElementOffset:17,resizeHandlers:["nw","ne","se","sw"],connectionHandlers:["left","right","up","down"],linePlaceholderId:"connector-temp-",defaultLineType:[l.DIAGRAM_CONNECTOR_SOLID,l.DIAGRAM_CONNECTOR_NONE,l.DIAGRAM_CONNECTOR_ARROW],lineAttr:{x1:3.5,y1:10,x2:16.5,y2:10,stroke:"#8f99a4","stroke-width":2,"stroke-linecap":"butt","stroke-linejoin":"miter",fill:"transparent"}}),m=[l.DIAGRAM_ITEM_DATA_KEY_FILL,l.DIAGRAM_ITEM_DATA_KEY_STROKE,l.DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR,l.DIAGRAM_ITEM_DATA_KEY_RATIO],h=[l.DIAGRAM_ITEM_DATA_KEY_STROKE,l.DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR,l.DIAGRAM_ITEM_DATA_KEY_MAGNETIZE,l.DIAGRAM_ITEM_DATA_KEY_BORDER_DASH_ARRAY],v=[l.DIAGRAM_ITEM_DATA_KEY_STROKE,l.DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR,l.DIAGRAM_ITEM_DATA_KEY_MAGNETIZE],b=Object.freeze((s(s(s(s(s(s(s(s(s(s(r={},l.DIAGRAM_ELEMENT_ROUNDED_RECTANGLE,{name:"Terminator",group:"general",sizes:{normal:[72,42],min:[36,21],max:[600,600],icon:[24,14]},order:5,data:m,tag:"rect"}),l.DIAGRAM_ELEMENT_PROCESS,{name:"Process",sizes:{normal:[96,72],min:[48,36],max:[600,600],icon:[24,20]},group:"general",order:10,data:m,tag:"rect"}),l.DIAGRAM_ELEMENT_DECISION,{name:"Decision",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"general",order:15,data:m}),l.DIAGRAM_ELEMENT_CIRCLE,{name:"Circle",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"geometric",order:5,data:m,tag:"circle"}),l.DIAGRAM_ELEMENT_BLOCK,{name:"Rectangle",sizes:{normal:[96,72],min:[48,36],max:[600,600],icon:[24,24]},group:"geometric",order:10,data:m,tag:"rect"}),l.DIAGRAM_ELEMENT_TRIANGLE,{name:"Triangle",sizes:{normal:[72,56],min:[36,28],max:[600,467],icon:[24,20]},aspectRatio:.77778,connector:{offset:{left:.15,right:-.15}},group:"geometric",order:15,data:m}),l.DIAGRAM_ELEMENT_TRAPEZE,{name:"Trapezoid",sizes:{normal:[72,50],min:[36,25],max:[600,420],icon:[24,18]},aspectRatio:.7,connector:{offset:{left:.05,right:-.05}},group:"geometric",order:20,data:m}),l.DIAGRAM_ELEMENT_DIAMOND,{name:"Diamond",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"geometric",order:25,data:m}),l.DIAGRAM_ELEMENT_SEMICIRCLE,{name:"Semicircle",sizes:{normal:[72,36],min:[36,18],max:[600,300],icon:[24,12]},aspectRatio:.5,group:"geometric",order:30,data:m}),l.DIAGRAM_ELEMENT_HEXAGON,{name:"Hexagon",sizes:{normal:[72,80],min:[36,40],max:[536,600],icon:[21,24]},aspectRatio:1.12,group:"geometric",order:35,data:m}),s(s(s(s(s(s(s(s(s(s(r,l.DIAGRAM_ELEMENT_PARALLELOGRAM,{name:"Parallelogram",sizes:{normal:[96,54],min:[48,27],max:[600,600],icon:[24,18]},connector:{offset:{left:.05,right:-.05}},group:"geometric",order:40,data:m}),l.DIAGRAM_ELEMENT_ELLIPSE,{name:"Ellipse",sizes:{normal:[72,60],min:[36,30],max:[600,600],icon:[24,18]},group:"geometric",order:45,data:m,tag:"ellipse"}),l.DIAGRAM_ELEMENT_DATA,{name:"Data",sizes:{normal:[72,54],min:[36,27],max:[600,600],icon:[24,18]},connector:{offset:{left:.05,right:-.05}},group:"flowchart",order:5,data:m}),l.DIAGRAM_ELEMENT_CONNECTOR,{name:"Connector",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"flowchart",order:10,data:m,tag:"circle"}),l.DIAGRAM_ELEMENT_NOTE,{name:"Note",sizes:{normal:[96,72],min:[48,36],max:[600,600],icon:[20,24]},group:"flowchart",order:15,data:m}),l.DIAGRAM_ELEMENT_USER,{name:"Actor",sizes:{normal:[44,46],min:[22,22],max:[574,600],icon:[23,24]},aspectRatio:1.04545455,group:"flowchart",order:20,data:m}),l.DIAGRAM_ELEMENT_FILE,{name:"Document",sizes:{normal:[96,54],min:[48,27],max:[600,600],icon:[24,13.5]},group:"flowchart",order:25,data:m}),l.DIAGRAM_ELEMENT_MULTIPLE_DOCUMENTS,{name:"Multiple documents",sizes:{normal:[96,72],min:[48,36],max:[600,600],icon:[24,18]},group:"flowchart",order:30,data:m}),l.DIAGRAM_ELEMENT_PREPARATION,{name:"Preparation",sizes:{normal:[72,50],min:[36,25],max:[600,420],icon:[24,16]},aspectRatio:.7,group:"flowchart",order:35,data:m}),l.DIAGRAM_ELEMENT_DELAY,{name:"Delay",sizes:{normal:[96,54],min:[48,27],max:[600,600],icon:[24,16]},group:"flowchart",order:40,data:m}),s(s(s(s(s(s(s(s(s(s(r,l.DIAGRAM_ELEMENT_DISPLAY,{name:"Display",sizes:{normal:[96,54],min:[48,27],max:[600,600],icon:[24,16]},group:"flowchart",order:45,data:m}),l.DIAGRAM_ELEMENT_MANUAL_INPUT,{name:"Manual input",sizes:{normal:[96,72],min:[48,36],max:[600,450],icon:[24,18]},aspectRatio:.75,connector:{offset:{left:.025}},group:"flowchart",order:50,data:m}),l.DIAGRAM_ELEMENT_OFF_PAGE_CONNECTOR,{name:"Off-page connector",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"flowchart",order:55,data:m}),l.DIAGRAM_ELEMENT_DATABASE,{name:"Database",sizes:{normal:[64,72],min:[32,36],max:[600,600],icon:[24,24]},group:"flowchart",order:60,data:m}),l.DIAGRAM_ELEMENT_INTERNAL_STORAGE,{name:"Internal storage",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"flowchart",order:65,data:m}),l.DIAGRAM_ELEMENT_SUMMING,{name:"Summing junction",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"flowchart",order:70,data:m}),l.DIAGRAM_ELEMENT_OR,{name:"Or",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"flowchart",order:75,data:m}),l.DIAGRAM_ELEMENT_PAPER_TYPE,{name:"Paper type",sizes:{normal:[96,64],min:[48,32],max:[600,600],icon:[24,16]},group:"flowchart",order:80,data:m}),l.DIAGRAM_ELEMENT_STORED_DATA,{name:"Stored data",sizes:{normal:[96,54],min:[48,27],max:[600,600],icon:[24,14]},connector:{offset:{right:-.15}},group:"flowchart",order:85,data:m}),l.DIAGRAM_ELEMENT_MANUAL_OPERATION,{name:"Manual operation",sizes:{normal:[72,50],min:[36,25],max:[600,420],icon:[24,18]},aspectRatio:.7,connector:{offset:{left:.05,right:-.05}},group:"flowchart",order:90,data:m}),s(s(s(s(s(s(s(s(s(s(r,l.DIAGRAM_ELEMENT_PREDEFINED_PROCESS,{name:"Predefined process",sizes:{normal:[96,72],min:[48,36],max:[600,600],icon:[24,20]},group:"flowchart",order:95,data:m}),l.DIAGRAM_ELEMENT_EXTRACT,{name:"Extract",sizes:{normal:[72,56],min:[36,28],max:[600,467],icon:[24,20]},aspectRatio:.77778,connector:{offset:{left:.15,right:-.15}},group:"flowchart",order:100,data:m}),l.DIAGRAM_ELEMENT_MERGE,{name:"Merge",sizes:{normal:[72,56],min:[36,28],max:[600,467],icon:[24,20]},aspectRatio:.77778,connector:{offset:{left:.15,right:-.15}},group:"flowchart",order:105,data:m}),l.DIAGRAM_ELEMENT_SORT,{name:"Sort",sizes:{normal:[48,72],min:[24,36],max:[400,600],icon:[16,24]},aspectRatio:1.5,group:"flowchart",order:110,data:m}),l.DIAGRAM_ELEMENT_COLLATE,{name:"Collate",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,connector:{offset:{left:.4,right:-.4}},group:"flowchart",order:115,data:m}),l.DIAGRAM_ELEMENT_MAGNETIC_TAPE,{name:"Magnetic tape",sizes:{normal:[72,72],min:[36,36],max:[600,600],icon:[24,24]},aspectRatio:1,group:"flowchart",order:120,data:m}),l.DIAGRAM_ELEMENT_PAGE,{name:"Page",sizes:{normal:[96,72],min:[48,36],max:[600,600],icon:[]},data:m,tag:"rect"}),l.DIAGRAM_ELEMENT_IMAGE,{name:"Image",sizes:{normal:[100,100],min:[20,20],max:[600,600],icon:[]},data:[l.DIAGRAM_ITEM_DATA_KEY_ATTACHMENT,l.DIAGRAM_ITEM_DATA_KEY_RATIO]}),l.DIAGRAM_ELEMENT_TEXT,{name:"Text",sizes:{normal:[240,160],min:[50,20],max:[1e3,1e3],icon:[]},labelClass:"element-text top left",data:[l.DIAGRAM_ITEM_DATA_KEY_RATIO],tag:"rect"}),l.DIAGRAM_ELEMENT_GROUP_RECT,{name:"Rectangle container",sizes:{normal:[240,160],min:[30,30],max:[1e4,1e4],icon:[24,24]},labelClass:"bottom left",data:[].concat(h,[l.DIAGRAM_ITEM_DATA_KEY_RATIO]),tag:"rect",group:"containers",order:200}),s(s(s(s(s(r,l.DIAGRAM_ELEMENT_GROUP_ROUND_RECT,{name:"Rounded rectangle container",sizes:{normal:[240,160],min:[30,30],max:[1e4,1e4],icon:[24,24]},labelClass:"bottom left",data:[].concat(h,[l.DIAGRAM_ITEM_DATA_KEY_RATIO]),tag:"rect",group:"containers",order:210}),l.DIAGRAM_ELEMENT_GROUP_CIRCLE,{name:"Circle container",sizes:{normal:[240,240],min:[30,30],max:[1e4,1e4],icon:[24,24]},labelClass:"bottom center",data:h,tag:"circle",aspectRatio:1,group:"containers",order:220}),l.DIAGRAM_ELEMENT_GROUP_DIAMOND,{name:"Diamond container",sizes:{normal:[240,240],min:[30,30],max:[1e4,1e4],icon:[24,24]},labelClass:"bottom center",data:h,aspectRatio:1,group:"containers",order:230}),l.DIAGRAM_ELEMENT_SWIMLANE_VERTICAL,{name:"Vertical swim lanes",sizes:{normal:[500,500],min:[100,100],max:[1e4,1e4],icon:[10,24],header:48},data:v,group:"containers",order:180}),l.DIAGRAM_ELEMENT_SWIMLANE_HORIZONTAL,{name:"Horizontal swim lanes",sizes:{normal:[700,500],min:[100,100],max:[1e4,1e4],icon:[24,10],header:48},data:v,group:"containers",order:190}))),y=Object.freeze({lines:s(s(s({},l.DIAGRAM_CONNECTOR_SOLID,{}),l.DIAGRAM_CONNECTOR_DASHED,{}),l.DIAGRAM_CONNECTOR_DOUBLE,{}),markers:s(s(s(s(s({},l.DIAGRAM_CONNECTOR_NONE,{}),l.DIAGRAM_CONNECTOR_ARROW,{offset:3,svg:{id:"arrow",width:10,height:12,x:8,y:6,type:"path",attrs:{d:"M 0 0 L 9 6 L 0 12 Z",fill:!0,stroke:!0}}}),l.DIAGRAM_CONNECTOR_CIRCLE,{offset:3,svg:{id:"circle",width:11,height:11,x:9,y:5.5,type:"circle",attrs:{cx:5.5,cy:5.5,r:5,fill:!0,stroke:!0}}}),l.DIAGRAM_CONNECTOR_POINTER,{offset:3,svg:{id:"pointer",width:10,height:12,x:8,y:6,type:"path",attrs:{d:"M 3 0 L 9 6 L 3 12",fill:!1,stroke:!0}}}),l.DIAGRAM_CONNECTOR_STOP,{svg:{id:"stop",width:8,height:11,x:5,y:5.5,type:"rect",attrs:{width:1,height:11,fill:!0,"stroke-width":"0"}}})}),g=[l.DIAGRAM_ELEMENT_GROUP_RECT,l.DIAGRAM_ELEMENT_GROUP_ROUND_RECT,l.DIAGRAM_ELEMENT_GROUP_DIAMOND,l.DIAGRAM_ELEMENT_GROUP_CIRCLE],_=[l.DIAGRAM_ELEMENT_SWIMLANE_HORIZONTAL,l.DIAGRAM_ELEMENT_SWIMLANE_VERTICAL],S=[].concat(g,_),C=document.getElementById("tinymce-src"),k=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({license_key:"gpl",branding:!1,menubar:!1,statusbar:!1,contextmenu:!1,convert_fonts_to_spans:!0,paste_data_images:!1,fix_list_elements:!0,forced_root_block:"p",schema:"html5",element_format:"html",browser_spellcheck:!0,deprecation_warnings:!1,paste_postprocess:function(t,e){e.node.innerHTML=e.node.innerHTML.replace(/&nbsp;/gi," ")}},null!=C&&null!==(i=C.dataset)&&void 0!==i&&i.cache?{cache_suffix:"?v=".concat(C.dataset.cache),referrer_policy:"origin"}:{}),x={align:[{icon:"align-left",label:"Left",value:"JustifyLeft"},{icon:"align-center",label:"Center",value:"JustifyCenter"},{icon:"align-right",label:"Right",value:"JustifyRight"}],size:[{label:"10px",value:"FontSize:10px"},{label:"11px",value:"FontSize:11px"},{label:"12px",value:"FontSize:12px"},{label:"13px",value:"FontSize:13px"},{label:"14px",value:"FontSize:14px"},{label:"16px",value:"FontSize:16px"},{label:"18px",value:"FontSize:18px"},{label:"20px",value:"FontSize:20px"},{label:"22px",value:"FontSize:22px"}]},w=[{id:"wysiwyg",icon:"wysiwyg",tooltip:"Text",descriptionPlaceholder:"Include instructions for this field e.g. “Write in the first person and use oxford commas”."},{id:"file",icon:"archetype-external",tooltip:"Upload",descriptionPlaceholder:"Include instructions e.g. “High resolution”."},{id:"table",icon:"layout-grid",tooltip:"Table",descriptionPlaceholder:"Include instructions for this table e.g. “Feature comparison data”."},{id:"info",icon:"info-2",tooltip:"Info",placeholder:"Provide custom notes or information regarding the content of this page."},{id:"code",icon:"code",tooltip:"Code",descriptionPlaceholder:"Include instructions for this code e.g. “Embed the company videos”."},{id:"form",icon:"archetype-form",tooltip:"Form",descriptionPlaceholder:"Include some instructions for this form e.g. “Fill out all fields before submitting”."}],E=[{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AU",label:"Australia"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CA",label:"Canada"},{value:"CV",label:"Cape Verde"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, The Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Cote D'Ivoire"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czech Republic"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and Mcdonald Islands"},{value:"VA",label:"Holy See (Vatican City State)"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran, Islamic Republic Of"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libyan Arab Jamahiriya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MK",label:"Macedonia, The Former Yugoslav Republic of"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia, Federated States of"},{value:"MD",label:"Moldova, Republic of"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"AN",label:"Netherlands Antilles"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestinian Territory, Occupied"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Reunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"SH",label:"Saint Helena"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"CS",label:"Serbia and Montenegro"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Surilabel"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SZ",label:"Swaziland"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"GB",label:"United Kingdom"},{value:"US",label:"United States"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela"},{value:"VN",label:"Vietnam"},{value:"VG",label:"Virgin Islands, British"},{value:"VI",label:"Virgin Islands, U.S."},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],O=["ar","bg_BG","cs_CZ","da_DK","de_DE","el","en_GB","en_US","es_ES","es_MX","fi","fr_FR","hr","hu_HU","it_IT","ja","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ro_RO","ru_RU","sk_SK","sl_SI","sv_SE","th","tr_TR","uk","zh_CN","zh_TW"],D=["#d0000f","#2292c1","#5eca3c","#cd5a1d","#e0ba16","#8e09bb","#0800b9","#0a9400"],A=["jpeg","jpg","png","gif"],T=["jpeg","jpg","png","gif","pdf"],P=":: Home Page\n\n++ Utility Page 1\n++ Utility Page 2\n++ Utility Page 3\n\nTop Level Page\n-- Second Level Page (Child of Top Level)\n---- Third Level Page (Child of Second Level)\n------ Forth Level Page (Child of Third Level)\nTop Level Page\n-- Second Level Page\n-- Second Level Page\n---- Third Level Page\n---- Third Level Page\n---- Third Level Page\n-- Second Level Page\n-- Second Level Page\n\n>> Footer Page 1\n>> Footer Page 2"},22164:(t,e,n)=>{"use strict";n.r(e),n.d(e,{EventBus:()=>R,default:()=>$});var r=n(99016),i=n(84360),o=n.n(i),a=n(24320),s=n.n(a),l=n(68084),c=n.n(l),u=n(5928),d=n.n(u),f=n(19448),p=n.n(f),m=n(32552),h=n.n(m),v=n(2376),b=n.n(v),y=n(14580),g=n(3928),_=n(71995),S=["class","style"];function C(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||D(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){E(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function E(t,e,n){var r;return r=function(t,e){if("object"!=T(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==T(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||D(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){if(t){if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(t,e):void 0}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}var P={},L={},j={},I=null,M=null,R=new r.default,N=function(t,e){return e};const $={isBlank:function(t){var e=T(t);return!!(null===t||Number.isNaN(t)||"string"===e&&""===t)||"function"!==e&&"boolean"!==e&&"number"!==e&&([Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length)},nullableOrType:function(t,e){return null===t||T(t)===(e||"undefined")},arrayPermute:function(t,e,n){var r=t[e],i=t.length,o=e-n;if(o>0)return[].concat(O(t.slice(0,n)),[r],O(t.slice(n,e)),O(t.slice(e+1,i)));if(o<0){var a=n+1;return[].concat(O(t.slice(0,e)),O(t.slice(e+1,a)),[r],O(t.slice(a,i)))}return t},arrayInsert:function(t,e,n,r){var i=e;"string"==typeof i&&(i=t.indexOf(i)),"number"!=typeof i&&(i=1/0);var o=r&&Array.isArray(n)?n:[n];return 0===i?[].concat(O(o),O(t.slice(0))):i===1/0||Number.isNaN(i)||i>t.length?[].concat(O(t),O(o)):i>=0?[].concat(O(t.slice(0,i)),O(o),O(t.slice(i))):O(t)},arrayChunk:function(t,e){for(var n=[],r=0,i=t.length;r<i;r+=e)n.push(t.slice(r,r+e));return n},arrayIntersection:function(t,e){return Array.isArray(t)&&Array.isArray(e)?t.filter((function(t){return e.includes(t)})):[]},arrayDiff:function(t,e){return t.filter((function(t){return!e.includes(t)}))},arrayDiffBoth:function(t,e){return this.arrayDiff(t,e).concat(this.arrayDiff(e,t))},arrayToKeyValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value";return t.reduce((function(t,r){return w(w({},t),{},E({},r[e],n?r[n]:r))}),{})},arrayShuffle:function(t){for(var e=t.slice(0),n=e.length-1;n>0;n--){var r=Math.floor(Math.random()*(n+1)),i=[e[r],e[n]];e[n]=i[0],e[r]=i[1]}return e},reduceToIds:function(){for(var t=this,e=[],n=function(n){var r="object"===T(n)?n.id||n.alias:n;(r||0===r||"0"===r)&&(Array.isArray(r)?e=[].concat(e,t.reduceToIds(r)):e.push(r))},r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];for(var a=0;a<i.length;a+=1)i[a].forEach(n);return e},castArray:function(t,e){if(Array.isArray(t))return t.slice(0);var n=T(e);return"function"===n?e(t):"undefined"!==n?e:t?[t]:[]},castString:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof t?e?t.trim():t:this.isBlank(t)?"":e?"".concat(t).trim():"".concat(t)},objectCloneDeep:function(t){return s()(t)},objectMergeDeep:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c().all(e,{arrayMerge:N})},objectPick:function(t,e){if(Array.isArray(e))return e.reduce((function(e,n){return t&&Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]),e}),{});if("function"==typeof e){var n={};return Object.keys(t).forEach((function(r){e(t[r])&&(n[r]=t[r])})),n}return{}},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,e=t.getHours(),n=t.getMinutes(),r=e;return r=(r%=12)||12,n=n<10?"0".concat(n):n,"".concat(r,":").concat(n," ").concat(e>=12?"pm":"am")},formatPrice:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=0!==t?2:0,i=new Intl.NumberFormat("EUR"===e?"pl-PL":"en-US",{style:"currency",minimumFractionDigits:r,maximumFractionDigits:r,currency:"EUR"===e?e:"USD"}).format(t);return n||(i=i.replace(/[^0-9,. ]/g,"").trim()),i},hex2rgb:function(t){var e=t;return"string"==typeof e&&(/rgb/.test(e)?3===(e=e.replace(/[^\d,]/g,"").split(",")).length&&(e=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]):e=3===(e=e.replace(/[^0-9a-f]/gi,"").split("")).length?[parseInt(e[0]+e[0],16),parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16)]:[parseInt(e[0]+e[1],16),parseInt(e[2]+e[3],16),parseInt(e[4]+e[5],16)]),!(!Array.isArray(e)||3!==e.length)&&e},rgb2hex:function(t){"string"==typeof t&&t.startsWith("rgb")&&(t=t.replace(/[^\d,]/g,"").split(",")),(!Array.isArray(t)||t.length<3)&&(t=[0,0,0]);var e=k(t,3),n=e[0],r=e[1],i=e[2];return"#".concat("0".concat(parseInt(n,10).toString(16)).slice(-2)).concat("0".concat(parseInt(r,10).toString(16)).slice(-2)).concat("0".concat(parseInt(i,10).toString(16)).slice(-2))},hsb2rgb:function(t){var e=k(t,3),n=e[0],r=e[1],i=e[2];n=Math.round(n),r=Math.round(255*r/100);var o=Math.round(255*i/100),a={r:o,g:o,b:o};if(0!==r){var s=o,l=(255-r)*o/255,c=n%60*(s-l)/60;360===n&&(n=0),n<60?(a.r=s,a.b=l,a.g=l+c):n<120?(a.g=s,a.b=l,a.r=s-c):n<180?(a.g=s,a.r=l,a.b=l+c):n<240?(a.b=s,a.r=l,a.g=s-c):n<300?(a.b=s,a.g=l,a.r=l+c):n<360?(a.r=s,a.g=l,a.b=s-c):(a.r=0,a.g=0,a.b=0)}return[Math.round(a.r),Math.round(a.g),Math.round(a.b)]},hsb2hex:function(t){return this.rgb2hex(this.hsb2rgb(t))},hex2hsb:function(t){var e=this.rgb2hsb(this.hex2rgb(t));return 0===e[1]&&(e[0]=360),e},rgb2hsb:function(t){var e=k(t,3),n=e[0],r=e[1],i=e[2],o={h:0,s:0,b:0},a=Math.min(n,r,i),s=Math.max(n,r,i),l=s-a;return o.b=s,o.s=0!==s?255*l/s:0,0!==o.s?o.h=n===s?(r-i)/l:r===s?2+(i-n)/l:4+(n-r)/l:o.h=-1,o.h*=60,o.h<0&&(o.h+=360),o.s*=100/255,o.b*=100/255,[o.h,o.s,o.b]},isHex:function(t){return t&&"string"==typeof t&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?/^#[a-f0-9]{3}([a-f0-9]{3})?$/i:/^#[a-f0-9]{6}$/i).test(t)},invertColor:function(t,e){var n=this.hex2rgb(t);return e?.299*n[0]+.587*n[1]+.114*n[2]>186?"#000000":"#FFFFFF":this.rgb2hex([255-n[0],255-n[1],255-n[2]])},changeColor:function(t,e,n){var r=Math.round(246*(e>1&&e<100?e/10:e))*(n?-1:1);return this.rgb2hex(this.hex2rgb(t).map((function(t){return Math[n?"max":"min"](parseInt(t,10)+r,n?0:245)})))},randomString:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a0",n="",r="";e.indexOf("a")>=0&&(r+="abcdefghijklmnopqrstuvwxyz"),e.indexOf("A")>=0&&(r+=r.toUpperCase()),e.indexOf("0")>=0&&(r+="0123456789");for(var i=0;i<t;i+=1)n+=r.charAt(Math.floor(Math.random()*(i>0?36:26)));return n},randomNumber:function(t,e){var n=Math.ceil(t),r=Math.floor(e);return Math.floor(Math.random()*(r-n)+n)},uniqueId:function(t,e,n){return("string"==typeof t?t:"svg")+this.randomString(n||16)+("string"==typeof e?e:"")},getValue:function(t,e,n){var r=p()(t,e);return void 0===n||null!=r&&r==r?r:n},setValue:function(t,e,n){h()(t,e,n)},ucFirst:function(t){return"string"==typeof t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t},sluggify:function(t){return t.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]+/g,"")},getInitials:function(t){return d()(Array.isArray(t)?t.join(" "):"".concat(t)).match(/(^\S\S?|\b\S)?/g).join("").match(/(^\S|\S$)?/g).join("").toUpperCase()},kebabCase:function(t){return"string"==typeof t?t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g).filter(Boolean).join("-").toLowerCase():t},normalizeString:function(t){return"".concat(d()(t)).toLowerCase()},normalizeKeywords:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Array.isArray(t)&&(t=t.join(" ")),this.normalizeString(t).split(" ").filter((function(t){return["string","number"].includes(T(t))&&t.length>=e}))},localeCompare:function(t,e){return this.normalizeString(t).localeCompare(this.normalizeString(e))},sortSmart:function(t,e,n,r){var i=this,o=this.objectCloneDeep(t);return o.sort((function(t,o){var a="desc"===n?o:t,s="desc"===n?t:o;return!r||e!==r&&a[e]!==s[e]?Slickplan.helpers.isBlank(a[e])?"desc"===n?-1:1:Slickplan.helpers.isBlank(s[e])?"desc"===n?1:-1:e.indexOf("name")>=0||e.indexOf("title")>=0?i.localeCompare(a[e],s[e]):a[e]>s[e]?1:-1:i.localeCompare(a[r],s[r])})),o},sortString:function(t,e,n){var r=this,i=this.objectCloneDeep(t);return i.sort((function(t,n){var i=[t,n].map((function(t){return"function"==typeof e?e(t):void 0!==e?t[e]:t}));return r.localeCompare(i[0],i[1])})),"desc"===String(n).toLowerCase()&&(i=i.reverse()),i},sortNumeric:function(t,e,n,r,i){var o=this.objectCloneDeep(t);return o.sort((function(t,n){var o=[t,n].map((function(t){var n=t;return"function"==typeof e?n=e(t):void 0!==e&&(void 0!==t[e]?n=t[e]:r&&void 0!==t[r]&&(n=t[r],"desc"===i&&(n*=-1))),Number(n)}));return o[0]<o[1]?-1:o[0]>o[1]?1:0})),"desc"===String(n).toLowerCase()&&(o=o.reverse()),o},stringConcat:function(t,e,n){return"string"==typeof t||"number"==typeof t?"".concat(e?"".concat(e," "):"").concat(t).concat(n?" ".concat(n):""):""},stringClone:function(t){var e="(Clone)";return"string"==typeof t&&t.endsWith(e)?t:this.stringConcat(t,"",e)},getMousePositionSvg:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.getScreenCTM();return{x:(t.clientX-r.e)/r.a/n,y:(t.clientY-r.f)/r.d/n}},setSlideTransitionHeight:function(t){"number"==typeof t&&!Number.isNaN(t)&&t>0&&document.documentElement.style.setProperty("--transition-fade-slide-height","".concat(t,"px"))},moveCursorToEnd:function(t){if(t.focus(),"number"==typeof t.selectionStart)t.selectionStart=t.selectionEnd=t.value.length;else if(void 0!==t.createTextRange){var e=t.createTextRange();e.collapse(!1),e.select()}},stripHtml:function(t){return I||(I=document.createElement("div")),I.innerHTML=t,String(I.textContent||I.innerText||"")},requestQueue:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.constants.PROMISE_QUEUE_DEFAULT,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:99;return L[e]?n&&L[e].clear():L[e]=new g.default(1,e,r),L[e].add(t),L[e]},requestSingle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";this.requestCancel(e);var n=t();if(n)return j[e]=n,j[e]},requestCancel:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"_";j[t]&&j[t].source&&(j[t].source.cancel(),j[t]=null)},downloadFromResponse:function(t){t&&t.data&&t.headers&&o()(t.data,t.headers["x-filename"]||t.headers["content-disposition"].split("filename=").pop().replace(/^"|"$/g,""),t.headers["x-content-type"]||t.headers["content-type"])},downloadLinkTrigger:function(t,e){if(e){var n=_.default.blob(this.getLink(t,!0));return n.then(this.downloadFromResponse).catch(_noop),n}this.navigateTo(t,!0,!0)},getIconByFile:function(t,e){if(e&&"string"==typeof e){var n=e.split("/");if(n.length>1){if("image"===n[0])return"file-image-o";if("video"===n[0])return"file-video-o";if("audio"===n[0])return"file-audio-o";if("pdf"===n[1])return"file-pdf-o"}}switch("".concat(t).split(".").pop().toLowerCase()){case"pdf":return"file-pdf-o";case"doc":case"docx":case"rtf":case"odt":return"file-word-o";case"txt":return"file-text-o";case"xlr":case"xls":case"xlsx":case"csv":case"ods":return"file-excel-o";case"psd":case"3dm":case"3ds":case"max":case"obj":case"indd":case"pspimage":case"ai":case"eps":case"ps":case"ico":case"svg":case"png":case"gif":case"jpg":case"jpeg":return"file-image-o";case"pps":case"ppt":case"pptx":return"file-powerpoint-o";case"aif":case"iff":case"m3u":case"m4a":case"mid":case"mp3":case"mpa":case"ra":case"wav":case"wma":return"file-audio-o";case"7z":case"cbr":case"deb":case"gz":case"tar":case"pkg":case"rar":case"rpm":case"sitx":case"zip":case"zipx":return"file-archive-o";case"asp":case"aspx":case"cer":case"cfm":case"csr":case"css":case"htm":case"html":case"js":case"jsp":case"php":case"phps":case"php5":case"rss":case"xhtml":case"xml":return"file-code-o"}return"file-o"},checkImageUrl:function(t){return new Promise((function(e,n){var r=new Image,i=!1,o=!1;r.onload=function(){i||(i=!0,e(r))},r.onerror=function(){o||(P[t]=!0,o=!0,n(r))},P[t]?r.onerror.call(r):(r.src=t,r.complete&&r.onload.call(r))}))},escapeHtml:function(t){return"string"!=typeof t&&"number"!=typeof t?"":"".concat(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},onboard:function(t,e,n,r){if(t){var i=r||{},o=i.buttons,a=i.className,s=i.margin,l=void 0===s?16:s;if(null===M&&((M=document.createElement("div")).id="onboard",document.body.appendChild(M),M.onclick=function(t){if(t.target){var e=!1;t.target.dataset&&void 0!==t.target.dataset.id&&o&&o[t.target.dataset.id]&&"function"==typeof o[t.target.dataset.id].onClick?o[t.target.dataset.id].onClick():e=!0,(e||t.target.classList.contains("nc-x"))&&(M.parentNode.removeChild(M),M=null)}}),M){var c=e.map((function(t,n){return"<p".concat(n||e.length<=1?"":' class="_header"',">").concat(t,"</p>")})).join(" "),u="";o&&o.length&&(u=o.map((function(t,e){return'<span data-id="'.concat(e,'">').concat(t.label,"</span>")})),u='<div class="_buttons">'.concat(u.join(""),"</div>")),M.innerHTML='<span class="nc-icon nc-x"></span>'.concat(c).concat(u);var d=M.classList.contains("-visible");M.className=["-".concat(n[0]),a||"",d?"-visible":""].join(" ");var f=t.getBoundingClientRect(),p=M.getBoundingClientRect(),m={below:[f.x+f.width/2-p.width/2,f.y+f.height+l],above:[f.x+f.width/2-p.width/2,f.y-p.height-l],left:[f.x-p.width-l,f.y+f.height/2-p.height/2],right:[f.x+f.width+l,f.y+f.height/2-p.height/2]},h=m[n[0]];(h[0]<0||h[0]+p.width>window.innerWidth||h[1]<0||h[1]+p.height>window.innerHeight)&&(h=m[n[1]],M.classList.remove("-".concat(n[0])),M.classList.add("-".concat(n[1]))),M.style.transform="translate(".concat(h[0],"px, ").concat(h[1],"px)"),d||setTimeout((function(){M.classList.add("-visible")}),10)}}else M&&(M.parentNode.removeChild(M),M=null)},hasSubdomain:function(){return window.location.hostname.split(".").slice(0,-2).pop()},getLink:function(t,e){if("string"==typeof t&&["http:","https:"].includes(t.toLowerCase().split("//")[0]))return t;var n=!0===e?this.hasSubdomain():e;return"".concat(window.location.protocol,"//").concat(n?"".concat(n,"."):"").concat(Slickplan.constants.DOMAIN,"/").concat(t.replace(/^\//,""))},navigateTo:function(t,e,n){var r,i=this.getLink(t,e);if(Array.isArray(n)&&n.length)return(r=window).open.apply(r,[i].concat(O(n)));var o=document.getElementById("navigate-to");o||((o=document.createElement("a")).setAttribute("id","navigate-to"),o.style.position="absolute",o.style.opacity="0",document.body.appendChild(o)),o.setAttribute("href",i),o.setAttribute("target",n?"_blank":"_self"),o.click()},functionalEvents:function(t,e){if("object"===T(t)&&"object"===T(t.data)){var n=w(w({},t.data.on||{}),t.data.nativeOn||{});return e?!!Object.keys(n).length:n}return!e&&{}},functionalAttrs:function(t,e){var n=e||{},r=n.class,i=n.style,o=C(n,S);if("object"===T(t)&&"object"===T(t.data)){var a=t.data,s=a.attrs?w(w({},this.objectCloneDeep(a.attrs)),o):o;return{class:[a.staticClass,a.class,s.class,r].filter((function(t){return t})),style:[a.staticStyle,a.style,s.style,i].filter((function(t){return t})),attrs:s}}return{class:r||"",style:i||"",attrs:o||{}}},functionalData:function(t,e,n){var r=this.functionalAttrs(t,e),i=this.functionalEvents(t);return Object.keys(i).length&&(r[n?"nativeOn":"on"]=i),r},isSitemapLevel:function(t){return t===y.constants.CELL_LEVEL_HOME||t===y.constants.CELL_LEVEL_MAIN||t===y.constants.CELL_LEVEL_UTIL||t===y.constants.CELL_LEVEL_FOOT},parseColorScheme:function(t){var e=[],n={default:-4,home:-3,util:-2,foot:-1};return b()(t,(function(t,r){var i="string"==typeof t?{background:t}:w({},t),o=i.level?"".concat(i.level):"string"==typeof r?r.replace("level",""):"";o&&(o.indexOf("_")<0||/^archetype-/.test(o))&&(["text","background"].forEach((function(t){if(i[t])if(Array.isArray(i[t])&&(i[t]=i[t].pop()),"string"==typeof i[t]){i[t]=i[t].replace(/[^0-9a-f]/gi,"");var e=i[t].split("");3===e.length&&(i[t]="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),i[t]=6===i[t].length?"#".concat(i[t]).toLowerCase():null}else i[t]=null})),i=Slickplan.helpers.objectPick(i,(function(t){return Slickplan.helpers.isHex(t)})),Object.keys(i).length&&(i.level=/^[0-9]+$/.test(o)?Number(o):o,i.levelSort="number"==typeof i.level?i.level:n[i.level]||o,e.push(i)))})),e},boxCellUi:function(t){var e=t&&t.cells_ui?t.cells_ui:{},n=e.box_size,r=e.font_size;return{boxSize:n||"large",fontSize:r?parseInt(r,10):12}},isAnyFormFocused:function(){var t=document.activeElement;return t&&(t.isContentEditable||-1!==["input","select","button","textarea"].indexOf(t.tagName.toLowerCase()))}}},3928:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(22164);function i(t,e,n){this.pendingPromises=0,this.maxPendingPromises=void 0!==t?t:1/0,this.queueName=e,this.delayBetween=n||0,this.queue=[]}i.prototype.add=function(t){this.queue.push(t),this._dequeue()},i.prototype.clear=function(){this.queue=[]},i.prototype._runNext=function(){var t=this;this.queue.length?this.delayBetween>0?setTimeout((function(){t._dequeue()}),this.delayBetween):this._dequeue():r.EventBus.$emit("request-queue-completed",this.queueName)},i.prototype._dequeue=function(){if(this.pendingPromises>=this.maxPendingPromises||!this.queue.length)return!1;var t=this,e=this.queue.shift();this.pendingPromises+=1;try{var n=e();(n&&n.promise?n.promise:n).then(_noop).catch((function(t){Slickplan.catchAll(t)})).finally((function(){t.pendingPromises-=1,t._runNext()}))}catch(e){t.pendingPromises-=1,t._runNext()}return!0};const o=i},23632:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinArchetypesListing:()=>f,mixinCurrentCellArchetype:()=>p});var r=n(48416),i=n(2376),o=n.n(i),a=n(70992),s=n(14580);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f={data:function(){return{customArchetypes:[],predefinedArchetypes:[]}},computed:u(u({},(0,r.mapState)({xArchetypes:function(t){return t.sitemap.archetypes}})),{},{hasCustomArchetypes:function(){return this.customArchetypes.length>0}}),methods:{isCustomArchetype:function(t){var e=Slickplan.helpers.getValue(t,"id",t);return e&&"string"==typeof e&&"_"!==e.charAt(0)},reloadArchetypes:function(){var t=this,e=[[],[]];o()(this.xArchetypes,(function(n,r){e[t.isCustomArchetype(r)?1:0].push(n)})),e.forEach((function(e,n){e=Slickplan.helpers.sortString(e,"name"),t[n?"customArchetypes":"predefinedArchetypes"]=e.map((function(t){return t.id}))}))}},watch:{xArchetypes:function(){this.reloadArchetypes()}},mounted:function(){this.reloadArchetypes()}},p={mixins:[a.mixinSitemapCurrentCell],computed:u(u({},(0,r.mapGetters)({xGetArchetype:"sitemap/getArchetype"})),{},{pageType:function(){var t=Slickplan.helpers.getValue(this.xCurrentCellData,s.constants.CELL_DATA_KEY_ARCHETYPE);return t?this.xGetArchetype(t):null},pageTypeName:function(){return Slickplan.helpers.getValue(this.pageType,"name","")},pageTypeDescription:function(){return Slickplan.helpers.getValue(this.pageType,"description","")}})}},65756:(t,e,n)=>{"use strict";n.r(e),n.d(e,{branding:()=>c});var r=n(48416);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=null,c={computed:a(a({},(0,r.mapState)({xAccountData:function(t){return t.user.user}})),{},{cssBrandingLogo:function(){return this.uploadFileStatus?(l||(l=this.imageBase64(255,255,255)),{background:"transparent url(".concat(l,") 0 0 no-repeat"),backgroundSize:"".concat(!0===this.uploadFileStatus?100:this.uploadFileStatus,"% 100%")}):!1===this.uploadFileStatus&&"image"===this.xAccountData.company_logo_type&&this.xAccountData.company_logo?{backgroundImage:"url(".concat(this.xAccountData.company_logo,")")}:{backgroundImage:"url(/images/logo".concat(1===this.xAccountData.dark_font?"-dark":"","@2x.png)")}},isDefaultBranding:function(){return this.xAccountData.site_color===Slickplan.constants.DEFAULT_SITE_COLOR&&0===this.xAccountData.dark_font},cssBrandingStyle:function(){return{background:this.xAccountData.site_color,color:this.xAccountData.dark_font?"#222":"#fff"}}}),methods:{onLogoDelete:function(){Slickplan.websocket.storeCommit("user/set",{company_logo:0})},brandingReset:function(){Slickplan.websocket.storeCommit("user/set",{site_color:Slickplan.constants.DEFAULT_SITE_COLOR,dark_font:0})}}}},66836:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t){var e;if(t&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e._active)&&void 0!==e&&null!==(e=e[0])&&void 0!==e&&e.element){var n=t.ctx,r=t.tooltip._active[0].element.x;n.save(),n.beginPath(),n.moveTo(r,t.scales.y.top),n.lineTo(r,t.scales.y.bottom),n.lineWidth=1,n.strokeStyle="rgba(0, 0, 0, 0.1)",n.stroke(),n.restore()}}function o(t){return{label:t,type:null,total:0,labels:[],dataset:[],datasetLabel:null}}n.r(e),n.d(e,{mixinCharts:()=>a});var a={chartColors:["#e81b66","#3477f9","#34d1bf","#ffc80b","#46227a","#c495eb","#ff6b00","#4BC0C0","#9966FF","#C9CBCF","#FF9F40","#FFCD56"],data:function(){return{pieCharts:[],chartsData:{sessions_date:o("Sessions"),users_date:o("Users"),pageviews_date:o("Page views"),pageviews_medium:o("Top channels"),pageviewsPerSession_date:o("Pages per session"),avgSessionDuration_date:o("Avg. session duration"),bounceRate_date:o("Bounce rate"),percentNewSessions_date:o("New sessions"),uniquePageviews_date:o("Unique Page Views"),avgTimeOnPage_date:o("Avg. Time on Page"),entrances_date:o("Entrances"),exitRate_date:o("% Exit"),activeUsers_date:o("Active users"),screenPageViews_date:o("Page views"),screenPageViewsPerSession_date:o("Views per session"),averageSessionDuration_date:o("Avg. session duration"),newUsers_date:o("New users"),userConversionRate_firstUserDefaultChannelGroup:o("User conversion rate"),purchaserConversionRate_firstUserDefaultChannelGroup:o("Purchaser conversion rate"),purchaseRevenue_firstUserDefaultChannelGroup:o("Purchase revenue"),screenPageViews_sessionSourceMedium:o("Top channels")}}},methods:{formatValue:function(t,e){if(void 0===t&&(t=0),"time"===e){if(t<=0)return"0s";var n=["s","m","h"];return new Date(1e3*t).toUTCString().match(/(\d\d:\d\d:\d\d)/)[0].split(":").reverse().slice(0,3).map((function(t,e){return(t=parseInt(t,10))>0?t+n[e]:null})).filter((function(t){return t})).reverse().join(" ")}var r={minimumFractionDigits:2,maximumFractionDigits:2};switch(e){case"int":r.minimumFractionDigits=0,r.maximumFractionDigits=0;break;case"percent":r.style="percent";break;case"amount":r.style="currency",r.currency="USD"}return Intl.NumberFormat("en-US",r).format(t)},loadChartsData:function(){var t=this;"object"===r(this.charts)&&(Object.keys(this.charts).forEach((function(e){var n=t.charts[e];Object.keys(n).forEach((function(r){var i="".concat(e.replace("ga:",""),"_").concat(r.replace("ga:",""));if(t.chartsData[i]){var o=[],a=[];Object.keys(n[r]).forEach((function(t){o.push(t),a.push(n[r][t])})),t.chartsData[i].type=n.type,t.chartsData[i].total=t.formatValue(n.total,n.type),t.chartsData[i].labels=o,t.chartsData[i].dataset=a,t.chartsData[i].datasetLabel=n.label}}))})),this.$nextTick((function(){Object.keys(t.chartsData).forEach(t.renderChart)})))},renderChart:function(t){var e=this;if(window.Chart){var n=document.getElementById("canvas-".concat(t));if(n&&this.chartsData[t]){var r=n.getContext("2d"),o=r.createLinearGradient(0,0,0,r.canvas.height);o.addColorStop(0,"rgba(55, 122, 250, .35)"),o.addColorStop(1,"rgba(55, 122, 250, .05)");var a=this.chartsData[t],s=this.pieCharts.includes(t),l=this.chartsSmall.includes(t),c={type:s?"pie":"line",data:{labels:a.labels,datasets:[s?{$_dataType:a.type,$_dataTotal:a.dataset.reduce((function(t,e){return t+e}),0),data:a.dataset,backgroundColor:this.$options.chartColors}:{$_dataType:a.type,$_dataTotal:a.dataset.reduce((function(t,e){return t+e}),0),data:a.dataset,label:a.datasetLabel,fill:"start",backgroundColor:o,borderColor:"rgba(51, 102, 204, 0.9)",borderWidth:1.5,pointRadius:0,pointHoverRadius:0,lineTension:.05}]},options:{responsive:!0,layout:{padding:{left:1,right:1,top:1,bottom:1}},scales:{x:{display:!1},y:{display:!l&&!s,grid:{color:"rgba(150, 150, 150, 0.2)"}}},plugins:{legend:{display:!1},tooltip:{mode:s?"nearest":"index",intersect:s,displayColors:!1,callbacks:{label:function(t){var n;return n=s&&t.dataset.$_dataTotal&&"percent"!==t.dataset.$_dataType?e.formatValue(t.raw/t.dataset.$_dataTotal,"percent"):t.dataset.$_dataType?e.formatValue(t.raw,t.dataset.$_dataType):t.formattedValue,s?"".concat(t.label,": ").concat(n):n}}}}},plugins:s?[]:[{afterDraw:i}]};new window.Chart(n,c)}}}}}},12640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinCheckableField:()=>r});var r={model:{prop:"modelValue",event:"input"},props:{id:{type:String,default:function(){return Slickplan.helpers.randomString(16)}},name:{type:String,default:null},type:{type:String,default:"checkbox"},value:{default:null},modelValue:{default:void 0},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!1},size:{type:String,default:null},model:{}},computed:{classNameWrapper:function(){return this.placeholder?this.classNameCheckbox:["field-radio-check","field-".concat(this.type)]},classNameCheckbox:function(){return["ui-".concat(this.type),this.size?"-".concat(this.size):null,this.$slots.default?"-has-label":null,this.placeholder&&this.state?"-checked":null]},state:function(){return"radio"===this.type?void 0===this.modelValue?this.checked:String(this.modelValue)===String(this.value):void 0===this.modelValue?this.checked:Array.isArray(this.modelValue)?this.modelValue.includes(this.value):!!this.modelValue}},methods:{toggle:function(){if("radio"===this.type)return this.$emit("input",this.state?"":this.value);var t;Array.isArray(this.modelValue)?(t=this.modelValue.slice(0),this.state?t.splice(t.indexOf(this.value),1):t.push(this.value)):t=!this.state,this.$emit("input",t)}},watch:{checked:function(t){t!==this.state&&this.toggle()}},mounted:function(){this.checked&&!this.state&&this.toggle()}}},66404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinCommentForm:()=>g,mixinCommentItem:()=>C,mixinCommentMethods:()=>_,mixinCommentsBase:()=>S,mixinFloatingComments:()=>k});var r=n(48416),i=n(4072),o=n.n(i),a=n(14580),s=n(71995),l=n(59484),c=n(65056),u=n(97152),d=n(78612),f=n(22164);function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==h(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g={textareaEl:null,lastMentionsSearchText:null,props:{readonly:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},value:{type:String,default:""},mentions:{type:Boolean,default:!0}},data:function(){return{commentText:"",textareaHeight:40,isSubmitting:!1,mentionsMenu:!1,emojiMenu:!1,mentionsData:{isVisible:!1,searchText:"",caretPosition:null,selectedIndex:0,keyIndex:0}}},computed:b(b(b({},(0,r.mapState)({xCommentEdit:function(t){return t.comments.isEdit},xCommentReply:function(t){return t.comments.isReply},xCommentsType:function(t){return t.comments.type},xCommentFormData:function(t){return t.comments.formData},xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xContentPageId:function(t){return t.content.builderPageId},xContentLanguage:function(t){return t.content.currentLanguage},xProjectTypeName:function(t){return t.project.currentProjectType.project},xGuestData:function(t){return t.user.guest},xProjectContributors:function(t){return t.project.contributors},xAccountData:function(t){return t.user.user},xCurrentDiagramId:function(t){return t.diagram.currentId}})),(0,r.mapGetters)({xTeamActive:"team/activeUsers"})),{},{formattedText:function(){return String(this.commentText).trim()},isMentionVisible:function(){return this.mentionsData.isVisible&&this.filteredMentionItems.length},allMentionItems:function(){var t=this;return!1===this.mentions?[]:this.xProjectContributors.map((function(e){if(e.id!==t.xAccountData.id){var n=t.xTeamActive.find((function(t){return t.id===e.id}));if(n&&n.is_active){var r=n.id,i=n.username,o=n.first_name,a=n.last_name,s=n.email;return{id:r,username:i,name:"".concat(o," ").concat(a),email:s,keywords:Slickplan.helpers.normalizeKeywords([i,o,a,s]).join(" ")}}}return null})).filter((function(t){return t}))},filteredMentionItems:function(){var t=this;if(this.allMentionItems.length){var e=Slickplan.helpers.objectCloneDeep(this.allMentionItems);if(this.alreadyMentioned.length&&(e=e.filter((function(e){return!t.alreadyMentioned.includes(e.username)}))),this.mentionsData.searchText){var n=this.mentionsData.searchText.split(" ").filter((function(t){return!Slickplan.helpers.isBlank(t)}));n.length&&(e=e.filter((function(t){return n.every((function(e){return~t.keywords.indexOf(e)}))})))}return e.slice(0,6)}return[]},alreadyMentioned:function(){var t=this.commentText.match(/(^|\s)@([\w.]+)/g);return t&&t.length?t.map((function(t){return t.trim().replace("@","")})):[]}}),methods:{onSubmit:function(){var t=this;if(this.isSubmitting||""===this.formattedText)return!1;this.isSubmitting=!0;var e={comment:this.formattedText};this.xCommentEdit||(this.xCommentsType===a.constants.COMMENTS_TYPE_PAGE?(e.cell_id=this.xCurrentCellAlias,e.type=this.xCommentsType):this.xCommentsType===a.constants.COMMENTS_TYPE_DIAGRAM?(e.ref_id=this.xCurrentDiagramId,e.type=this.xCommentsType):this.xCommentsType===a.constants.COMMENTS_TYPE_FILE?(e.type=this.xCommentsType,this.sendToFigma&&this.canSendToFigma&&(e.send_to_figma=this.figma)):this.xCommentsType===a.constants.COMMENTS_TYPE_CONTENT_BLOCK&&(e.cell_id=this.xContentPageId,e.language=this.xContentLanguage,e.type=this.xCommentsType)),this.xCommentReply&&(e.parent_id=this.xCommentReply),this.$emit("submitting",!0),this.xCommentFormData&&(e=Slickplan.helpers.objectMergeDeep(e,this.xCommentFormData)),this.xGuestData&&this.xGuestData.name&&this.xGuestData.email&&(e.name=this.xGuestData.name,e.email=this.xGuestData.email);var n=this.xProjectTypeName,r=this.xCommentEdit?s.default.comments.update(n,this.xCommentEdit,e):s.default.comments.create(n,e);return r.promise.then((function(r){r&&r.id&&(t.$store.dispatch("comments/add",r),t.xCommentEdit?t.$store.dispatch("comments/setEdit",!1):Slickplan.websocket.newComment(n,null,e)),t.commentText="",t.$emit("added",r)})).catch(Slickplan.catchAll).finally((function(){t.isSubmitting=!1,t.$emit("submitting",!1)})),r},onKeyArrowDown:function(t){this.isMentionVisible&&(this.cancelEvent(t),this.mentionsData.selectedIndex+=1,this.mentionsData.selectedIndex>=this.filteredMentionItems.length&&(this.mentionsData.selectedIndex=0))},onKeyArrowUp:function(t){this.isMentionVisible&&(this.cancelEvent(t),this.mentionsData.selectedIndex-=1,this.mentionsData.selectedIndex<0&&(this.mentionsData.selectedIndex=this.filteredMentionItems.length-1))},onKeyEscape:function(t){this.$emit("esc"),this.isMentionVisible?(this.cancelEvent(t.event||t),this.closeMentions()):this.formattedText||this.$emit("close")},onKeyEnter:function(t){t.shiftKey||(this.isMentionVisible?(this.cancelEvent(t),this.applyMention(this.mentionsData.selectedIndex)):(this.onSubmit(t),t.target.blur()))},onInput:function(){this.checkForMentionsMenu()},onBlur:function(){this.closeMentions()},getLastKeyBeforeCaret:function(t){return this.commentText.lastIndexOf("@",t-1)},getLastSearchText:function(t,e){if(-1!==e){var n=this.commentText.substring(e+1,t);if(!/\s/.test(n))return n}return null},setCaretPosition:function(t){var e=this;this.$nextTick((function(){e.$options.textareaEl.selectionEnd=t}))},updateCaretPosition:function(){var t=this.$options.textareaEl;this.mentionsData.caretPosition=o()(t,this.mentionsData.keyIndex),this.mentionsData.caretPosition.top-=t.scrollTop,Number.isNaN(this.mentionsData.caretPosition.height)&&(this.mentionsData.caretPosition.height=16)},checkForMentionsMenu:function(){var t=this.$options.textareaEl.selectionStart;if(t>=0){var e=this.getLastKeyBeforeCaret(t),n=this.getLastSearchText(t,e);if(this.$options.lastSearchText=n,!(e<1||/\s/.test(this.commentText[e-1])))return!1;if(null!=n)return this.openMentions(e),this.mentionsData.searchText=n,!0}this.closeMentions()},manuallyOpenMentions:function(){var t=this;if(!this.filteredMentionItems.length)return!1;this.commentText="".concat(this.formattedText," @"),this.$nextTick((function(){Slickplan.helpers.moveCursorToEnd(t.$options.textareaEl),t.checkForMentionsMenu()}))},openMentions:function(t){this.allMentionItems.length&&(this.mentionsData.keyIndex=t||0,this.mentionsData.selectedIndex=0,this.updateCaretPosition(),this.mentionsData.isVisible=!0)},closeMentions:function(){this.mentionsData.isVisible&&(this.mentionsData.isVisible=!1)},applyMention:function(t,e){var n=e||this.filteredMentionItems[t],r="@".concat(n.username," "),i=this.mentionsData,o=i.searchText,a=i.keyIndex;this.commentText=this.replaceText(this.commentText,o,r,a),this.setCaretPosition(a+r.length),this.closeMentions()},replaceText:function(t,e,n,r){return t.slice(0,r)+n+t.slice(r+e.length+1,t.length)},toggleEmojis:function(){this.emojiMenu?this.closeEmojis():this.openEmojis()},openEmojis:function(){this.emojiMenu=!0,this.$options.textareaEl.focus()},closeEmojis:function(){this.emojiMenu&&(this.emojiMenu=!1)},hideMenus:function(){this.closeMentions(),this.closeEmojis()},cancelEvent:function(t){t&&"function"==typeof t.preventDefault&&(t.preventDefault(),t.stopPropagation())},onEmojiClick:function(t){this.commentText="".concat(this.formattedText," ").concat(t.data),this.closeEmojis()}},mounted:function(){this.$options.textareaEl=this.$el.querySelector("textarea"),this.commentText=this.value||""}},_={computed:b({},(0,r.mapState)({xProjectTypeName:function(t){return t.project.currentProjectType.project}})),methods:{onDelete:function(t,e){var n=this,r=Slickplan.helpers.castArray(t);this.$modal.show(u.default,{html:this.$trans("messages.confirm_deletion_type",{name:r.length,type:this.$plural("comment",r.length)}),form:{action:function(){var t=s.default.comments.delete(n.xProjectTypeName,r);return t.promise.then((function(t){t&&t.ids&&(Slickplan.websocket.storeDispatch("comments/remove",t.ids),"function"==typeof e&&e(t.ids))})).catch(Slickplan.catchAll),t}}},{name:"confirm",title:"Confirm deletion",titleClass:"text-red"})}}},S={computed:{canSeeComments:function(){var t,e,n;return this.$root.isAllowedFeature(a.constants.FEATURE_COMMENTS)&&(!this.isProjectShared||["read","write"].includes((null===(t=this.currentProjectMeta)||void 0===t?void 0:t.comments)||(null===(e=this.xSitemapData)||void 0===e||null===(e=e.meta)||void 0===e?void 0:e.comments)||(null===(n=this.xCurrentDiagramData)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.comments)))},canWriteComments:function(){var t,e,n;return this.$root.isAllowedFeature(a.constants.FEATURE_COMMENTS)&&(this.isProjectShared&&"write"===((null===(t=this.currentProjectMeta)||void 0===t?void 0:t.comments)||(null===(e=this.xSitemapData)||void 0===e||null===(e=e.meta)||void 0===e?void 0:e.comments)||(null===(n=this.xCurrentDiagramData)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.comments))||!this.isProjectShared&&this.$root.userCan(a.permissionsProject.WRITE_COMMENTS))}}},C={mixins:[c.mixinProjectStatus,S,_],computed:b(b(b({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xGuestData:function(t){return t.user.guest},xProjectContributors:function(t){return t.project.contributors},xProjectType:function(t){return t.project.currentProjectType}})),(0,r.mapGetters)({xTeamActive:"team/activeUsers",xGetServerTime:"core/getServerTime"})),{},{usernamesForMentions:function(){var t=this,e=this.xProjectContributors.map((function(e){var n=t.xTeamActive.find((function(t){return t.id===e.id}));return n&&n.is_active?n.username:null})).filter((function(t){return t}));return e.sort((function(t,e){return e.length-t.length})),e},commentHtml:function(){return(0,l.default)(this.comment.comment,this.usernamesForMentions)}})},k={mixins:[c.mixinProjectStatus,S],pinCollectionRadius:50,data:function(){return{pin:{refId:null,visible:!1,hasContent:!1,x:0,y:0},commentIntroduce:!1,isPanelSliding:!1}},computed:b(b(b({},(0,r.mapState)({xComments:function(t){return t.comments.comments},xCommentHoverId:function(t){return t.comments.commentHover},xCurrentDiagramId:function(t){return t.diagram.currentId}})),(0,r.mapGetters)({xIsGuest:"user/isGuest",xIsGuestIntroduced:"user/isGuestIntroduced"})),{},{isGuestAndIntroductionNeeded:function(){return this.xIsGuest&&!this.xIsGuestIntroduced&&this.canWriteComments},isFloatingCommentVisible:function(){return this.isCommentMode&&this.pinCoords},collectedCommentPins:function(){for(var t,e=[],n=0;n<this.commentPins.length;n+=1){for(var r=this.commentPins[n],i=!1,o=0;o<e.length;o+=1)if(t=e[o],Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))<this.$options.pinCollectionRadius){t.pins.push(r),t.x=t.pins.reduce((function(t,e){return e.x+t}),0)/t.pins.length,t.y=t.pins.reduce((function(t,e){return e.y+t}),0)/t.pins.length,i=!0;break}i||((t={pins:[r]}).x=r.x,t.y=r.y,e.push(t))}return e},collectedCommentPinsSingle:function(){return this.collectedCommentPins.filter((function(t){return 1===t.pins.length})).map((function(t){return t.pins[0]}))},collectedCommentPinsMulti:function(){return this.collectedCommentPins.filter((function(t){return t.pins.length>1}))},commentsTypeId:function(){return this.commentsType===a.constants.COMMENTS_TYPE_FILE?this.currentMockupDataId:this.commentsType===a.constants.COMMENTS_TYPE_DIAGRAM?this.xCurrentDiagramId||Slickplan.globalVars.diagramAlias:null},pinCoordsStyle:function(){return this.pinCoords?{transform:"translate(".concat(this.pinCoords[0],"px, ").concat(this.pinCoords[1],"px)")}:null}}),methods:{onPinClick:function(t,e){e&&(e.preventDefault(),e.stopPropagation()),t=parseInt(t,10);var n=this.loadedComments.find((function(e){return e.id===t}));n&&this.openPinComment(n)},openComments:function(){if(this.commentsTypeId){var t=this.isProjectShared&&!this.isStandaloneDiagram?0:a.constants.DEFAULT_PANEL_WIDTH;this.$store.dispatch("panel/set",{id:"floating-comment",visibility:!0,title:!1,standalone:!0,minWidth:t,maxWidth:t,tabs:[{id:"comments",component:d.default,props:{type:this.commentsType,id:this.commentsTypeId}}]})}},pinNewComment:function(t,e){this.commentIntroduce=!1,Object.assign(this.pin,{refId:null,hasContent:!1,x:t,y:e,visible:!0}),this.$store.dispatch("comments/setForm",{ref_id:this.commentsTypeId,x:t,y:e})},pinNewCommentIntroduce:function(t,e){this.commentIntroduce=!0,Object.assign(this.pin,{refId:null,hasContent:!1,x:t,y:e,visible:!0,guest:!0})},openPinComment:function(t){this.commentIntroduce=!1;var e="object"===h(t)?t:this.xComments.find((function(e){return e.id===t}));if(e){var n=e.parent_id?this.xComments.find((function(t){return t.id===e.parent_id})):e;if(n){var r=p(n.coords.split(":").map((function(t){return parseInt(t,10)})),2),i=r[0],o=r[1];Object.assign(this.pin,{refId:n.id,hasContent:!1,x:i,y:o,visible:!0}),this.$store.dispatch("comments/setForm",{ref_id:this.commentsTypeId,parent_id:n.id})}}},closePin:function(){Object.assign(this.pin,{hasContent:!1,visible:!1})},onPanelBeforeEnter:function(){this.isPanelSliding=!0},onPanelAfterEnter:function(){this.isPanelSliding=!1},isPinElement:function(t){return t.classList.contains("_pin")||t.closest("._pin")}},watch:{xIsGuestIntroduced:function(t,e){!e&&t&&(this.commentIntroduce=!1)}},mounted:function(){f.EventBus.$on("comment-click",this.onPinClick),f.EventBus.$on("panel-before-enter",this.onPanelBeforeEnter),f.EventBus.$on("panel-after-enter",this.onPanelAfterEnter)},beforeDestroy:function(){f.EventBus.$off("comment-click",this.onPinClick),f.EventBus.$off("panel-before-enter",this.onPanelBeforeEnter),f.EventBus.$off("panel-after-enter",this.onPanelAfterEnter)}}},92704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinContentGlobalComputed:()=>p,mixinContentTable:()=>d,mixinTemplatesMethods:()=>f});var r=n(48416),i=n(14580),o=n(97152),a=n(71995);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={spanSeparator:":",computed:{tableStructure:function(){if(!(this.blockContent.rows&&this.blockContent.cols&&this.blockContent.data&&Array.isArray(this.blockContent.data)))return null;for(var t=[],e=[],n=this.$options.spanSeparator,r=0;r<this.blockContent.rows;r+=1){for(var i=[],o=0;o<this.blockContent.cols;o+=1){var a=[r,o].join(n);if(!e.includes(a)){var s=null,l=null,c=this.blockContent.merge?this.blockContent.merge[a]:null;if(c){if(s=c.rows>1?c.rows:null,l=c.cols>1?c.cols:null,s)for(var u=1;u<s;u+=1)if(e.push([r+u,o].join(n)),l)for(var d=1;d<l;d+=1)e.push([r+u,o+d].join(n));if(l)for(var f=1;f<l;f+=1)if(e.push([r,o+f].join(n)),s)for(var p=1;p<s;p+=1)e.push([r+p,o+f].join(n))}i.push({content:this.blockContent.data[r][o],row:r,col:o,rowEnd:s?r+s-1:r,colEnd:l?o+l-1:o,rowspan:s,colspan:l})}}t.push(i)}return t.length?t:null}}},f={computed:c(c({},(0,r.mapState)({xContentTemplates:function(t){return t.content.templates}})),(0,r.mapGetters)({xGetContentTemplateName:"content/getTemplateName"})),methods:{onTemplateClick:function(t){var e=this;this.ifProjectEditable(void 0,i.permissionsProject.MANAGE_CONTENT,i.constants.FEATURE_CONTENT).then((function(){e.$router.push({name:"sitemap-content-template-builder",params:{sitemap:Slickplan.globalVars.sitemapAlias,template:t}}).catch(_noop)})).catch(_noop)},onTemplateForm:function(t){var e=this;this.$root.ifAllowedFeature(i.constants.FEATURE_CONTENT).then((function(){var n=(t="string"==typeof t?t:null)?"".concat(e.xGetContentTemplateName(t,"")," (Clone)"):"",r=t?"Clone":"Add";e.$modal.show(o.default,{inputs:[{id:"name",label:"Template Name",value:n}],buttonLabel:r,form:{action:function(e){return t?a.default.sitemap.cloneContentTemplate(t,e):a.default.sitemap.addContentTemplate(e)},success:function(t){e.$store.commit("content/addTemplate",t),e.onTemplateClick(t.alias)}}},{name:"confirm",title:"".concat(r," template")})})).catch(_noop)},onTemplateDelete:function(t,e){var n=this;this.$root.ifAllowedFeature(i.constants.FEATURE_CONTENT).then((function(){t=[].concat(t);var r=n.xContentTemplates.filter((function(e){return t.includes(e.alias)})),i=r.map((function(t){return t.pages_count})).reduce((function(t,e){return t+e})),o=Slickplan.helpers.sortString(r.map((function(t){return t.name})));n.$modal.showConfirm({title:"Delete template",items:o,type:n.$plural("template",o.length),htmlAppend:i?n.$trans("messages.template_delete_warning",o.length,{pages:i}):null},(function(){var r=a.default.sitemap.deleteContentTemplate(t);return r.promise.then((function(t){t&&t.ids&&(n.$store.commit("content/removeTemplate",t.ids),n.$store.commit("actionBar/reset")),"function"==typeof e&&e(t)})),r}))})).catch(_noop)}}},p={computed:{canModifyContentTools:function(){return this.$root.userCan(i.permissionsProject.MANAGE_CONTENT)},isContentToolAvailable:function(){return this.$root.isAllowedFeature(i.constants.FEATURE_CONTENT)}}}},93136:(t,e,n)=>{"use strict";n.r(e),n.d(e,{datepicker:()=>d});var r=n(48416),i=n(70660),o=n(58676),a=n(14580);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={dateRanges:(0,o.dateRanges)(),computed:c(c({},(0,r.mapState)({xDateRange:function(t){return t.project.dateRange}})),{},{dateRange:{get:function(){return this.xDateRange},set:function(t){this.$store.commit("project/setDateRange",t)}},startText:function(){return this.dateRange.startDate?this.dateRange.startDate.format(a.constants.DATE_FORMAT_LONG):""},endText:function(){return this.dateRange.endDate?this.dateRange.endDate.format(a.constants.DATE_FORMAT_LONG):""},rangeText:function(){if(this.rangeTextAlt)return this.rangeTextAlt;var t=this.startText;return this.startText&&this.endText&&this.startText!==this.endText&&(t+=" - ".concat(this.endText)),t||"Select date"},rangeTextAlt:function(){var t=this;return this.dateRange.startDate&&this.dateRange.endDate&&this.$options.dateRanges?Slickplan.helpers.getValue(this.$options.dateRanges.find((function(e){return t.dateRange.startDate.isSame(e.start,"date")&&t.dateRange.endDate.isSame(e.end,"date")})),"label"):null}}),methods:{updateValues:function(t){var e=this;["startDate","endDate"].forEach((function(n){e.dateRange[n]=Slickplan.helpers.getValue(t,n,null)}))},onDatepickerOpen:function(t){var e;t&&t.target&&(e=t.target.querySelector(".ref")),e||(e=t.target),this.$popover.show({component:i.default,props:{dateRange:this.dateRange},options:{width:632,height:300,className:"no-padding"},position:{of:e},events:{update:this.updateValues}})}}}},78064:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinDiagramElementBase:()=>x,mixinDiagramElementListing:()=>k,mixinDiagramItemsActionBar:()=>S,mixinDiagramPageAssign:()=>C});var r=n(48416),i=n(20564),o=n(71995),a=n(40216),s=n(66804),l=n(14580),c=n(22164),u=n(52892),d=n(65056),f=n(73884);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S={backupColors:{},data:function(){return{currentDataKey:l.constants.DIAGRAM_ITEM_DATA_KEY_STROKE,colors:_(_(_(_({},l.constants.DIAGRAM_ITEM_DATA_KEY_FILL,null),l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY,null),l.constants.DIAGRAM_ITEM_DATA_KEY_STROKE,null),l.constants.DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR,null),currentOpacity:null}},computed:g(g(g({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType},xSelectedItems:function(t){return t.diagramItem.selectedItems},xSitemapData:function(t){return t.sitemap.details}})),(0,r.mapGetters)({xGetItemData:"diagramItemData/getItemData",xGetElementData:"diagramItem/getElementData"})),{},{defaultColors:function(){return _(_(_(_({},l.constants.DIAGRAM_ITEM_DATA_KEY_FILL,l.diagramStructure.colorFill),l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY,100),l.constants.DIAGRAM_ITEM_DATA_KEY_STROKE,l.diagramStructure.colorNormal),l.constants.DIAGRAM_ITEM_DATA_KEY_TEXT_COLOR,l.diagramStructure.colorText)},canHaveOpacity:function(){return this.currentDataKey===l.constants.DIAGRAM_ITEM_DATA_KEY_FILL},allSelectedItemsIds:function(){return[].concat(this.xSelectedItems.elements,this.xSelectedItems.connectors)}}),methods:{onColorChange:function(t){if(t){var e=[];t.color&&Slickplan.helpers.isHex(t.color)&&(this.colors[this.currentDataKey]=t.color,e.push({id:this.allSelectedItemsIds,key:this.currentDataKey,value:t.color})),this.canHaveOpacity&&!Slickplan.helpers.isBlank(t.opacity)&&(t.opacity=parseInt(t.opacity,10),t.opacity>0&&t.opacity<=100&&(this.colors[l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY]=t.opacity,this.currentOpacity=t.opacity,e.push({id:this.allSelectedItemsIds,key:l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY,value:t.opacity}))),e.length&&this.$store.commit("diagramItemData/setAndBroadcast",e)}},onColorSave:function(){var t=[{item_id:this.allSelectedItemsIds,key:this.currentDataKey,value:this.colors[this.currentDataKey]}];this.canHaveOpacity&&t.push({item_id:this.allSelectedItemsIds,key:l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY,value:parseInt(this.colors[l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY],10)});var e=o.default.diagram.saveItemData(t,"sitemap"===this.xProjectType.project);return e.promise.then(_noop).catch(Slickplan.catchAll),e},onColorReset:function(){this.restoreColorsFromBackup(),this.colors[this.currentDataKey]=this.$options.backupColors.currentColor||Slickplan.helpers.getValue(this.colorsData,[this.currentDataKey,"color"],l.diagramStructure.colorNormal),this.canHaveOpacity&&(this.colors[l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY]=this.$options.backupColors.currentOpacity||100),this.closePopover(!0)},openColorpicker:function(t,e){var n=this;e&&(this.currentDataKey=e),this.backupColors();var r=this.colors[this.currentDataKey];this.canHaveOpacity&&this.colors[l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY]&&((r=r.split("*"))[1]=this.colors[l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY],r=r.join("*")),this.$popover.show({component:a.default,props:{levels:!1,deletable:!1,close:!1,opacity:this.canHaveOpacity,colors:[{id:"color",color:r,defaultColor:r}]},options:{width:190},position:{of:t.target.querySelector(".ref")||t.target.children[0]},events:{overlay:this.onColorReset,change:this.onColorChange,reset:this.onColorChange},buttons:[{id:"save",className:["-primary","-smaller","float-right"],label:"Apply",onClick:function(){(0,u.saveRecentColors)(),n.onColorSave(),n.closePopover(!0)}},{id:"cancel",className:["-plain","-smaller","-first","float-right"],label:"Clear",onClick:function(){n.onColorChange({color:n.defaultColors[e]}),n.onColorSave(),n.closePopover(!0)}}]})},closePopover:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$popover.hide(),t&&this.cleanBackupColors()},backupColors:function(){var t=this;this.$options.backupColors={currentColor:this.colors[this.currentDataKey],currentOpacity:this.colors[l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY],colors:{},opacities:{}},this.allSelectedItemsIds.forEach((function(e){t.$options.backupColors.colors[e]=t.xGetItemData(e,t.currentDataKey),t.canHaveOpacity&&(t.$options.backupColors.opacities[e]=t.xGetItemData(e,l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY))}))},restoreColorsFromBackup:function(){var t=this,e=this.$options.backupColors,n=e.colors,r=e.opacities,i=[].concat(Object.keys(n).map((function(e){return{id:e,key:t.currentDataKey,value:n[e]}})),Object.keys(r).map((function(t){return{id:t,key:l.constants.DIAGRAM_ITEM_DATA_KEY_FILL_OPACITY,value:r[t]}})));i.length&&this.$store.commit("diagramItemData/setAndBroadcast",i)},cleanBackupColors:function(){this.$options.backupColors={}}}},C={computed:g({},(0,r.mapGetters)({xGetCellData:"sitemapCell/getData"})),methods:{openPagesListPicker:function(t,e){var n=this,r=null;Array.isArray(e)?1===e.length&&(r=h(e,1)[0]):"string"==typeof e&&(r=e);this.$modal.show(f.default,{selected:r,formSubmitData:function(e){return{action:function(){n.$store.commit("diagramItem/processElementAndBroadcast",{id:t,cell_id:e,label:n.xGetCellData(e,l.constants.CELL_DATA_KEY_LABEL)}),c.EventBus.$emit("diagram-changed",{action:"label_update",elements:t,connectors:[]}),n.$modal.hide(n.$options.name)}}}},{title:"Select page",name:this.$options.name})}}},k={components:{"shape-svg":s.default},mixins:[C],mouseEventData:{},data:function(){return{isVisible:!1,isDragging:!1}},computed:g(g(g({},(0,r.mapState)({xSelectedItems:function(t){return t.diagramItem.selectedItems},xDiagramScale:function(t){return t.diagram.scale}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData"})),{},{submenus:function(){return[{id:"general",label:"Basic shapes",shapes:this.getByGroup("general")},{id:"flowchart",label:"Flowchart shapes",shapes:this.getByGroup("flowchart")},{id:"geometric",label:"Geometric shapes",shapes:this.getByGroup("geometric")},{id:"containers",label:"Containers",shapes:this.getByGroup("containers")}]}}),methods:{addElement:function(t,e,n){var r=h(t&&t.width&&t.height?[t.width,t.height]:t.sizes.normal,2),i=r[0],o=r[1];if(!e){var a=document.getElementById("project-scrollable"),s=a.getBoundingClientRect();e=[Math.max(0,s.width/2-i/2-l.diagramStructure.workareaMargins[3]+a.scrollLeft),Math.max(0,s.height/2-o/2-l.diagramStructure.workareaMargins[0]+a.scrollTop)]}var c={id:n||Slickplan.helpers.uniqueId("svg"),type:t.id,width:i,height:o,matrix:e,status:"new"};return l.diagramElementsSwimlanes.includes(t.id)&&(c.label=JSON.stringify(Array(3).fill("Lane name"))),this.$store.commit("diagramItem/processElementAndBroadcast",c),c},addElementLine:function(){var t=document.getElementById("project-scrollable"),e=t.getBoundingClientRect(),n=Math.ceil(Math.max(0,e.height/2-l.diagramStructure.workareaMargins[0]+t.scrollTop)),r=[[Math.ceil(Math.max(0,e.width/2-50-l.diagramStructure.workareaMargins[3]+t.scrollLeft)),n].join(","),[Math.ceil(Math.max(0,e.width/2+50-l.diagramStructure.workareaMargins[3]+t.scrollLeft)),n].join(",")].join(" "),i={id:Slickplan.helpers.uniqueId("svg"),type:l.diagramStructure.defaultLineType.slice(0),"from-element":"none","to-element":"none","from-direction":"right","to-direction":"left",points:r,status:"new"};return this.$store.commit("diagramItem/processConnectorAndBroadcast",i),i},getShapeData:function(t,e){return Slickplan.helpers.objectMergeDeep({},l.diagramElements[t],{id:t},e||{})},getByGroup:function(t){var e=Slickplan.helpers.objectPick(l.diagramElements,(function(e){return e.group===t})),n=Object.keys(e).map((function(t){return g({id:t},e[t])}));return n.sort((function(t,e){return t.order>e.order?1:-1})),"general"===t&&n.push({id:l.constants.DIAGRAM_ELEMENT_FREEFORM_CONNECTOR,name:"Line/Arrow"}),n},onMouseDown:function(t,e){var n="string"==typeof e?this.getShapeData(e):e;if(n.id===l.constants.DIAGRAM_ELEMENT_IMAGE)return!0;var r=document.getElementById("diagram-svg"),i=Slickplan.helpers.getMousePositionSvg(t,r,this.xDiagramScale);this.$options.mouseEventData={x:i.x,y:i.y,svg:r,shape:n,wasVisible:this.isVisible},document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseMove:function(t){var e=this.$options.mouseEventData,n=Slickplan.helpers.getMousePositionSvg(t,e.svg,this.xDiagramScale);if(this.isDragging)if(e.shape.id===l.constants.DIAGRAM_ELEMENT_FREEFORM_CONNECTOR){var r=n.x-e.x,i=n.y-e.y;this.$store.commit("diagramItem/processConnectorAndBroadcast",{id:e.id,points:e.points.map((function(t){return[t[0]+r,t[1]+i].join(",")})).join(" ")})}else this.$store.commit("diagramItem/processElementAndBroadcast",{id:e.id,matrix:[Math.max(0,e.matrix[0]+(n.x-e.x)),Math.max(0,e.matrix[1]+(n.y-e.y))]});else{if(Math.max(Math.abs(e.x-n.x),Math.abs(e.y-n.y))<=3)return;if(this.isDragging=!0,this.isVisible=!1,e.shape.id===l.constants.DIAGRAM_ELEMENT_FREEFORM_CONNECTOR){var o=this.addElementLine(e.shape);e.id=o.id;var a=Math.ceil(Math.max(0,e.y-l.diagramStructure.workareaMargins[0]/this.xDiagramScale));e.points=[[Math.ceil(Math.max(0,e.x-l.diagramStructure.workareaMargins[3]/this.xDiagramScale-50)),a],[Math.ceil(Math.max(0,e.x-l.diagramStructure.workareaMargins[3]/this.xDiagramScale+50)),a]],this.$store.commit("diagramItem/processConnectorAndBroadcast",{id:o.id,points:e.points.map((function(t){return t.join(",")})).join(" ")})}else{var s=this.addElement(e.shape);e.id=s.id,e.matrix=[e.x-l.diagramStructure.workareaMargins[3]/this.xDiagramScale-s.width/2,e.y-l.diagramStructure.workareaMargins[0]/this.xDiagramScale-s.height/2],this.$store.commit("diagramItem/processElementAndBroadcast",{id:e.id,matrix:e.matrix})}document.body.style.cursor="move",c.EventBus.$on("keypress-escape",this.onKeypressEscape)}},onMouseUp:function(t){var e=this,n=this.$options.mouseEventData;document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp);var r,i=n.shape.id===l.constants.DIAGRAM_ELEMENT_FREEFORM_CONNECTOR;this.isDragging?(this.isDragging=!1,r=n.id,document.body.style.cursor=null,c.EventBus.$off("keypress-escape",this.onKeypressEscape)):r=i?this.addElementLine(n.shape).id:this.addElement(n.shape).id,this.isVisible=n.wasVisible,!0!==t&&(c.EventBus.$emit("diagram-changed",{action:i?"line_add":"element_add",elements:i?[]:[r],connectors:i?[r]:[]}),n.shape.id===l.constants.DIAGRAM_ELEMENT_TEXT?this.$nextTick((function(){e.$store.commit("diagramItem/setTextEdit",r)})):n.shape.id===l.constants.DIAGRAM_ELEMENT_PAGE&&this.openPagesListPicker([r])),n={}},onKeypressEscape:function(){this.isDragging&&(this.$store.commit("diagramItem/deleteElementAndBroadcast",this.$options.mouseEventData.id),this.onMouseUp(!0))}}},x={transition:"transition-fade-quick",scrollableWrapper:null,mouseEventData:{},clickTimer:null,scrollByFast:50,scrollBySlow:10,clickCount:0,mixins:[d.mixinProjectStatus],data:function(){return{isActive:!1,isSelected:!1,isDragging:!1,isResizing:!1}},computed:g(g(g({},(0,r.mapState)({xElement:function(t){return t.diagramItem[this.id]||{}},xItemData:function(t){return t.diagramItemData[this.id]||{}},xAccountData:function(t){return t.user.user},xActiveElement:function(t){return t.diagramItem.activeElement},xSelectedItems:function(t){return t.diagramItem.selectedItems},xSelectedItemsType:function(t){return t.diagramItem.selectedItemsType},xMagnetizedGroups:function(t){return t.diagramItem.magnetizedGroups},xDiagramGhostSelect:function(t){return t.diagram.ghostSelect},xDiagramStandaloneConnectors:function(t){return t.diagramItem.standaloneConnectors},xDiagramScale:function(t){return t.diagram.scale},xDiagramMode:function(t){return t.diagram.mode}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData",xGetConnectorData:"diagramItem/getConnectorData",xGetConnectFromTo:"diagramItem/getConnectFromTo",xGetLinePointsFromTo:"diagramItem/getLinePointsFromTo",xTempConnectorData:"diagramItem/draggingLine",xGetElementData:"diagramItem/getElementData"})),{},{canEdit:function(){return this.isDiagramStructureEditable&&"comment"!==this.xDiagramMode[0]},allSelectedItemsIds:function(){return[].concat(this.xSelectedItems.elements,this.xSelectedItems.connectors)},isResizeVisible:function(){return this.canEdit&&!this.isDragging&&!this.xTempConnectorData&&!this.isMultiSelecting&&(this.isHover||this.isResizing)&&!this.xElement.editingBy},isMultiSelecting:function(){return this.xDiagramGhostSelect.visible},isHover:function(){return this.isActive&&!this.allSelectedItemsIds.length},isTextElement:function(){return this.xElement.type===l.constants.DIAGRAM_ELEMENT_TEXT},isLabelTextEditable:function(){return this.canEdit&&this.isSelected&&1===this.allSelectedItemsIds.length&&!this.isMultiSelecting&&!this.xElement.editingBy&&(void 0===this.isInSitemapPageElement||!this.isInSitemapPageElement)},isGroupElement:function(){return l.diagramElementsGroups.includes(this.xElement.type)},elementData:function(){return Slickplan.helpers.objectCloneDeep(l.diagramElements[this.xElement.type])},width:function(){return this.xElement.width},height:function(){return this.xElement.height||this.width},matrix:function(){return[Math.round(100*this.xElement.matrix[0])/100,Math.round(100*this.xElement.matrix[1])/100]},coords:function(){var t=h(this.matrix,2),e=t[0],n=t[1];return l.diagramStructure.snapToGrid&&(e=Math.round(e/l.diagramStructure.snapToGrid)*l.diagramStructure.snapToGrid,n=Math.round(n/l.diagramStructure.snapToGrid)*l.diagramStructure.snapToGrid),{x:e,y:n}},elementTransform:function(){return"translate(".concat(this.coords.x," ").concat(this.coords.y,")")},stroke:function(){return this.isActive&&!this.isMultiSelecting?l.diagramStructure.colorActive:this.xItemData[l.constants.DIAGRAM_ITEM_DATA_KEY_STROKE]||!1},strokeWidth:function(){return!!this.isSelected&&l.diagramStructure.strokeWidthSelected},strokeDashArray:function(){var t=this.xItemData[l.constants.DIAGRAM_ITEM_DATA_KEY_BORDER_DASH_ARRAY];return"string"==typeof t&&t},selectionBorder:function(){var t=this.isSelected?l.diagramStructure.strokeWidthSelected:l.diagramStructure.selectionBorderOffset;return["M",-t,-t,"v",this.height+2*t,"h",this.width+2*t,"v",-(this.height+2*t),"Z"].join(" ")}}),methods:{onMouseEnter:function(){this.canEdit&&this.$store.commit("diagramItem/setCurrentElement",this.id)},onMouseLeave:function(){this.canEdit&&this.$store.commit("diagramItem/setCurrentElement")},onMouseDown:function(t){if(!(this.isTextElement&&this.isSelected||t.target.classList.contains("prevent-parent")||t.target.closest(".prevent-parent"))&&this.canEdit){var e=this.$el.closest("svg"),n=Slickplan.helpers.getMousePositionSvg(t,e,this.xDiagramScale);this.$options.scrollableWrapper||(this.$options.scrollableWrapper=document.getElementById("project-scrollable")),this.$options.mouseEventData={svg:e,x:n.x,y:n.y,metaKey:t.shiftKey||t.ctrlKey,scrollable:this.$options.scrollableWrapper.getBoundingClientRect(),ws:{}},this.onSingleClick()}},onSingleClick:function(){var t,e=this,n={elements:[this.id],connectors:[]};if(!this.$options.mouseEventData.metaKey){var r=this.xMagnetizedGroups.find((function(t){return t.elements.includes(e.id)}));r&&(n.elements=n.elements.concat(r.elements),n.connectors=n.connectors.concat(r.connectors))}"text"!==this.xSelectedItemsType&&this.allSelectedItemsIds.length&&(n.elements=n.elements.concat(this.xSelectedItems.elements),n.connectors=n.connectors.concat(this.xSelectedItems.connectors.filter((function(t){return e.xDiagramStandaloneConnectors.includes(t)})))),n.elements=m(new Set(n.elements)),n.elementsData=n.elements.map((function(t){return{id:t,matrix:e.xGetElementData(t,"matrix"),connectors:e.xGetElementData(t,"connectors",[]).slice(0)}})),n.connectors=m(new Set((t=[]).concat.apply(t,[n.connectors].concat(m(n.elementsData.map((function(t){return t.connectors}))))))),n.connectorsData=n.connectors.map((function(t){return{id:t,points:e.xGetConnectorData(t,"points","").split(" ").map((function(t){return t.split(",").map((function(t){return parseInt(t,10)}))}))}})).filter((function(t){return t&&t.points&&t.points.length})),this.$options.mouseEventData.relatedItems=n,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},onMouseMove:function(t){if(this.canEdit){var e=this.$options.mouseEventData,n=Slickplan.helpers.getMousePositionSvg(t,e.svg,this.xDiagramScale);if(!this.isDragging){if(Math.max(Math.abs(e.x-n.x),Math.abs(e.y-n.y))<=3)return;this.isDragging=!0,document.body.style.cursor="move",c.EventBus.$on("keypress-escape",this.onKeypressEscape)}this.updateScrolling(t),this.updateElementsPositions(n.x,n.y),this.updateConnectorsPositions(n.x,n.y)}},onMouseUp:function(t){if(this.canEdit){var e=this.$options.mouseEventData;clearTimeout(this.$options.clickTimer),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.isDragging?(this.isDragging=!1,document.body.style.cursor=null,c.EventBus.$off("keypress-escape",this.onKeypressEscape),!0!==t&&c.EventBus.$emit("diagram-changed",{action:"move",elements:[].concat(e.relatedItems.elements),connectors:[].concat(e.relatedItems.connectors)})):this.isSelected?e.metaKey&&this.$store.commit("diagramItem/removeFromSelected",this.id):this.isTextElement?this.$store.commit("diagramItem/setTextEdit",this.id):this.$store.commit("diagramItem/addToSelected",e.metaKey?this.id:[this.id]),this.$options.mouseEventData={},this.$refs.labelEdit&&(++this.$options.clickCount>1?(this.$refs.labelEdit.focus(),this.doubleClickReset()):this.$options.clickTimer=setTimeout(this.doubleClickReset,300))}},onKeypressEscape:function(){!this.canEdit&&this.isDragging&&(this.$store.commit("diagramItem/processElementAndBroadcast",this.$options.mouseEventData.relatedItems.elementsData),this.updateConnectorsPositions(),this.onMouseUp(!0))},onLabelPaste:function(t){this.isLabelTextEditable&&(t.clipboardData&&t.clipboardData.getData?(t.preventDefault(),document.execCommand("insertHTML",!1,String(t.clipboardData.getData("text/plain")).trim())):window.clipboardData&&window.clipboardData.getData&&(t.preventDefault(),(0,i.default)(t.target,String(window.clipboardData.getData("Text")).trim())))},doubleClickReset:function(){this.$options.clickCount=0},updateConnectorsPositions:function(t,e){var n=this,r=this.$options.mouseEventData,i=r.relatedItems,o=i?i.connectors:this.xElement.connectors;if(o&&o.length){for(var a=[],s=function(s){var l=n.xGetConnectorData(o[s]);if(l){var c,u;if(n.xDiagramStandaloneConnectors.includes(o[s])){var d=i.connectorsData.find((function(t){return t.id===o[s]})).points;c=[{x:d[0][0]+(t-r.x),y:d[0][1]+(e-r.y),direction:l["from-direction"]},{x:d[d.length-1][0]+(t-r.x),y:d[d.length-1][1]+(e-r.y),direction:l["to-direction"]}]}else u=l.type,c=[{id:l["from-element"],direction:l["from-direction"],type:l.type[1]},{id:l["to-element"],direction:l["to-direction"],type:l.type[2]}];c=n.xGetConnectFromTo(c[0],c[1],l.points),a.push({id:o[s],points:n.xGetLinePointsFromTo(c.from,c.to,u)})}},l=0,c=o.length;l<c;l+=1)s(l);this.$store.commit("diagramItem/processConnectorAndBroadcast",a)}},updateElementsPositions:function(t,e){var n=this.$options.mouseEventData;this.$store.commit("diagramItem/processElementAndBroadcast",n.relatedItems.elementsData.map((function(r){return{id:r.id,matrix:[Math.max(0,r.matrix[0]+(t-n.x)),Math.max(0,r.matrix[1]+(e-n.y))]}})))},updateScrolling:function(t){var e=this.$options.scrollByFast,n=this.$options.scrollBySlow,r=this.$options.mouseEventData.scrollable,i={x:0,y:0},o={y1:t.clientY-r.top,y2:r.bottom-t.clientY,x1:t.clientX-r.left,x2:r.right-t.clientX};Object.keys(i).forEach((function(t){o[t+1]<=100?i[t]=o[t+1]<=50?-e:-n:o[t+2]<=100&&(i[t]=o[t+2]<=50?e:n)})),(i.x||i.y)&&this.$options.scrollableWrapper.scrollBy(i.x,i.y)},setResizing:function(t){this.isResizing!==t&&(this.isResizing=t)},updateValueOnChange:function(t,e){e=Array.isArray(e)?e.indexOf(this.id)>=0:e===this.id,this[t]!==e&&(this[t]=e)}},watch:{xActiveElement:function(t){this.updateValueOnChange("isActive",t)},allSelectedItemsIds:function(t){this.updateValueOnChange("isSelected",t)}}}},15052:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinDropzone:()=>l});var r=n(16384),i=n(71995);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={dropzoneInstance:null,dropzoneFiles:[],mixins:[n(42456).fileHelpers],data:function(){return{dropzoneFiles:[]}},methods:{dropzoneInit:function(t){var e=t.dropzone,n=t.extensions,o=t.maxFilesize,a=t.clickable,s=this;n&&Array.isArray(n)&&(n=n.map((function(t){return t.indexOf("/")>0||0===t.indexOf(".")?t:".".concat(t)})).join(","));var l={timeout:36e5,acceptedFiles:n||null,maxFilesize:o,previewsContainer:!1,previewTemplate:"",clickable:a,thumbnailWidth:36,thumbnailHeight:36,headers:{},header:"",dictFileTooBig:"{{filename}} is too big ({{filesize}}MB). Max filesize: {{maxFilesize}}MB.",dictInvalidFileType:n&&n.indexOf("/")<0?"{{filename}} must have ".concat(n.replace("."," ")," extension."):"{{filename}} is invalid type of file.",dictUploadCanceled:"{{filename}} file upload canceled.",url:"/",autoProcessQueue:!1,parallelUploads:1,uploadMultiple:!1,accept:function(t,e){i.default.file.getSignedPost(t).promise.then((function(n){t.presignResponse=n,e(),setTimeout((function(){return s.$options.dropzoneInstance.processFile(t)}))})).catch((function(){s.dropzoneDisplayError("{{filename}} not accepted.",t),setTimeout((function(){return s.dropzoneRemoveFile(t)}))}))}};this.$options.dropzoneInstance=new r.default(e,l),this.$options.dropzoneInstance.on("addedfile",this.dropzoneAddFile).on("canceled",this.dropzoneRemoveFile).on("removedfile",this.dropzoneClearFile).on("error",this.dropzoneFileError).on("success",this.dropzoneFileSuccess).on("thumbnail",this.dropzoneFileThumb).on("uploadprogress",this.dropzoneUploadProgress).on("processing",this.dropzoneFileProcessing)},dropzoneAddFile:function(t){t.uploadId=Slickplan.helpers.randomString(),this.$options.dropzoneFiles.push(t),this.dropzoneFiles.push(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({uploadId:t.uploadId,alias:null,thumb:t.dataURL,progress:0,progressText:null},t.upload))},dropzoneGetFile:function(t,e){return(e||this.dropzoneFiles).find((function(e){return e.uploadId===t}))},dropzoneClearFile:function(t){this.dropzoneFiles=this.dropzoneFiles.filter((function(e){return e.uploadId!==t.uploadId})),this.$options.dropzoneFiles=this.$options.dropzoneFiles.filter((function(e){return e.uploadId!==t.uploadId}))},dropzoneFileError:function(t,e){"function"==typeof this.onUploadError&&this.onUploadError(e,t),this.dropzoneDisplayError(e,t),this.dropzoneRemoveFile(t)},dropzoneRemoveFile:function(t,e){t&&!t.upload&&(t=this.dropzoneGetFile(t.uploadId,this.$options.dropzoneFiles)),t&&t.upload&&(e&&this.$options.dropzoneInstance.cancelUpload(t),this.$options.dropzoneInstance.removeFile(t))},dropzoneFileSuccess:function(t){var e=this,n=this.dropzoneGetFile(t.uploadId);i.default.file.postProcess({key:n.s3Key,width:t.width,height:t.height,name:t.name,size:t.size,type:t.type}).promise.then((function(r){n.alias=r.alias,r.url_thumb&&(n.thumb=r.url_thumb),"function"==typeof e.onUploadSuccess&&e.onUploadSuccess(r,t)})).catch((function(){setTimeout((function(){return e.dropzoneRemoveFile(t)}))}))},dropzoneFileThumb:function(t,e){var n=this.dropzoneGetFile(t.uploadId);n&&(n.thumb=e)},dropzoneUploadProgress:function(t,e,n){var r=this.dropzoneGetFile(t.uploadId);r&&(r.progress=e,r.progressText="".concat(this.humanFileSize(Math.ceil(Math.min(t.size,n)))," / ").concat(this.humanFileSize(Math.ceil(t.size))))},dropzoneFileProcessing:function(t){var e=this.dropzoneGetFile(t.uploadId);e&&(e.s3Key=t.presignResponse.key),this.$options.dropzoneInstance.options.params=t.presignResponse.params,this.$options.dropzoneInstance.options.url=t.presignResponse.url},dropzoneDisplayError:function(t,e){"string"!=typeof t&&(t.error||t.Message)&&(t=t.error||t.Message),t&&"string"==typeof t&&this.$notify({type:"error",text:t.replace("{{filename}}",e.name)})},dropzoneTriggerUpload:function(){this.$options.dropzoneInstance.hiddenFileInput.click(),"function"==typeof this.dropzoneTriggerUploadClosed&&window.addEventListener("focus",this.dropzoneTriggerUploadEvent,{once:!0})},dropzoneTriggerUploadEvent:function(){window.removeEventListener("focus",this.dropzoneTriggerUploadEvent),this.dropzoneTriggerUploadClosed(this.$options.dropzoneInstance.hiddenFileInput.value.length)},dropzoneGetInstance:function(){return this.$options.dropzoneInstance}}}},63199:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinFileLibraryMethods:()=>u});var r=n(48416),i=n(71995),o=n(97152),a=n(700);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={mixins:[n(65056).mixinProjectStatus],computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xFiles:function(t){return t.file.files}})),methods:{onDeleteFiles:function(t,e){return this.onDelete("file",t,!1,e)},onDeleteMockups:function(t,e,n){return this.onDelete("mockup",t,void 0===e||e,n)},onDelete:function(t,e){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;Array.isArray(e)||(e="object"===s(e)?[e.cell_file_id||e.alias]:[e]),this.$modal.show(o.default,{html:this.$trans("messages.confirm_deletion_type",{name:e.length,type:this.$plural(t,e.length)}),inputs:r?[{id:"keep",label:"Keep uploaded ".concat(this.$plural("file",e.length)," for later use"),value:1,type:"checkbox",checked:!0,style:{marginTop:"1rem"}}]:[],form:{action:function(r){var o=r.keep,s="file"===t?i.default.file.deleteFiles(e,o):i.default.file.deleteMockups(e,o);return s.promise.then((function(e){!e.files||"file"!==t&&o||n.$store.commit("file/remove",e.files),Array.isArray(e)&&"mockup"===t&&n.$store.commit("file/remove",e),"function"==typeof a&&a(e)})).catch(_noop),s}}},{name:"confirm",title:"Confirm deletion",titleClass:"text-red"})},onDownload:function(t){var e=this;if((t=[].concat(t)).length>1){var n="Download link will be sent to your email: ".concat(this.xAccountData.email,". This can take a few minutes.");this.$modal.show(o.default,{text:n,buttonLabel:"Send download link",form:{action:function(){var r=i.default.file.downloadMultipleFiles(t);return r.promise.then((function(){e.$notify({text:n})})).catch(Slickplan.catchAll),r}}},{name:"confirm",title:"Download multiple files"})}else if(t.length){var r=t.pop(),a="string"==typeof r?this.xFiles.find((function(t){return t.alias===r})):r;a&&Slickplan.helpers.downloadLinkTrigger(a.url_download||a.url_full)}},onPreview:function(t){this.$modal.show(a.default,{fileData:t},{closeButton:!1,modalClassName:"modal-image-preview"})},onOpen:function(t){t&&t.url_full&&window.open(t.url_full)},rowButtons:function(t,e){var n=this,r=e||{},i=r.onPreview,o=r.onDownload,a=r.onDelete,s=[],l=Array.isArray(t);return!l&&t&&!1!==i&&(t.url_preview||["image/png","image/gif","image/jpeg"].includes(t.mime))&&s.push({id:1,icon:"eye",label:"Preview",onClick:function(){"function"==typeof i?i(t):n.onPreview(t)}}),!1!==o&&(l&&t.length||!l&&t&&t.url_download)&&s.push({id:2,icon:"download",label:"Download",onClick:function(){"function"==typeof o?o(t):n.onDownload(t)}}),!1!==a&&this.isProjectEditable&&!l&&t&&t.alias&&s.push({id:3,icon:"trash",label:"Delete",onClick:function(){"function"==typeof a?a(t):n.onDeleteFiles(t,!1)}}),s}}}},42456:(t,e,n)=>{"use strict";n.r(e),n.d(e,{clipboardHelpers:()=>y,fileHelpers:()=>v,formHelpers:()=>h,mixinAllowedFeature:()=>_,mixinClickOutside:()=>k,mixinReorderHelpers:()=>C,mixinRoot:()=>w,mixinSpaceGrab:()=>x,mixinThrottledSave:()=>S,stickyButtonsHelpers:()=>g,validationHelpers:()=>b});var r=n(2376),i=n.n(r),o=n(48416),a=n(22164),s=n(65056),l=n(14580);function c(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h={data:function(){return{formHelper:{isSubmitting:!1,isSubmitted:!1,isDirty:!1,scope:null}}},methods:{formValidate:function(t){var e=this;t=t||this.formHelper.scope,this.errors.clear(t);var n=t?this.fields["$".concat(t)]:this.fields;i()(n,(function(n,r){e.$validator.flag("".concat(t,".").concat(r),{touched:!0,dirty:!0})}));var r=this.$validator.validateAll(t);return r.then((function(t){t&&e.$notify({destroyAll:!0})})),r},formHasErrors:function(t){var e=this,n=(t=t||this.formHelper.scope)?this.fields["$".concat(t)]:this.fields;return!!n&&Object.keys(n).some((function(n){return e.formHasError(n,t)}))},formHasError:function(t,e){var n=(e=e||this.formHelper.scope)?this.fields["$".concat(e)]:this.fields;return n&&n[t]&&n[t].touched&&n[t].dirty&&this.errors.has(t,e)},formFieldError:function(t,e){return e=e||this.formHelper.scope,this.formHasError(t,e)?this.errors.first(t,e):null},formSetErrors:function(t,e){var n=this;e=e||this.formHelper.scope,i()(t,(function(t,r){r=r.replace(/\./g,"_"),i()(t,(function(t){n.errors.add({field:r,msg:t,scope:e})}))}))},formSubmit:function(t,e){var n=this,r=t.action,i=t.success,o=t.error,a=t.before,s=t.after;e=e||this.formHelper.scope,this.formHelper.isSubmitting=!0,this.formHelper.isSubmitted=!1,this.formValidate(e).then((function(t){if(t){"function"==typeof a&&a();var l=null;if(Array.isArray(r)){var c=[];r.forEach((function(t){if("function"==typeof t){var e=t();e&&(e.promise?c.push(e.promise):e.then&&c.push(e))}})),c.length&&(l=Promise.all(c))}else{var u="function"==typeof r?r():null;l=u&&u.promise?u.promise:u&&"function"==typeof u.then?u:null}l?l.then((function(t){n.formSubmitReset(),"function"==typeof i&&i(t)})).catch((function(t){n.formErrorCatch(t,e),"function"==typeof o&&o(t)})).finally((function(){"function"==typeof s&&s()})):("function"==typeof i&&i(),"function"==typeof s&&s(),n.formSubmitReset())}else n.formSubmitReset()}))},formSubmitReset:function(){this.formHelper.isSubmitting=!1,this.formHelper.isSubmitted=!1,this.formHelper.isDirty=!1},formValidationReset:function(t){this.$validator.reset(t||this.formHelper.scope)},formErrorCatch:function(t,e){e=e||this.formHelper.scope,t&&t.errors&&this.formSetErrors(t.errors,e),this.formSubmitReset()}},beforeMount:function(){this.formHelper.scope=Slickplan.helpers.randomString(16)}},v={methods:{humanFileSize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=1e3;if(Math.abs(t)<n)return"".concat(t," B");var r=["KB","MB","GB","TB","PB","EB","ZB","YB"],i=-1;do{t/=n,++i}while(Math.abs(t)>=n&&i<r.length-1);return Number.isNaN(t)&&(t=0),"".concat("".concat(t.toFixed(e)).replace(new RegExp(".".concat("0".repeat(e),"$")),"")," ").concat(r[i])}}},b={methods:{validateEmail:function(t){return/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/.test(t)}}},y={clipTimerId:null,defaultCopyText:"Copy Link",data:function(){return{copyLink:""}},methods:{onClipboardCopy:function(){var t=this;clearTimeout(this.$options.clipTimerId),this.copyLink===this.$options.defaultCopyText&&(this.copyLink="Copied!",this.$options.clipTimerId=setTimeout((function(){t.copyLink=t.$options.defaultCopyText}),1500))}},created:function(){this.copyLink=this.$options.defaultCopyText},beforeDestroy:function(){clearTimeout(this.$options.clipTimerId)}},g={data:function(){return{stickyBottomBar:!1}},methods:{onScrollEnabled:function(){this.stickyBottomBar||(this.stickyBottomBar=!0)},onScrollDisabled:function(){this.stickyBottomBar&&(this.stickyBottomBar=!1)}}},_={mixins:[s.mixinProjectStatus],computed:p({},(0,o.mapState)({xAccountData:function(t){return t.user.user},xUserPermissions:function(t){return t.user.permissions},xProjectContributors:function(t){return t.project.contributors}})),methods:{isAllowedFeature:function(t){var e=this;return Array.isArray(t)?t.some((function(t){return e.isAllowedFeature(t)})):this.$store.getters["core/isAllowedFeature"](t)},ifAllowedFeature:function(t,e){var n=this;return new Promise((function(r,i){n.isAllowedFeature(t)?r():(!1!==e&&n.$notify("object"===d(e)?e:{type:"warning",text:e||n.$trans("errors.upgrade_to_use_function")}),i())}))},ifAllowedFeatureThen:function(t,e){this.ifAllowedFeature(t).then(e).catch(_noop)},userCan:function(t){var e,n;t=t.replace(/^account\./,"");var r=this.xAccountData,i=r.id,o=r.type;if(o===l.constants.USER_TYPE_OWNER)return!0;var a,s=o===l.constants.USER_TYPE_ADMINISTRATOR;if(Object.values(l.permissionsProject).includes(t))return!!s||((null===(a=this.xProjectContributors.find((function(t){return t.id===i})))||void 0===a?void 0:a.permissions.includes(t))||!1);switch(t){case l.permissionsAccount.CLOSE_ACCOUNT:return!1;case l.permissionsAccount.COMPANY_SETTINGS:case l.permissionsAccount.MESSAGE_TEMPLATES:case l.permissionsAccount.MANAGE_TEAM:return s;case l.permissionsAccount.CREATE_SITEMAPS:return s||(null===(e=this.xUserPermissions)||void 0===e?void 0:e.includes(t));case l.permissionsAccount.PAYMENTS:case l.permissionsAccount.VIEW_INVOICES:return null===(n=this.xUserPermissions)||void 0===n?void 0:n.includes(t);default:return null}},ifUserCan:function(t,e){var n=this;return new Promise((function(r,i){n.userCan(t)?r():(!1!==e&&n.$notify("object"===d(e)?e:{type:"warning",text:e||n.$trans("errors.missing_project_permission")}),i())}))},ifUserCanThen:function(t,e){this.ifUserCan(t).then(e).catch(_noop)},routeSwitchTool:function(t){var e;e={name:t,params:{sitemap:Slickplan.globalVars.sitemapAlias}},this.$router.push(e).catch(_noop)}}},S={throttledSave:{id:null,saveTimer:null,intervalTimer:null,dataGroups:["default"],data:{default:{}}},data:function(){return{throttledSaveStatus:null}},computed:{throttledSaveStatusText:function(){return!0===this.throttledSaveStatus?"Saving...":!1===this.throttledSaveStatus?"Saved":null}},methods:{throttledSave:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=this.$options.throttledSave;n.dataGroups.includes(e)&&t&&Object.keys(t).forEach((function(r){"append"===t[r].mode?(n.data[e][r]||(n.data[e][r]=[]),n.data[e][r].push(t[r].data)):"merge"===t[r].mode&&n.data[e][r]?"object"===d(n.data[e][r])&&!Array.isArray(n.data[e][r])||"object"===d(t[r].data)&&!Array.isArray(t[r].data)?n.data[e][r]=Slickplan.helpers.objectMergeDeep(n.data[e][r],t[r].data):n.data[e][r]=[].concat(n.data[e][r],t[r].data):n.data[e][r]=t[r].data}))},throttledSaveFromEvent:function(t){t.data&&t.group?this.throttledSave(t.data,t.group):this.throttledSave(t)},throttledSaveHasData:function(){var t=this.$options.throttledSave;return t.dataGroups.some((function(e){return t.data[e]&&Object.keys(t.data[e]).length}))},throttledSaveGetData:function(){var t=this.$options.throttledSave,e=t.dataGroups.filter((function(e){return t.data[e]&&Object.keys(t.data[e]).length})).map((function(e){return{group:e,data:t.data[e]}}));if(e&&e.length){var n=Slickplan.helpers.objectCloneDeep(e);return this.throttledSaveReset(),n}return!1},throttledSaveReset:function(){this.$options.throttledSave.data=Object.fromEntries(this.$options.throttledSave.dataGroups.map((function(t){return[t,{}]})))},throttledSaveSetDataGroups:function(t){t&&Array.isArray(t)&&(this.$options.throttledSave.dataGroups=t,this.throttledSaveReset())},throttledSaveExecute:function(t){var e=this;t&&"function"==typeof this.throttledSaveRequest&&(a.EventBus.$on("request-queue-completed",this.throttledSaveAfterQueueCompleted),this.throttledSaveStatus=!0,t.forEach((function(t){var n=t.group,r=t.data,i=Slickplan.helpers.objectCloneDeep(r);Slickplan.helpers.requestQueue((function(){return e.throttledSaveRequest(i,n)}),e.$options.throttledSave.id)})))},throttledSaveCheck:function(){clearTimeout(this.$options.throttledSave.intervalTimer);var t=this.throttledSaveGetData();t?this.throttledSaveExecute(t):this.throttledSaveRunInterval()},throttledSaveRunInterval:function(){this.$options.throttledSave.destroying||(this.$options.throttledSave.intervalTimer=setTimeout(this.throttledSaveCheck,5e3))},throttledSaveAfterQueueCompleted:function(t){var e=this;t===this.$options.throttledSave.id&&(a.EventBus.$off("request-queue-completed",this.throttledSaveAfterQueueCompleted),this.throttledSaveRunInterval(),this.throttledSaveStatus=!1,this.$options.throttledSave.saveTimer=setTimeout((function(){e.throttledSaveStatus=null}),2e3))},throttledSaveBeforeUnload:function(t){return!this.throttledSaveHasData()||(t.preventDefault(),t.returnValue="",window.confirm("Do you really want to leave? You have unsaved changes."))}},watch:{throttledSaveStatus:function(t,e){t!==e&&a.EventBus.$emit("throttled-saving",{queue:this.$options.throttledSave.id,status:this.throttledSaveStatus})}},created:function(){window.addEventListener("beforeunload",this.throttledSaveBeforeUnload)},mounted:function(){clearTimeout(this.$options.throttledSave.intervalTimer),clearTimeout(this.$options.throttledSave.saveTimer),this.$options.throttledSave.id=Slickplan.helpers.randomString(),this.$options.throttledSave.destroying=!1,this.throttledSaveRunInterval(),a.EventBus.$on("throttled-save",this.throttledSaveFromEvent)},beforeDestroy:function(){a.EventBus.$off("throttled-save",this.throttledSaveFromEvent),window.removeEventListener("beforeunload",this.throttledSaveBeforeUnload),clearTimeout(this.$options.throttledSave.intervalTimer),this.$options.throttledSave.destroying=!0,this.throttledSaveCheck()}},C={mouseEventData:null,data:function(){return{isDragging:!1}},computed:p({},(0,o.mapState)({xWindowSize:function(t){return t.core.windowSize}})),methods:{onMouseDown:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(this.canReorder){this.isDragging=!1;var i=t.target.closest("li.draggable"),o=i.closest(".ps-container"),a=o.getBoundingClientRect(),s=i.getBoundingClientRect(),l=i.closest(".draggable-boxed")||i.offsetParent;this.$options.mouseEventData={attrs:n,target:t.target,x:t.clientX,y:t.clientY,el:i,elBBox:s,relativeParent:l,parentBBox:l?l.getBoundingClientRect():{x:0,y:0},id:i.dataset.id,scrollable:o,scrollableInitialLeft:o?o.scrollLeft:0,scrollableInitialTop:o?o.scrollTop:0,isBoxed:l&&l!==o,scrollableBBox:a,maxScrollX:o.scrollWidth-a.width,maxScrollY:o.scrollHeight-a.height,boundaryX:Math.min(s.width/2,Math.max(0,(this.xWindowSize.width-s.width)/2-40)),boundaryY:Math.min(s.height/2,Math.max(0,(this.xWindowSize.height-s.height)/2-40))},document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)}else"function"==typeof this.onMouseClick&&this.onMouseClick.apply(this,[t].concat(n))},onMouseMove:function(t){var e=this.$options.mouseEventData;if(this.isDragging){var n=e.scrollable?e.scrollable.scrollTop-(e.isBoxed?e.scrollableInitialTop:0):0,r=e.scrollable?e.scrollable.scrollLeft-(e.isBoxed?e.scrollableInitialLeft:0):0,i="x"===this.canReorder?document.elementFromPoint(t.clientX,e.elBBox.y+e.elBBox.height/2):document.elementFromPoint(e.elBBox.x+e.elBBox.width/2,t.clientY);if(i){var o=i.closest("li.draggable");!o||o.parentNode!==e.el.parentNode||o.classList.contains("dragging")||o.classList.contains("placeholder")||(o.parentNode.insertBefore(e.el,"x"===this.canReorder?e.lastClientX>t.clientX?o:o.nextSibling:e.lastClientY>t.clientY?o:o.nextSibling),e.changedOrder=!0)}var a="x"===this.canReorder?t.clientX+r-e.x:Math.min(Math.max(t.clientX-e.x,-e.boundaryX),e.boundaryX),s="x"===this.canReorder?Math.min(Math.max(t.clientY-e.y,-e.boundaryY),e.boundaryY):t.clientY+n-e.y;e.elCloned.style.transform="translate(".concat(a,"px, ").concat(s,"px)"),this.updateScrolling(t)}else{if(Math.max(Math.abs(e.x-t.clientX),Math.abs(e.y-t.clientY))<=3)return;t.preventDefault(),t.stopPropagation();var l=e.scrollable&&!e.isBoxed,c=l?e.scrollable.scrollTop:0,u=l?e.scrollable.scrollLeft:0;document.body.style.cursor="move",this.isDragging=e.id,e.x=t.clientX,e.y=t.clientY;var d=e.el.cloneNode(!0);e.el.classList.add("placeholder"),d.classList.add("dragging"),e.relativeParent&&e.relativeParent.classList.add("_dragging"),Object.assign(d.style,{transform:"translate(".concat(t.clientX-e.x+u,"px, ").concat(t.clientY-e.y+c,"px)"),left:"".concat(e.elBBox.x-e.parentBBox.x,"px"),top:"".concat(e.elBBox.y-e.parentBBox.y,"px"),width:"".concat(e.elBBox.width,"px"),height:"".concat(e.elBBox.height,"px")}),e.el.parentNode.appendChild(d),e.elCloned=d,"function"==typeof this.onFocusChanged&&this.onFocusChanged(!0,this.id)}e.lastClientX=t.clientX,e.lastClientY=t.clientY},onMouseUp:function(t){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp);var e=this.$options.mouseEventData;this.isDragging?("function"==typeof this.onFocusChanged&&this.onFocusChanged(!1,this.id),e.elCloned&&e.elCloned.parentNode.removeChild(e.elCloned),e.el.classList.remove("placeholder"),e.relativeParent&&e.relativeParent.classList.remove("_dragging"),document.body.style.cursor="",this.isDragging=!1,e.changedOrder&&"function"==typeof this.onChangedOrder&&this.onChangedOrder(e.id,e.el)):"function"==typeof this.onMouseClick&&this.onMouseClick.apply(this,[t].concat(c(e.attrs))),this.$options.mouseEventData=null},updateScrolling:function(t){var e=this.$options.mouseEventData;"x"===this.canReorder?t.clientX-e.scrollableBBox.left<=100?e.scrollable.scrollLeft=Math.max(0,e.scrollable.scrollLeft-8):e.scrollableBBox.right-t.clientX<=100&&(e.scrollable.scrollLeft=Math.min(e.maxScrollX,e.scrollable.scrollLeft+8)):t.clientY-e.scrollableBBox.top<=100?e.scrollable.scrollTop=Math.max(0,e.scrollable.scrollTop-8):e.scrollableBBox.bottom-t.clientY<=100&&(e.scrollable.scrollTop=Math.min(e.maxScrollY,e.scrollable.scrollTop+8))}}},k={clickedOutsideVar:"isVisible",methods:{clickedOutside:function(){this.clickedOutsideRemove(),this[this.$options.clickedOutsideVar]=!1},clickedOutsideAdd:function(){document.addEventListener("mousedown",this.clickedOutsideCheck)},clickedOutsideRemove:function(){document.removeEventListener("mousedown",this.clickedOutsideCheck)},clickedOutsideCheck:function(t){null!=t&&t.target&&this[this.$options.clickedOutsideVar]&&!this.$el.contains(t.target)&&this.clickedOutside()}},mounted:function(){var t=this;"boolean"==typeof this[this.$options.clickedOutsideVar]&&this.$watch(this.$options.clickedOutsideVar,(function(e,n){e&&!n?t.clickedOutsideAdd():!e&&n&&t.clickedOutsideRemove()}))},beforeDestroy:function(){this.clickedOutsideRemove()}},x={data:function(){return{isSpaceGrabbing:!1}},methods:{isKeyPressedSpace:function(t){if(!Slickplan.helpers.isAnyFormFocused()){var e="".concat(t.key).toLowerCase();return"space"===e||" "===e}return!1},onKeyPressedMaybeSpaceStart:function(t){if(!this.isKeyPressedSpace(t))return!0;this.isSpaceGrabbing||(this.isSpaceGrabbing=!0),t.preventDefault(),t.stopPropagation()},onKeyPressedMaybeSpaceEnd:function(t){if(!this.isKeyPressedSpace(t))return!0;this.isSpaceGrabbing&&(this.isSpaceGrabbing=!1),t.preventDefault(),t.stopPropagation()}},mounted:function(){document.addEventListener("keydown",this.onKeyPressedMaybeSpaceStart,!0),document.addEventListener("keyup",this.onKeyPressedMaybeSpaceEnd,!0)},beforeDestroy:function(){document.removeEventListener("keydown",this.onKeyPressedMaybeSpaceStart),document.removeEventListener("keyup",this.onKeyPressedMaybeSpaceEnd)}},w={mixins:[_],computed:p(p({},(0,o.mapState)({xAccountData:function(t){return t.user.user}})),{},{isSuspendedEmailActivation:function(){return"email_not_verified"===this.xAccountData.is_suspended}}),methods:{routerSitemapPush:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.$router.push({name:"string"==typeof t&&t.startsWith("sitemap")?t:"sitemap".concat(t||""),params:p({sitemap:Slickplan.globalVars.sitemapAlias},e||{}),query:r}).then((function(){return"function"==typeof n?n():void 0})).catch(_noop)}}}},75300:(t,e,n)=>{"use strict";n.r(e),n.d(e,{oAuthConnect:()=>d,shareForms:()=>f});var r=n(48416),i=n(2376),o=n.n(i),a=n(71995);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={data:function(){return{oauthInterval:null}},methods:{oauthConnect:function(t,e){var n=this;clearInterval(this.oauthInterval);var r=!0;Slickplan.globalVars.oAuth={};var i=window.open(t.modal.url,t.id,"height=".concat(t.modal.height||800,",width=").concat(t.modal.width||600));i?(i.focus(),this.oauthInterval=setInterval((function(){var t=Slickplan.globalVars.oAuth;t&&t.service?t.success?(r=!1,e(!0)):t.error&&(r=!1,e(!1,t.error)):!1!==i.closed&&(Slickplan.globalVars.oAuth=null,r=!1,e(!1)),!r&&n.oauthInterval&&(clearInterval(n.oauthInterval),n.oauthInterval=null)}),500)):e(!1)},oauthDisconnect:function(t){return a.default.integration.disconnect(t)}},beforeDestroy:function(){Slickplan.globalVars.oAuth=null,clearInterval(this.oauthInterval),this.oauthInterval=null}},f={mixins:[d],props:{displayTitle:{type:Boolean,default:!0},subject:{type:[String,null],default:null},text:{type:[String,null],default:null}},data:function(){return{request:null,formLoaded:null,stepStatus:!1,connected:!1,serviceData:{}}},computed:c(c({},(0,r.mapState)({xSitemapData:function(t){return t.sitemap.details}})),{},{project:function(){return this.$parent.project},defaultShareSubject:function(){if(this.subject)return this.subject;if(this.project){var t="".concat(this.project.title," ").concat(this.project.type);return"sitemap"===this.project.type&&(t+=" ".concat(this.project.version)),t}return null},defaultShareMessage:function(){return this.text?this.text:this.project?this.$trans("messages.share_message_html",{type:this.project.type,title:this.project.title,url:Slickplan.helpers.getLink(this.project.alias,!0)}):null}}),methods:{onSubmit:function(){var t=this;this.shareFormResetAjax(),this.request=a.default.project.share(this.project.type,this.id,this.formData),this.formSubmit({action:function(){return t.request},success:function(){t.$notify({text:"Project has been shared via ".concat(Slickplan.helpers.ucFirst(t.id))})}})},onDisconnect:function(){var t=this;this.shareFormResetAjax(),this.stepStatus="disconnect",this.request=this.disconnect(this.id),this.request.promise.then((function(e){e&&(t.serviceData=e,t.shareFormReset(),"function"==typeof t.resetForm&&t.resetForm())})).finally((function(){t.stepStatus=!1}))},shareFormReset:function(){this.formData.message=this.defaultShareMessage,this.formData.subject=this.defaultShareSubject},shareFormLoad:function(t){var e=this;this.shareFormResetAjax(),this.request=a.default.integration.getForm(this.id,t),this.request.promise.then((function(t){t&&(e.serviceData=t,o()(t,(function(t,n){void 0!==e.$data[n]&&(e[n]=t)})),setTimeout((function(){return e.formLoaded=!0}),10))})).finally((function(){e.stepStatus=!1}))},shareFormResetAjax:function(){this.request&&this.request.source&&this.request.source.cancel()}},beforeMount:function(){this.shareFormReset()},mounted:function(){this.formLoaded=!1,"email"!==this.id&&this.shareFormLoad()}}},32368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{filterSearchMixin:()=>r});var r={data:function(){return{filters:{search:null}}},methods:{onSearchChange:function(t){var e=Slickplan.helpers.normalizeString(t.target.value).split(" ");e.length&&(e=e.filter((function(t){return!Slickplan.helpers.isBlank(t)}))),e.length||(e=null),this.filters.search=e},onSearchReset:function(){var t=document.getElementById("field-filter-search");t&&(t.value=""),this.filters.search=null}}}},84480:(t,e,n)=>{"use strict";n.r(e),n.d(e,{imageManipulation:()=>r});var r={methods:{imageBase64:function(t,e,n){return"data:image/gif;base64,R0lGODlhAQABAIAB".concat(window.btoa([0,t,e,n,0,0].map((function(t){return String.fromCharCode(t)})).join("")),"ACwAAAAAAQABAAACAkQBADs=")}}}},30644:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinMockupClick:()=>v,mixinMockupUpload:()=>b,mixinMockupsAssign:()=>y});var r=n(48416),i=n(14580),o=n(46656),a=n(24832),s=n(71995),l=n(73884),c=n(46936),u=n(42456),d=n(22164);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==h(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var v={methods:{onClickMockup:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"view",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"object"===h(t)?(n=null==t?void 0:t.cell_id,r=(null==t?void 0:t.cell_file_id)||(null==t?void 0:t.alias)||null):n=t,e&&(r=(null==e?void 0:e.cell_file_id)||(null==e?void 0:e.alias)||e),"string"==typeof n&&(this.$store.commit("mockup/setPreviewData",{cellId:n,mockupId:r,mode:i}),this.$store.commit("mockup/setPreviewVisible",!o||"cell"))}}},b={computed:p({},(0,r.mapState)({xMockups:function(t){return t.mockup.mockups}})),methods:{newMockupUpload:function(t){var e=this;this.$root.ifAllowedFeatureThen(i.constants.FEATURE_FILES,(function(){e.$modal.show(o.default,{acceptedFiles:i.mockupsFormats,maxFilesize:100,cancelLabel:"Cancel",submitLabel:"Upload",onSubmit:function(r){var i=r.map((function(t){return t.alias}));if(t)return e.newMockupAssign(t,i,(function(){return e.$modal.hide()}));e.$store.dispatch("panel/set",{id:"mockups-assign",visibility:!0,title:!1,tabs:[{component:n(60200).default,props:{ids:i}}]})}},{title:"Upload mockups",width:770,height:537}),e.$store.commit("mockup/setUploadBar",!1)}))},newMockupLibrary:function(t){var e=this;this.$root.ifAllowedFeatureThen(i.constants.FEATURE_FILES,(function(){var r=[{id:"library",component:a.default,props:{selectable:"mockups"}}];t?(r[0].props.exclude=e.xMockups.filter((function(e){return e.cell_id===t})).map((function(t){return t.alias})),r[0].props.onSubmit=function(n){return e.newMockupAssign(t,n,(function(){return d.EventBus.$emit("panel-close")}))}):r.push({id:"assign",component:n(60200).default,props:{ids:[]}}),e.$store.dispatch("panel/set",{id:"library",visibility:!0,title:"File library",standalone:!0,tabs:r}),e.$store.commit("mockup/setUploadBar",!1)}))},newMockupFigma:function(){var t=this;this.$root.ifAllowedFeatureThen(i.constants.FEATURE_FILES,(function(){t.$store.dispatch("panel/set",{id:"figma",visibility:!0,title:"Figma files",tabs:[{name:"figma",component:n(11608).default}]}),t.$store.commit("mockup/setUploadBar",!1)}))},newMockupAssign:function(t,e,n){var r=this,i=s.default.file.assignFilesAsMockups(e.map((function(e){return{file_id:e,cell_id:t}})),!0);return i.promise.then((function(t){if(null!=t&&t.mockups&&(r.$store.commit("mockup/setMockups",t.mockups),e.length)){var i,o=null===(i=t.mockups.find((function(t){return t.alias===e[0]})))||void 0===i?void 0:i.cell_file_id;o&&r.$store.commit("mockup/setPreviewData",{mockupId:o})}n&&n(t)})).catch(Slickplan.catchAll),i}}},y={scrollableMargin:0,scrollableTitlebarHeight:107,scrollableNavbarHeight:69,mixins:[c.mixinPanelScrollbar,u.fileHelpers],data:function(){return{isSubmitting:!1,selected:{}}},computed:p(p(p({},(0,r.mapState)({xBarIsVisible:function(t){return t.actionBar.isVisible},xBarSelectedIds:function(t){return t.actionBar.selected}})),(0,r.mapGetters)({xDropdownCellsList:"sitemapCell/getCellsForDropdown"})),{},{canSubmit:function(){var t=this;return this.allFiles.every((function(e){return e.alias&&t.selected[e.alias]}))},dropdownCellsList:function(){return this.xDropdownCellsList()}}),methods:{onCheckToggle:function(t){t&&this.$store.commit("actionBar/selectToggle",t)},openMovePagesPicker:function(){var t=this;this.$modal.show(l.default,{formSubmitData:function(e){return{action:function(){t.xBarSelectedIds.forEach((function(n){t.selected[n]=e})),t.selected=p({},t.selected)},success:function(){t.$modal.hide("assign-mockups")}}}},{title:"Assign mockups",name:"assign-mockups"})}},watch:{xBarSelectedIds:function(t,e){var n=this;t.length&&!e.length?this.$store.commit("actionBar/set",{isVisible:!0,doneButton:"Apply changes",selectAll:function(){return n.allFiles.map((function(t){return t.alias})).filter((function(t){return t}))}}):!t.length&&e.length&&this.$store.commit("actionBar/reset")}},beforeMount:function(){this.$store.commit("actionBar/reset")},beforeDestroy:function(){this.$store.commit("actionBar/reset")}}},46936:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinPanelComponents:()=>f,mixinPanelHighlight:()=>p,mixinPanelOverlay:()=>d,mixinPanelScrollbar:()=>u,mixinPanelStandalone:()=>m});var r=n(48416),i=n(14580),o=n(22164);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={scrollableMargin:10,scrollableTitlebarHeight:43,scrollableNavbarHeight:44,data:function(){return{scrollableHeight:0}},computed:l(l({},(0,r.mapState)({xWindowHeight:function(t){return t.core.windowSize.height}})),(0,r.mapGetters)({xPanelWidth:"panel/getWidth"})),methods:{scrollableRecalculate:function(){this.scrollableHeight=Math.floor(this.xWindowHeight-this.$options.scrollableTitlebarHeight-this.$options.scrollableNavbarHeight-2*this.$options.scrollableMargin)}},mounted:function(){this.scrollableRecalculate(),this.$watch("xPanelWidth",this.scrollableRecalculate),this.$watch("xWindowHeight",this.scrollableRecalculate)}},d={methods:{panelOverlayEnable:function(t){this.$store.dispatch("panel/setOverlay",t||i.constants.PANEL_OVERLAY_PROGRESS)},panelOverlayDisable:function(){this.$store.dispatch("panel/removeOverlay")}}},f={methods:{panelSetComponent:function(t,e,n){this.$store.dispatch("panel/setCustomComponent",{component:t,props:e,goingBack:n})},panelCloseComponents:function(t){this.$store.dispatch("panel/setCustomComponent",{goingBack:t})}}},p={panelHighlightId:"~",computed:l(l({},(0,r.mapState)({xPanelHighlightId:function(t){return t.panel.selectedProperty}})),{},{panelHighlightActive:function(){return this.xPanelHighlightId===this.$options.panelHighlightId}}),methods:{panelHighlightUpdate:function(){this.$options.panelHighlightId&&"~"!==this.$options.panelHighlightId&&this.$store.dispatch("panel/setHighlight",this.$options.panelHighlightId)}}},m={computed:l({},(0,r.mapState)({xWindowSize:function(t){return t.core.windowSize}})),methods:{setPanelWidth:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.$store.dispatch("panel/setMaxWidth",t),this.$store.dispatch("panel/setMinWidth",t),this.$store.dispatch("panel/setWidth",e)},setPanelStandalone:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setPanelWidth(t?this.xWindowSize.width:null,t?0:null),this.$store.dispatch("panel/setStandalone",!0)},closePanel:function(){o.EventBus.$emit("panel-close")}},watch:{"xWindowSize.width":function(t){this.setPanelWidth(t)}},beforeMount:function(){this.setPanelStandalone()}}},65056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinProjectContributors:()=>m,mixinProjectContributorsModal:()=>h,mixinProjectImportExport:()=>f,mixinProjectSizes:()=>p,mixinProjectStatus:()=>d});var r=n(48416),i=n(14580);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={computed:c(c(c({},(0,r.mapState)({xProjectTypeName:function(t){return t.project.currentProjectType.project},xSitemapData:function(t){return t.sitemap.details}})),(0,r.mapGetters)({xCurrentDiagramData:"diagram/getCurrentData"})),{},{currentProjectDetails:function(){return this.isStandaloneDiagram?this.xCurrentDiagramData:this.xSitemapData},currentProjectMeta:function(){return this.currentProjectDetails.meta||{comments:"none"}},isStandaloneDiagram:function(){return"diagram"===this.xProjectTypeName},isProjectShared:function(){return this.currentProjectDetails.status===i.constants.STATUS_SHARED},isProjectLocked:function(){return this.currentProjectDetails.status===i.constants.STATUS_LOCKED},isProjectEditable:function(){return this.currentProjectDetails.status===i.constants.STATUS_ACTIVE&&!this.isActiveAiSitemapChatbot},isProjectStructureEditable:function(){return this.isProjectEditable&&this.$root.userCan(i.permissionsProject.MODIFY_STRUCTURE)},isDiagramStructureEditable:function(){return this.isStandaloneDiagram?this.isProjectStructureEditable:this.isProjectEditable&&this.$root.userCan(i.permissionsProject.MANAGE_DIAGRAMS)},isActiveAiSitemapChatbot:function(){return!!this.currentProjectDetails.ai},isActiveCrawler:function(){return this.currentProjectDetails.crawler&&Array.isArray(this.currentProjectDetails.crawler)&&this.currentProjectDetails.crawler.includes(this.currentProjectDetails.id)}}),methods:{ifProjectEditable:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(o,a){!e.isProjectEditable||n&&!e.$root.userCan("string"==typeof n?n:i.permissionsProject.MODIFY_STRUCTURE)?(!1!==t&&e.$notify("object"===s(t)?t:{type:"warning",text:"string"==typeof t&&t?t:"Project is locked"}),a(e.currentProjectDetails.status)):r?e.$root.ifAllowedFeatureThen(r,(function(){o(e.currentProjectDetails.status)})):o(e.currentProjectDetails.status)}))}}},f={computed:c(c({},(0,r.mapState)({xProjectTypeName:function(t){return t.project.currentProjectType.project},xExportProjectType:function(t){return t.project.exportProjectType}})),{},{importFormComponent:function(){return n(90812).default},importTabs:function(){var t=this,e=[{id:"xml",name:"XML file",requiredFeature:i.constants.FEATURE_IMPORT_XML}];return"sitemap"===this.xProjectTypeName&&(e=e.concat([{id:"crawler",name:"Website crawler",requiredFeature:i.constants.FEATURE_IMPORT_CRAWLER},{id:"ai",name:"AI assist",requiredFeature:i.constants.FEATURE_AI},{id:"text",name:"Text file",requiredFeature:i.constants.FEATURE_IMPORT_TEXT_FILE}])),e.push({id:"template",name:"Template",requiredFeature:i.constants.FEATURE_IMPORT_XML}),e.map((function(e){return Object.assign(e,{component:t.importFormComponent,props:{type:e.id}})}))}}),methods:{exportTabs:function(){var t=[{id:"pdf",name:"PDF",requiredFeature:i.constants.FEATURE_EXPORT_PDF},{id:"image",name:"Image",requiredFeature:i.constants.FEATURE_EXPORT_PNG}];return"sitemap"===this.xExportProjectType&&(t=t.concat([{id:"html",name:"HTML",requiredFeature:i.constants.FEATURE_EXPORT_HTML},{id:"csv",name:"CSV",requiredFeature:i.constants.FEATURE_EXPORT_CSV},{id:"text",name:"TXT",requiredFeature:i.constants.FEATURE_EXPORT_TXT}])),t.push({id:"slickplan",name:"XML",requiredFeature:i.constants.FEATURE_EXPORT_XML}),"sitemap"===this.xExportProjectType&&(t=t.concat([{id:"docx",name:"DOCX",requiredFeature:i.constants.FEATURE_EXPORT_DOCX},{id:"website",name:"Website",requiredFeature:i.constants.FEATURE_EXPORT_HTML}])),t.map((function(t){return Object.assign(t,{component:n(2156).default,props:{type:t.id}})}))}}},p={computed:c(c(c({},(0,r.mapState)({xProjectHeaderHeight:function(t){return t.project.headerHeight},xBarIsVisible:function(t){return t.actionBar.isVisible},xPanelVisible:function(t){return t.panel.visible},xPanelVisibleStatus:function(t){return t.panel.visibleStatus},xCommentsType:function(t){return t.comments.type},xWindowSize:function(t){return t.core.windowSize},xCommentsFromGlobals:function(t){return t.comments.fromGlobalComments}})),(0,r.mapGetters)({xPanelWidth:"panel/getWidth"})),{},{projectWidth:function(){var t=this.xWindowSize.width;return this.hasSidebar&&(t-=i.constants.SHARED_SIDEBAR_WIDTH),this.xPanelVisible&&"visible"===this.xPanelVisibleStatus&&(t-=this.xPanelWidth),t},projectHeight:function(){var t=this.xWindowSize.height-this.xProjectHeaderHeight;return this.xBarIsVisible&&(t-=64),t}})},m={data:function(){return{internalContributors:[],newUserValue:""}},computed:c(c(c({},(0,r.mapState)({xProjectType:function(t){return t.project.currentProjectType},xProjectTypeName:function(t){return t.project.currentProjectType.project},xTeamGroups:function(t){return t.team.groups}})),(0,r.mapGetters)({xGetTeamGroupName:"team/getGroupName"})),{},{permissionsList:function(){return Object.values(i.permissionsProject)},teamGroups:function(){return this.xTeamGroups[this.projectTypeName||this.xProjectTypeName||"sitemap"]}}),methods:{onContributorNew:function(t){this.newUserValue="string"==typeof t?t:"",this.sidebarForm="user"},onContributorSelect:function(t,e){if(this.internalContributors.findIndex((function(e){return e.id===parseInt(t,10)}))<0){var n,r=null,i=null;if(e&&Array.isArray(e))i=Slickplan.helpers.objectCloneDeep(e),r=this.xGetTeamGroupName(i);else r="contributor",i=Slickplan.helpers.objectCloneDeep((null===(n=this.teamGroups)||void 0===n||null===(n=n[r])||void 0===n?void 0:n.permissions)||[]);this.internalContributors.push({permissions:i,group:r,id:t})}},onContributorUpdate:function(t,e,n){var r=this.internalContributors.findIndex((function(e){return e.id===parseInt(t,10)}));if(r>=0){var i=Slickplan.helpers.objectCloneDeep(this.internalContributors),a=i[r],s=a.id,l=a.permissions,c=a.group;"group"===e?(c=n,this.teamGroups[n]&&(l=Slickplan.helpers.objectCloneDeep(this.teamGroups[n].permissions))):"permissions"===e?Array.isArray(n)&&(l=Slickplan.helpers.objectCloneDeep(n)):(Array.isArray(l)||(l=[]),l=n?o(new Set([].concat(l,e))):l.filter((function(t){return t!==e})),c=this.xGetTeamGroupName(l)),i[r]={id:s,permissions:l,group:c},this.internalContributors=i}},onContributorRemove:function(t){this.internalContributors=this.internalContributors.filter((function(e){return e.id!==t}))}}},h={data:function(){return{sidebarFormUser:null,sidebarForm:!1,internalContributors:[]}},computed:c(c(c({},(0,r.mapState)({xPlanLimits:function(t){return t.core.planLimits},xProjectContributors:function(t){return t.project.contributors}})),(0,r.mapGetters)({xTeamActive:"team/activeUsers"})),{},{canHaveContributors:function(){return this.xPlanLimits.contributors>0}}),methods:{onClose:function(){this.$emit("close")},setInternalContributors:function(t){this.internalContributors=t?Slickplan.helpers.objectCloneDeep(t):[]},onContributorPermissionsOpen:function(t){this.sidebarFormUser=this.internalContributors.find((function(e){return e.id===t})),this.sidebarFormUser&&(this.sidebarForm="permissions")},onContributorPermissionsUpdate:function(t){this.onContributorUpdate(t.id,"permissions",t.permissions),this.sidebarForm=null},flattenContributors:function(t){return t.map((function(t){return"".concat(t.id,"-").concat(Slickplan.helpers.sortString(t.permissions).join("-"))}))},shouldUpdateContributors:function(){return Slickplan.helpers.arrayDiffBoth(this.flattenContributors(this.xProjectContributors),this.flattenContributors(this.internalContributors)).length}}}},70992:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinCellDelete:()=>T,mixinContentLanguages:()=>O,mixinContentPage:()=>A,mixinContentStatus:()=>D,mixinCurrentCellDiagrams:()=>x,mixinCurrentCellDiagramsMethods:()=>w,mixinProjectZoom:()=>P,mixinSitemapCellClone:()=>L,mixinSitemapCellData:()=>g,mixinSitemapCellLabel:()=>_,mixinSitemapCurrentCell:()=>S,mixinSitemapLoad:()=>E,mixinSitemapPagesList:()=>C,mixinSitemapSectionsList:()=>k});var r=n(48416),i=n(2376),o=n.n(i),a=n(71995),s=n(14580),l=n(65056),c=n(22164),u=n(15568),d=["workflow"];function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function m(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==f(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g={computed:b({},(0,r.mapState)({xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xContentLanguage:function(t){return t.content.currentLanguage}})),methods:{cellDataUpdate:function(t,e,n,r){return!1===e||Slickplan.helpers.isBlank(e)?this.cellDataDelete(t,n,r):this.cellDataSave(t,e,n,r)},cellDataSave:function(t,e,n,r){return this.doCellDataUpdate("updateData",t,e,n,r)},cellDataDelete:function(t,e,n){return this.doCellDataUpdate("removeData",t,null,e,n)},doCellDataUpdate:function(t,e,n,r,i){var o,s=i||this.xCurrentCellAlias,l=r||"content"!==e.split("_")[0]?r:this.xContentLanguage,c="removeData"===t?[l]:[n,l],u=(o=a.default.sitemapCell)[t].apply(o,[s,e].concat(c));return u.promise.then((function(e){e&&Slickplan.websocket.storeDispatch("sitemapCell/".concat(t),b(b({},e),{},{cell_id:s}))})).catch(_noop),u}}},_={mixins:[g],labelTextBackup:"",data:function(){return{labelText:""}},methods:{saveLabelText:function(t,e){var n=this;return Slickplan.helpers.requestSingle((function(){var r=n.cellDataSave(s.constants.CELL_DATA_KEY_LABEL,e,null,t);return r.promise.catch((function(t){t&&n.setLabelText(n.$options.labelTextBackup)})),r}),[t,s.constants.CELL_DATA_KEY_LABEL].join("-"))},setLabelText:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="".concat(null!=t?t:"").replace(/\r+/g,"").replace(/\n+/g," ");return e||(n=n.trim()),this.labelText!==n&&(this.labelText=n),n}}},S={computed:b({},(0,r.mapState)({xCurrentCellAlias:function(t){return t.sitemapCell.currentCellId},xCurrentCellData:function(t){return t.sitemapCell[t.sitemapCell.currentCellId]||{}}}))},C={computed:b(b({},(0,r.mapState)({xCurrentSectionId:function(t){return t.sitemapSection.currentId}})),(0,r.mapGetters)({xGetCellsHierarchy:"sitemapCell/getCellsHierarchy"})),methods:{addNumbering:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0,r=t.length;n<r;n+=1){var i="".concat(e+(n+1),".");t[n].text="".concat(i," ").concat(t[n].text),t[n].childs&&t[n].childs.length&&(t[n].childs=this.addNumbering(t[n].childs,i))}return t},getPages:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["home","main","util","foot"],r=this.getPagesList(t,n.includes("home"),e);return(r=[].concat(r.main,n.includes("util")?r.util:[],n.includes("foot")?r.foot:[])).filter((function(t){return t&&t.id}))},getPagesList:function(t,e,n,r,i,o){var a=this.xGetCellsHierarchy(t||Slickplan.globalVars.sectionAlias,void 0,void 0,void 0,r,n,i);o&&(a.main=this.addNumbering(a.main));var s=[];return a.home.length&&e?(s=a.home.slice(0))[0].childs=a.main.slice(0):s=a.main.slice(0),{home:a.home.length?a.home.slice(0):[],main:s,util:a.util.length?a.util.slice(0):[],foot:a.foot.length?a.foot.slice(0):[]}}}},k={computed:b(b(b({},(0,r.mapState)({xCellsBySection:function(t){return t.sitemapCell.cellsBySections},xSectionsIds:function(t){return t.sitemapSection.ids}})),(0,r.mapGetters)({xGetSectionName:"sitemapSection/getName"})),{},{emptySectionsList:function(){var t=this;return this.xSectionsIds.filter((function(e){return void 0===t.xCellsBySection[e]||!t.xCellsBySection[e].length}))},sectionsList:function(){var t=this,e=[];return this.xSectionsIds.forEach((function(n){n!==s.constants.SITEMAP_SECTION_MAIN_ID&&e.push({id:n,name:t.xGetSectionName(n)})})),Slickplan.helpers.sortString(e,"name")},sectionsListDropdown:function(){return this.sectionsList.map((function(t){return{label:t.name,value:t.id}}))},sectionsListWithMain:function(){return[].concat({id:s.constants.SITEMAP_SECTION_MAIN_ID,name:this.xGetSectionName(s.constants.SITEMAP_SECTION_MAIN_ID)}).concat(this.sectionsList)},sectionsListWithAllDropdown:function(){return[].concat({key:"all",value:"All sections"}).concat(this.sectionsListWithMain.map((function(t){return{key:t.id,value:t.name}})))}})},x={mixins:[S,l.mixinProjectStatus],computed:b(b({},(0,r.mapGetters)({xGetDiagramName:"diagram/getName"})),{},{cellDiagrams:function(){var t=this,e=this.xCurrentCellData[s.constants.CELL_DATA_HAS_DIAGRAMS];return e&&Array.isArray(e)&&e.length?Slickplan.helpers.sortString(e.map((function(e){return{id:e,name:t.xGetDiagramName(e)}})).filter((function(t){return!Slickplan.helpers.isBlank(t.name)})),"name"):[]}})},w={mixins:[l.mixinProjectStatus],computed:b({},(0,r.mapGetters)({xDiagramsList:"diagram/getList"})),methods:{onDiagramOpen:function(t){var e=this;this.$root.ifAllowedFeatureThen(s.constants.FEATURE_CELL_DIAGRAMS,(function(){e.$router.push({name:e.isProjectShared?"sitemap-shared-diagram":"sitemap-diagram-cell",params:{sitemap:Slickplan.globalVars.sitemapAlias,diagram:t}}).catch(_noop),c.EventBus.$emit("panel-close")}))},onDiagramDelete:function(t,e){var n=this;this.$root.ifAllowedFeature(s.constants.FEATURE_CELL_DIAGRAMS).then((function(){var r=[].concat(t),i=Slickplan.helpers.sortString(n.xDiagramsList.filter((function(t){return r.includes(t.alias)})).map((function(t){return t.title})));n.$modal.showConfirm({items:i,type:i.length>1?"diagrams":"diagram"},(function(){var t=a.default.sitemap.deleteDiagrams(r);return t.promise.then((function(t){t&&(t.cells&&o()(t.cells,(function(t,e){Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:e,key:s.constants.CELL_DATA_HAS_DIAGRAMS,value:!(!t||!t.length)&&t})})),t.ids&&n.$store.commit("diagram/remove",t.ids)),n.$store.commit("actionBar/reset"),"function"==typeof e&&e(t)})),t}))})).catch(_noop)},onDiagramForm:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$root.ifAllowedFeature(s.constants.FEATURE_CELL_DIAGRAMS).then((function(){t.$modal.show(u.default,{type:"upload"===e?"import":e||"add",diagramId:n,allowAssign:"edit"!==e},{name:"diagram",title:"".concat(Slickplan.helpers.ucFirst(e||"Add")," Diagram")},r?{success:r}:{})})).catch(_noop)},onDiagramPageAssign:function(t,e){var r,i=this,o=[].concat(t);e||(e=1===o.length?null===(r=this.xDiagramsList.find((function(t){return t.alias===o[0]})))||void 0===r?void 0:r.cell_id:1===(e=m(new Set(this.xDiagramsList.map((function(t){return t.cell_id}))))).length?e[0]:null);this.$modal.show(n(73884).default,{selected:e,formSubmitData:function(t){return{action:function(){return a.default.sitemap.assignDiagrams(o,t)},success:function(e){e&&e.ids&&e.ids.forEach((function(e){Slickplan.websocket.storeCommit("diagram/update",{id:e,data:{cell_id:t}})})),i.$modal.hide("assign-diagrams")}}}},{title:"Select page",name:"assign-diagrams"})}}},E={computed:b(b({},(0,r.mapState)({xColorThemes:function(t){return t.colors.themes},xSectionsIds:function(t){return t.sitemapSection.ids}})),(0,r.mapGetters)({xGetTeamMemberData:"team/getData",xActiveLanguages:"sitemap/languages"})),methods:{loadData:function(t,e){if(e&&Array.isArray(e))for(var n=0,r=e.length;n<r;n++)this.$store.dispatch(t,e[n])},loadProjectSettings:function(t){var e=this;if(t){var n=t.workflow,r=p(t,d);this.loadData("sitemap/setContentStatus",n),this.$store.dispatch("sitemap/setProjectSettings",r),[this.$route.query.language,t.language].filter((function(t){return t})).some((function(t){var n="string"==typeof t?t:t.code;return!!(n&&e.xActiveLanguages.findIndex((function(t){return t.code===n}))>=0)&&(e.$store.commit("content/setLanguage",n),!0)}))}},loadSitemapStructure:function(t){var e=this;t.comments&&Object.keys(t.comments).forEach((function(n){e.$store.commit("comments/setCounter",b(b({},t.comments[n]),{},{type:s.constants.COMMENTS_TYPE_PAGE,id:n}))}));for(var n=0,r=this.xSectionsIds.length;n<r;n+=1)this.$store.commit("colors/removeTheme","__".concat(this.xSectionsIds[n]));this.$store.commit("sitemapCell/clear"),this.$store.commit("sitemapSection/clear");var i="object"===f(t.cells)?Object.keys(t.cells).map((function(e){return b(b({},t.cells[e]),{},{id:e})})):[],a="object"!==f(t.sections)||Array.isArray(t.sections)?{}:t.sections;if(a[s.constants.SITEMAP_SECTION_MAIN_ID]||(a[s.constants.SITEMAP_SECTION_MAIN_ID]={}),i.length)for(var l=m(new Set(i.map((function(t){return t[s.constants.CELL_DATA_KEY_SECTION_ID]})))),c=0,u=l.length;c<u;c+=1)l[c]&&!a[l[c]]&&(a[l[c]]={});o()(a,(function(t,n){var r=t[s.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME],i="string"==typeof r&&e.xColorThemes.some((function(t){return t.id===r}));i||(t[s.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME]="__".concat(n)),e.$store.dispatch("sitemapSection/add",{id:n,data:t}),i?e.$store.dispatch("sitemapSection/setData",{id:n,data:y({},s.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME,r)}):e.$store.dispatch("colors/addTheme",{id:"__".concat(n),colors:"object"===f(r)?r:[]})})),i.length&&this.$store.dispatch("sitemapCell/add",i)},userInfo:function(t,e){var n=this.xGetTeamMemberData("object"===f(t)?t.id:t,"first_name");n&&this.$store.dispatch("websocket/addChatInfo",this.$trans("messages.".concat(e),{name:n}))}}},O={computed:b(b(b({},(0,r.mapState)({xSitemapSiteSettings:function(t){return t.sitemap.siteSettings},xContentPageData:function(t){return t.content.builderPageData},xContentLanguage:function(t){return t.content.currentLanguage}})),(0,r.mapGetters)({xActiveLanguages:"sitemap/languages"})),{},{languages:function(){var t=this.xActiveLanguages.map((function(t){return{value:t.code,label:t.name===t.name_local?t.name:"".concat(t.name," / ").concat(t.name_local)}}));return Slickplan.helpers.sortString(t,"label")},currentLanguage:function(){var t=this;return this.languages.find((function(e){return e.value===t.xContentLanguage}))}})},D={computed:b({},(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses"})),methods:{getStatus:function(t){return this.xContentStatuses.find((function(e){return e.alias===t}))||this.xContentStatuses.find((function(t){return t.alias===s.constants.CONTENT_STATUS_UNASSIGNED}))},getStatusColor:function(t){return{backgroundColor:this.getStatus(t).color}},getStatusName:function(t){return this.getStatus(t).name}}},A={mixins:[l.mixinProjectStatus],computed:b(b(b({},(0,r.mapState)({xAccountData:function(t){return t.user.user},xTeam:function(t){return t.team.team},xContentPageData:function(t){return t.content.builderPageData}})),(0,r.mapGetters)({xContentStatuses:"sitemap/contentStatuses"})),{},{pageIsEditable:function(){return this.isProjectEditable&&!this.xContentPageData.editBlocked&&(this.xAccountData.type!==s.constants.USER_TYPE_CONTRIBUTOR||this.$root.userCan(s.permissionsProject.MANAGE_CONTENT)||this.$root.userCan(s.permissionsProject.MODIFY_ASSIGNED_CONTENT_PAGES)&&this.currentAssignee.includes(this.xAccountData.id))},pageIsLocked:function(){return this.currentStatus.readonly||!this.pageIsEditable},currentStatus:function(){var t=this,e=this.xContentPageData.status?this.xContentStatuses.findIndex((function(e){return e.alias===t.xContentPageData.status})):-1;return e<0&&(e=this.xContentStatuses.findIndex((function(t){return t.alias===s.constants.CONTENT_STATUS_UNASSIGNED}))),this.xContentStatuses[Math.max(0,e)]},currentAssignee:function(){var t;return Slickplan.helpers.castArray(null===(t=this.xContentPageData)||void 0===t?void 0:t.assignee,[])}})},T={methods:{onCellsDelete:function(t){var e=this,n=a.default.sitemapCell.delete(t);return n.promise.then((function(t){t&&(t.cells&&Array.isArray(t.cells)&&(t.cells.forEach((function(t){Slickplan.websocket.storeDispatch("sitemapCell/delete",t)})),e.$store.commit("sitemapCell/removeFromSelected",t.cells)),t.sections&&Array.isArray(t.sections)&&t.sections.forEach((function(t){Slickplan.websocket.storeDispatch("sitemapSection/remove",t)})),t.data&&Object.keys(t.data).forEach((function(e){Object.keys(t.data[e]).forEach((function(n){Slickplan.websocket.storeDispatch("sitemapCell/updateData",{cell_id:e,key:n,value:t.data[e][n]})}))})))})).catch(_noop),n}}},P={computed:b(b({},(0,r.mapState)({xSitemapScale:function(t){return t.sitemap.scale}})),(0,r.mapGetters)({xCellsDesign:"sitemap/cellsDesign"})),methods:{setCellCssSizes:function(){document.documentElement.style.setProperty("--cell-width","".concat(Slickplan.sitemapCellsMath.CELL_WIDTH[this.xCellsDesign.boxSize],"px")),document.documentElement.style.setProperty("--cell-height","".concat(Slickplan.sitemapCellsMath.CELL_HEIGHT[this.xCellsDesign.boxSize],"px")),document.documentElement.style.setProperty("--scale",this.xSitemapScale)}},watch:{xSitemapScale:function(){this.setCellCssSizes()},xCellsDesign:{handler:function(){this.setCellCssSizes()},deep:!0}},created:function(){this.setCellCssSizes()}},L={computed:b({},(0,r.mapState)({xCells:function(t){return t.sitemapCell.cells}})),methods:{onCloneSubmit:function(t,e,n){var r=this;"string"==typeof t&&t||(t=this.xCurrentCellAlias),e&&"object"===f(e)||(e=Slickplan.helpers.objectCloneDeep(this.formData)),e.source_cell_id=t,this.formHelper&&(this.formHelper.isSubmitting=!0);var i=a.default.sitemapCell.clone(e);return i.promise.then((function(t){if(t){var e=t.cells,n=t.sections;if(n&&Object.keys(n).forEach((function(t){Slickplan.websocket.storeDispatch("sitemapSection/add",{id:t,data:n[t]})})),e){var i=[],o=[],a=!1;Object.keys(e).forEach((function(t){var n=e[t][s.constants.CELL_DATA_KEY_SECTION_ID];n&&n!==Slickplan.globalVars.sectionAlias||(a=!0),r.xCells.includes(t)?Object.keys(e[t]).forEach((function(n){o.push({cell_id:t,key:n,value:e[t][n]})})):i.push(b({id:t},e[t]))})),i.length&&Slickplan.websocket.storeDispatch("sitemapCell/add",i),o.length&&Slickplan.websocket.storeDispatch("sitemapCell/updateData",o),Slickplan.websocket.storeDispatch("sitemapCell/regroupCells"),a&&Slickplan.websocket.storeDispatch("sitemapCell/recalculatePositions")}}c.EventBus.$emit("panel-close"),r.$notify({text:"Pages cloned"})})).finally((function(){r.formHelper&&(r.formHelper.isSubmitting=!1),"function"==typeof n&&n()})),i}}}},63780:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mixinFileUploadHelpers:()=>i,mixinUploadDropzoneHelpers:()=>o});var r=n(71995),i={data:function(){return{internalLogo:null,uploadFileKey:"image",uploadFileStatus:!1}},computed:{imagePixel:function(){return this.imageBase64(244,247,252)},logoSrc:function(){var t,e,n;return"string"==typeof this.internalLogo&&this.internalLogo?this.internalLogo:"string"==typeof(null===(t=this.project)||void 0===t?void 0:t.logo)&&this.project.logo?this.project.logo:"string"==typeof(null===(e=this.formData)||void 0===e?void 0:e.logo)&&this.formData.logo?this.formData.logo:"string"==typeof(null===(n=this.formData)||void 0===n?void 0:n.company_logo)&&this.formData.company_logo?this.formData.company_logo:null},uploadAreaCss:function(){return this.uploadFileStatus?{background:"transparent url(".concat(this.imagePixel,") 0 0 no-repeat"),backgroundSize:"".concat(!0===this.uploadFileStatus?100:this.uploadFileStatus,"% 100%")}:!!this.logoSrc&&{backgroundImage:"url(".concat(this.logoSrc,")")}},uploadProgressWidth:function(){var t;return{width:"".concat(!0===this.uploadFileStatus?100:null!==(t=this.uploadFileStatus)&&void 0!==t?t:0,"%")}},uploadDropzoneStatus:function(){return this.$upload.dropzone(this.uploadFileKey).active},uploadFileError:function(){var t=this.$upload.files(this.uploadFileKey).error;return t&&t.length&&t[0]&&t[0].errors&&t[0].errors.length&&t[0].errors[0]&&t[0].errors[0].msg?this.$upload.files(this.uploadFileKey).error[0].errors[0].msg:null}},methods:{uploadFileInit:function(t){var e=this,n=Slickplan.helpers.objectMergeDeep({url:"",async:!0,maxFilesSelectMsg:"Max of {max} files can be selected at a time.",maxFileSizeMsg:"Max of {max} MB per file.",invalidExtensionMsg:"File must be one of: {extensions}."},t||{});n.http||(n.http=function(t){t.body.append("temporary","1"),r.default.file.upload(t.url,t.body,{onUploadProgress:t.progress}).promise.then(t.success).catch(t.error)}),n.parseErrors||(n.parseErrors=function(t){return t&&t.errors&&t.errors.file&&Array.isArray(t.errors.file)&&t.errors.file.length?{code:422,msg:[].concat(t.errors.file).shift()}:[]}),n.onEnd=function(n){e.$upload.reset(e.uploadFileKey),e.uploadFileStatus=!1,t&&"function"==typeof t.onEnd&&t.onEnd(n)},n.onUpload=function(n){e.uploadFileStatus=!0,t&&"function"==typeof t.onUpload&&t.onUpload(n)},n.onError=function(n){e.uploadFileStatus=!1,t&&"function"==typeof t.onError&&t.onError(n)},n.onProgress=function(n){e.uploadFileStatus=n.percentComplete,t&&"function"==typeof t.onProgress&&t.onProgress(n)},this.$upload.on(this.uploadFileKey,n)},uploadFileOption:function(t,e){this.$upload.option(this.uploadFileKey,t,e)},uploadFileDestroy:function(){try{return this.$upload.off(this.uploadFileKey)}catch(t){}},uploadFileSelect:function(){return this.$upload.reset(this.uploadFileKey),this.$upload.select(this.uploadFileKey)},uploadAreaClick:function(t){this.logoSrc&&null!=t&&t.target&&t.target.classList.contains("nc-trash")?this.$emit("change",0):this.uploadFileSelect()}}},o={dropzoneInstance:null,dropzoneFiles:[],data:function(){return{dropzoneId:null}},methods:{onDropzoneVisible:function(){this.uploadFileOption("dropzoneId",this.dropzoneId),this.uploadFileOption("dropzone",this.dropzoneId)}},mounted:function(){var t=this;this.dropzoneId=Slickplan.helpers.randomString(16),this.$nextTick((function(){t.initDropzone(),t.onDropzoneVisible()}))},beforeDestroy:function(){this.uploadFileDestroy()}}},84672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"structure-empty",functional:!0,props:{editable:{type:Boolean,default:!0}},render:function(t,e){var n=[t("image-tag",{style:{width:"183px",height:"169px"},attrs:{src:"/images/illustrations/empty-sitemap.png"},props:{retina:!0}}),t("hr",{class:"spacer-225"}),t("p",{class:"font-size-28 font-weight-700"},["Create your sitemap"]),t("hr",{class:"spacer-75"}),t("p",{class:"line-height-166"},["Add your first page to start building your sitemap.",t("br"),"It will help you organize your content more efficiently."]),t("hr",{class:"spacer-150"})];return e.props.editable&&n.push(t("div",{class:"button -primary",on:Slickplan.helpers.functionalEvents(e)},["+ Add Page"])),t("div",{class:"centered-container text-center"},n)}}},24592:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={name:"structure-separator",functional:!0,props:{type:{type:String,required:!0},visible:{type:Boolean,required:!0},position:{type:String,default:""},count:{type:Number,default:0}},render:function(t,e){var n=e.props,r=n.type,i=n.visible,o=n.position,a=n.count,s="u"===r.charAt(0),l=s?"utility":"footer";return t("div",{class:"section-separator"},[t("has-tooltip",{class:"label cursor-pointer",style:{left:o},props:{tag:"span",tooltip:i?"Hide ".concat(l," pages"):"Show ".concat(l," pages"),position:s?"below":"above",relativeTo:".nc-icon"},nativeOn:Slickplan.helpers.functionalEvents(e)},["".concat(s?"Utility":"Footer"," pages").concat(a?" (".concat(a,")"):""),t("icon-font",{props:{icon:i?"triangle-up-sm":"triangle-down-sm"}})])])}}},75464:(t,e)=>{var n,r,i,o,a,s,l,c,u,d,f,p,m,h,v,b,y,g;d=function(t){return">"===t},f=function(t){return"<"===t},m=function(t){return/^\s+$/.test(t)},p=function(t){return/^\s*<[^>]+>\s*$/.test(t)},h=function(t){return!p(t)},r=function(t,e,n){this.start_in_before=t,this.start_in_after=e,this.length=n,this.end_in_before=this.start_in_before+this.length-1,this.end_in_after=this.start_in_after+this.length-1},u=function(t){var e,n,r,i,o,a;for(o="char",n="",a=[],r=0,i=t.length;r<i;r++)switch(e=t[r],o){case"tag":d(e)?(n+=">",a.push(n),n="",o=m(e)?"whitespace":"char"):n+=e;break;case"char":f(e)?(n&&a.push(n),n="<",o="tag"):/\s/.test(e)?(n&&a.push(n),n=e,o="whitespace"):/[\w\#@]+/i.test(e)?n+=e:(n&&a.push(n),n=e);break;case"whitespace":f(e)?(n&&a.push(n),n="<",o="tag"):m(e)?n+=e:(n&&a.push(n),n=e,o="char");break;default:throw new Error("Unknown mode ".concat(o))}return n&&a.push(n),a},l=function(t,e,n,i,o,a,s){var l,c,u,d,f,p,m,h,v,b,y,g,_,S,C;for(c=i,l=a,u=0,y={},p=d=S=i,C=o;S<=C?d<C:d>C;p=S<=C?++d:--d){for(_={},m=0,h=(v=n[t[p]]).length;m<h;m++)if(!((f=v[m])<a)){if(f>=s)break;null==y[f-1]&&(y[f-1]=0),g=y[f-1]+1,_[f]=g,g>u&&(c=p-g+1,l=f-g+1,u=g)}y=_}return 0!==u&&(b=new r(c,l,u)),b},b=function(t,e,n,r,i,o,a,s){var c;return null!=(c=l(t,0,n,r,i,o,a))&&(r<c.start_in_before&&o<c.start_in_after&&b(t,e,n,r,c.start_in_before,o,c.start_in_after,s),s.push(c),c.end_in_before<=i&&c.end_in_after<=a&&b(t,e,n,c.end_in_before+1,i,c.end_in_after+1,a,s)),s},a=function(t){var e,n,r,i,o,a;if(null==t.find_these)throw new Error("params must have find_these key");if(null==t.in_these)throw new Error("params must have in_these key");for(r={},e=0,i=(o=t.find_these).length;e<i;e++)for(r[a=o[e]]=[],n=t.in_these.indexOf(a);-1!==n;)r[a].push(n),n=t.in_these.indexOf(a,n+1);return r},c=function(t,e){var n,r;return r=[],n=a({find_these:t,in_these:e}),b(t,e,n,0,t.length,0,e.length,r)},i=function(t,e){var n,i,o,a,s,l,u,d,f,p,m,h,v,b,y,g;if(null==t)throw new Error("before_tokens?");if(null==e)throw new Error("after_tokens?");for(y=b=0,v=[],n={"false,false":"replace","true,false":"insert","false,true":"delete","true,true":"none"},(m=c(t,e)).push(new r(t.length,e.length,0)),a=o=0,d=m.length;o<d;a=++o)"none"!==(i=n[[y===(p=m[a]).start_in_before,b===p.start_in_after].toString()])&&v.push({action:i,start_in_before:y,end_in_before:"insert"!==i?p.start_in_before-1:void 0,start_in_after:b,end_in_after:"delete"!==i?p.start_in_after-1:void 0}),0!==p.length&&v.push({action:"equal",start_in_before:p.start_in_before,end_in_before:p.end_in_before,start_in_after:p.start_in_after,end_in_after:p.end_in_after}),y=p.end_in_before+1,b=p.end_in_after+1;for(g=[],u={action:"none"},s=function(e){return"equal"===e.action&&(e.end_in_before-e.start_in_before==0&&/^\s$/.test(t.slice(e.start_in_before,+e.end_in_before+1||9e9)))},l=0,f=v.length;l<f;l++)s(h=v[l])&&"replace"===u.action||"replace"===h.action&&"replace"===u.action?(u.end_in_before=h.end_in_before,u.end_in_after=h.end_in_after):(g.push(h),u=h);return g},o=function(t,e,n){var r,i,o,a,s;for(a=void 0,o=i=0,s=(e=e.slice(t,+e.length+1||9e9)).length;i<s&&(!0===(r=n(e[o]))&&(a=o),!1!==r);o=++i);return null!=a?e.slice(0,+a+1||9e9):[]},g=function(t,e){var n,r,i,a,s;for(a="",i=0,n=e.length;!(i>=n||(i+=(r=o(i,e,h)).length,0!==r.length&&(a+="<".concat(t,' class="is-diff">').concat(r.join(""),"</").concat(t,">")),i>=n));)i+=(s=o(i,e,p)).length,a+=s.join("");return a},(v={equal:function(t,e,n){return e.slice(t.start_in_before,+t.end_in_before+1||9e9).join("")},insert:function(t,e,n){var r;return r=n.slice(t.start_in_after,+t.end_in_after+1||9e9),g("ins",r)},delete:function(t,e,n){var r;return r=e.slice(t.start_in_before,+t.end_in_before+1||9e9),g("del",r)}}).replace=function(t,e,n){return v.delete(t,e,n)+v.insert(t,e,n)},y=function(t,e,n){var r,i,o,a;for(a="",r=0,i=n.length;r<i;r++)o=n[r],a+=v[o.action](o,t,e);return a},(s=function(t,e){var n;return t===e?t:(t=u(t),e=u(e),n=i(t,e),y(t,e,n))}).html_to_tokens=u,s.find_matching_blocks=c,c.find_match=l,c.create_index=a,s.calculate_operations=i,s.render_operations=y,void 0===(n=function(){return s}.apply(e,[]))||(t.exports=n)},42712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(69172),i=n.n(r),o=n(77916);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const l={install:function(t){var e=a((navigator.language||navigator.userLanguage).split("-"),1)[0],n=new(i())({messages:o.translations,locale:e,fallback:"en"});t.prototype.$trans=function(t,e,r){var i=t.indexOf(".")<0?"globals.".concat(t):t;return"number"==typeof e?n.choice(i,e,r):n.trans(i,e)},t.prototype.$plural=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"".concat(e," "):"";return Array.isArray(t)?1===t.length?n+=t[0]:t.length>=e?n+=t[e-1]:n+=t[t.length-1]:"string"==typeof t&&(n+=t,1!==Math.abs(parseInt(e,10))&&("s"===n.slice(-1)&&(n+="e"),n+="s")),n}}}},59484:(t,e,n)=>{"use strict";function r(t,e){var n=String(t).replace(/\*\*(.*?)\*\*/g,"<b>$1</b>").replace(/__(.*?)__/g,"<i>$1</i>").replace(/~~(.*?)~~/g,"<del>$1</del>").replace(/``(.*?)``/g,"<code>$1</code>").replace(/\[(.*?)\]\(slickplan:([^)]+)\)/g,'<span data-slickplan-link="$2" class="style-link">$1</span>').replace(/\[(.*?)\]\((http.+?)\)/g,'<a href="$2" target="_blank" rel="noreferrer noopener">$1</a>').replace(/\[(.*?)\]\((.+?)\)/g,'<a href="$2">$1</a>').replace(/\n/g,"<br>");return e&&Array.isArray(e)&&e.length&&(n=n.replace(new RegExp("(^|\\s)@(".concat(e.join("|"),")"),"g"),"$1<cite>@$2</cite>")),n}n.r(e),n.d(e,{default:()=>r})},63124:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(3912),i=n(47928),o=n(29320),a=n(42712),s=n(67448),l=n(38960),c=n(41112),u=n(42456);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}var f={install:function(t){if(!this.installed){this.installed=!0,this.event=new t,this.dynamicContainer=null,t.prototype.$modal={_setDynamicContainer:function(t){f.dynamicContainer=t},_getDefaultParams:function(t){return t&&"object"===d(t)||(t={}),t.name||(t.name="confirm"),t.width||(t.width=500),t},show:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"string"==typeof t?f.event.$emit("toggle",t,!0,e):f.dynamicContainer.add(t,e,this._getDefaultParams(n),r)},hide:function(t,e){f.event.$emit("toggle",t,!1,e)},toggle:function(t,e){f.event.$emit("toggle",t,void 0,e)},action:function(t,e){f.event.$emit("action",t,e)},showConfirm:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f.dynamicContainer.add(c.default,e,{name:"confirm",width:"number"==typeof e.width?e.width:null,title:e.title||t.prototype.$trans("confirm_deletion"),titleClass:e.titleClass||"text-red",buttons:e.buttons||[e.buttonCancel||"cancel",{className:["-primary","-small"],label:e.buttonLabel||t.prototype.$trans("delete"),onClick:n}]},r)}},t.use(a.default),t.use(o.default),t.use(r.default),t.component("modal",s.default);var e=document.createElement("div");document.body.appendChild(e),new t({store:i.default,router:r.default,mixins:[u.mixinRoot],render:function(t){return t(l.default)}}).$mount(e)}}};const p=f},43880:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.r(e),n.d(e,{inRange:()=>c,parseNumber:()=>s,validateNumber:()=>l});var i="[-+]?[0-9]*.?[0-9]+",o=[{name:"px",regexp:new RegExp("^".concat(i,"px$"))},{name:"%",regexp:new RegExp("^".concat(i,"%$"))},{name:"px",regexp:new RegExp("^".concat(i,"$"))}],a=function(t){if("auto"===t)return{type:t,value:0};for(var e=0;e<o.length;e+=1){var n=o[e];if(n.regexp.test(t))return{type:n.name,value:parseFloat(t)}}return{type:"",value:t}},s=function(t){switch(r(t)){case"number":return{type:"px",value:t};case"string":return a(t);default:return{type:"",value:t}}},l=function(t){if("string"==typeof t){var e=a(t);return("%"===e.type||"px"===e.type)&&e.value>0}return t>=0},c=function(t,e,n){return n<t?t:n>e?e:n}},29320:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(29024),i=n(47928),o={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.installed){this.installed=!0,this.event=new t,this.params=e,t.component("notifications",r.default),t.prototype.$notify=function(t){o.event.$emit("add","string"==typeof t?{title:"",text:t}:t)};var n=document.createElement("div");document.body.appendChild(n),new t({store:i.default,render:function(t){return t(r.default)}}).$mount(n)}}};const a=o},51300:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(47928),i=n(52744),o=n(42456),a={install:function(t){if(!this.installed){this.installed=!0,this.EventBus=new t,t.prototype.$popover={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.EventBus.$emit("show",t)},hide:function(){a.EventBus.$emit("hide")},update:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.EventBus.$emit("update",t)}};var e=document.createElement("div");document.body.appendChild(e),new t({store:r.default,mixins:[o.mixinAllowedFeature],render:function(t){return t(i.default)}}).$mount(e)}}};const s=a},94756:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r=n(82496).default},3912:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>Q});var r=n(99016),i=n(45408),o=n(71995),a=n(47928),s=n(72328),l=n(46896),c=n(80680),u=n(67260),d=n(80244),f=n(17344),p=n(87372),m=n(51800),h=n(40946),v=n(63056),b=n(6820),y=n(12360),g=n(5540),_=n(89392),S=n(30972),C=n(64784),k=n(23384),x=n(11584),w=n(5160),E=n(57716),O=n(69744),D=n(8548),A=n(9780),T=n(33084),P=n(88136),L=n(6752),j=n(42292),I=n(11938),M=n(48848),R=n(14004),N=n(2388),$=n(44884),F=n(92764),B=n(19992),U=n(11216),G=n(90504),H=n(63864),z=n(87446),V=n(98708),K=n(59828),W=n(15020),q=n(85440),Y=n(86804);r.default.use(i.default);var X="sitemap-content",Z=new i.default({mode:"history",linkActiveClass:"active",linkExactActiveClass:"active",routes:[{path:"/login",name:"login",component:s.default},{path:"/register",name:"register",component:s.default},{path:"/forgot/:token([0-9]+t[a-f0-9]{10})",name:"login-forgot",component:s.default},{path:"/close/:token([0-9]+t[a-zA-Z0-9]{18})",name:"account-closed",component:l.default},{path:"/dashboard/:welcome(welcome)?",name:"dashboard",component:c.default,meta:{requiresAuth:!0,hasHeader:!0}},{path:"/team",name:"team",component:u.default,meta:{requiresAuth:!0,hasHeader:!0}},{path:"/integrations",name:"integrations",component:d.default,meta:{requiresAuth:!0,hasHeader:!0}},{path:"/profile",name:"profile",component:g.default,meta:{requiresAuth:!0,hasHeader:!0}},{path:"/account",redirect:"/account/company",component:_.default,meta:{requiresAuth:!0,hasHeader:!0},children:[{path:"company",name:"account-company",component:S.default},{path:"billing/:type([a-zA-Z0-9_]+)?",name:"account-billing",component:C.default},{path:"payment",redirect:"/account/billing"},{path:"invoices",name:"account-invoices",component:k.default},{path:"messages",name:"account-messages",component:x.default},{path:"preferences",name:"account-preferences",component:w.default},{path:"workflows",name:"account-workflows",component:E.default}]},{path:"/seo",redirect:"/seo/generator",name:"seo-tools",component:f.default,meta:{requiresAuth:!0,hasHeader:!0},children:[{path:"generator",name:"seo-xml-generator",component:b.default},{path:"validator",name:"seo-xml-validator",component:y.default},{path:"robots",name:"seo-robots-txt",component:h.default},{path:"headers",name:"seo-header-status",component:p.default},{path:"redirect",name:"seo-redirect-checker",component:m.default},{path:"utm",name:"seo-utm-builder",component:v.default}]},{path:"/project/:sitemap([a-z0-9]{7,10})",redirect:{name:"sitemap"},component:W.default,meta:{requiresAuth:!0},children:[{path:"sitemap/:section([a-z0-9-]+)?",name:"sitemap",components:{default:D.default,helper:Y.default}},{path:"diagram",name:"sitemap-diagram",components:{default:A.default,helper:Y.default}},{path:"diagram/:diagram([a-z0-9]{16})",name:"sitemap-diagram-cell",components:{default:N.default,helper:Y.default}},{path:"content",name:X,components:{default:T.default,helper:Y.default}},{path:"content/template",name:"".concat(X,"-template"),components:{default:P.default,helper:Y.default}},{path:"content/template/:template([a-z0-9-]+)",name:"".concat(X,"-template-builder"),components:{default:I.default,helper:Y.default}},{path:"content/workflow",name:"".concat(X,"-workflow"),components:{default:L.default,helper:Y.default}},{path:"content/activity",name:"".concat(X,"-activity-log"),components:{default:j.default,helper:Y.default}},{path:"content/page/:cell([a-z0-9-]+)",name:"".concat(X,"-page-builder"),components:{default:M.default,helper:Y.default}},{path:"mockup",name:"sitemap-mockup",components:{default:R.default,helper:Y.default}},{path:"import/crawler",name:"sitemap-import",component:V.default}]},{path:"/project/:diagram([a-z0-9]{16})",redirect:{name:"diagram"},component:W.default,meta:{requiresAuth:!0},children:[{path:"diagram",name:"diagram",components:{default:F.default,helper:q.default}}]},{path:"/api/register/:client([a-z0-9]{40})?",component:O.default},{path:"/sitemap/edit/:sitemap([a-z0-9]{7,10})",redirect:{name:"sitemap"}},{path:"/diagram/edit/:diagram([a-z0-9]{16})",redirect:{name:"diagram"}},{path:"/:sitemap([a-z0-9]{7,10})/auth",name:"sitemap-shared-auth",component:B.default,meta:{requiresGuestAuth:!0}},{path:"/:sitemap([a-z0-9]{7,10})",redirect:{name:"sitemap-shared"},component:U.default,meta:{requiresGuestAuth:!0},children:[{path:"sitemap",name:"sitemap-shared",components:{default:D.default,helper:Y.default}},{path:"sitemap/section/:section([a-z0-9-]+)",name:"sitemap-shared-section",components:{default:D.default,helper:Y.default}},{path:"diagram/:diagram([a-z0-9]{16})?",name:"sitemap-shared-diagram",components:{default:G.default,helper:Y.default}},{path:"content/:cell([a-z0-9-]+)?",name:"sitemap-shared-content",components:{default:H.default,helper:Y.default}},{path:"mockup/:cell([a-z0-9-]+)/:mockup([a-zA-Z0-9-]+)",name:"sitemap-shared-mockup-item",components:{default:z.default,helper:Y.default}},{path:"mockup/:mockup([0-9]+t[a-z0-9-]+)?",name:"sitemap-shared-mockup",components:{default:z.default,helper:Y.default}}]},{path:"/:diagram([a-z0-9]{16})/auth",name:"diagram-shared-auth",component:B.default,meta:{requiresGuestAuth:!0}},{path:"/:diagram([a-z0-9]{16})",redirect:{name:"diagram-shared"},component:$.default,meta:{requiresGuestAuth:!0},children:[{path:"diagram",name:"diagram-shared",components:{default:F.default,helper:q.default}}]},{path:"*",component:K.default}]});Z.beforeEach((function(t,e,n){Slickplan.helpers.onboard(!1),t.params.sitemap&&!Slickplan.globalVars.sitemapAlias&&(Slickplan.globalVars.sitemapAlias=t.params.sitemap),t.params.diagram&&!Slickplan.globalVars.diagramAlias&&(Slickplan.globalVars.diagramAlias=t.params.diagram),t.params.section&&!Slickplan.globalVars.sectionAlias&&(Slickplan.globalVars.sectionAlias=t.params.section),Slickplan.helpers.requestCancel("navigation"),r.default.prototype.$notify({destroyAll:!0});var i=e.path.replace(/^\/+|\/+$/g,"").split("/"),s=t.path.replace(/^\/+|\/+$/g,"").split("/");if(e.path!==t.path){a.default.dispatch("core/setLoading",1),a.default.commit("mockup/setPreviewVisible",!1),a.default.commit("actionBar/reset");var l=/shared/.test("".concat(t.name).concat(e.name))&&i[0]===s[0]&&(null==i?void 0:i[1])!==(null==s?void 0:s[1]);("project"===i[0]&&"project"===s[0]&&(null==i?void 0:i[2])!==(null==s?void 0:s[2])||l)&&a.default.dispatch("panel/setVisible",!1),l&&(a.default.commit("diagram/setMode","view"),a.default.commit("mockup/setPreviewMode","view"))}var c=t.matched.some((function(t){return t.meta.requiresAuth})),u=t.matched.some((function(t){return t.meta.requiresGuestAuth}));e.path===t.path||!c&&!u||i.length>1&&s.length>1&&(!u&&"project"===i[0]&&i[0]===s[0]&&i[1]===s[1]||u&&i[1]===s[1])?n():Slickplan.helpers.requestSingle((function(){return o.default.beforeNavigation({path:t.path,route:t.name,auth:u?"guest":c?"user":"dummy"})}),"navigation").promise.then((function(e){e&&(e.redirect&&window.location.pathname!==e.redirect?Slickplan.helpers.navigateTo(e.redirect,!0):e.refresh?Slickplan.helpers.navigateTo(t.path,!0):(c&&e.user||u&&(e.guest||e.user))&&(e.guest&&(e.guest.projects&&(Slickplan.globalVars.guestProjects=e.guest.projects),a.default.commit("user/setGuest",e.guest)),(e.limits||e.disabled)&&a.default.commit("core/setPlanLimits",e),e.user&&a.default.commit("user/set",e.user),e.preferences&&a.default.commit("user/setGlobalPreferences",e.preferences),Slickplan.globalVars.navigationCount+=1,n()))})).catch((function(t){a.default.dispatch("core/setLoading",-1)}))})),Z.afterEach((function(){a.default.dispatch("core/setLoading",!1)}));const Q=Z},52892:(t,e,n)=>{"use strict";n.r(e),n.d(e,{deleteProp:()=>u,getRecentColors:()=>f,prepareRecentColors:()=>p,saveRecentColors:()=>m,setProp:()=>c});var r=n(99016);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t){return Array.isArray(t)?t:("string"==typeof t&&(t=t.split(".")),Slickplan.helpers.castArray(t))}function c(t,e,n){var i=(e=l(e)).shift();t[i]||r.default.set(t,i,{}),e.length?c(t[i],e,n):n&&"object"===s(n)&&!Array.isArray(n)?t[i]=o(o({},t[i]),n):t[i]=n}function u(t,e){var n=(e=l(e)).shift();t[n]&&(e.length?u(t[n],e):r.default.delete(t,n))}var d=[];function f(){var t=window.localStorage.getItem("SlickplanRecentColors")||"";return t?t.split(","):[]}function p(t){d=[].concat(t).filter((function(t){return Slickplan.helpers.isHex(t)})).map((function(t){return t.toLowerCase()}))}function m(){var t=[].concat(f().filter((function(t){return!d.includes(t)})),d);t.length>14&&(t=t.slice(t.length-14,t.length)),window.localStorage.setItem("SlickplanRecentColors",t.join(","))}},47928:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>E});var r=n(99016),i=n(48416),o=n(93532),a=n(75612),s=n(44016),l=n(31509),c=n(59540),u=n(8e4),d=n(29576),f=n(27148),p=n(3024),m=n(18472),h=n(544),v=n(30256),b=n(26464),y=n(90368),g=n(55464),_=n(67312),S=n(76584),C=n(36048),k=n(40888),x=n(81988),w=n(73948);r.default.use(i.default);const E=new i.default.Store({modules:{actionBar:o.default,colors:a.default,comments:s.default,content:_.default,core:l.default,dashboard:c.default,diagram:u.default,diagramHelpers:d.default,diagramItem:f.default,diagramItemData:p.default,file:m.default,mockup:h.default,panel:v.default,project:b.default,sitemap:y.default,sitemapCell:g.default,sitemapHelpers:S.default,sitemapSection:C.default,team:k.default,user:x.default,websocket:w.default}})},93532:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(2376),i=n.n(r);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=999;var l={reset:function(t){Object.assign(t,{isVisible:!1,selectAll:!1,doneButton:!0,count:!0,label:!0,columns:[],links:[],buttons:[],sideLinks:[],selected:[]})},set:function(t,e){var n=t.selected.slice(0);Object.keys(t).forEach((function(n){Array.isArray(t[n])&&!Array.isArray(e[n])&&(e[n]=Slickplan.helpers.castArray(e[n]),"links"!==n&&"buttons"!==n&&"sideLinks"!==n||(e[n]=e[n].map((function(t){return t.id||(t.id=++s),t}))))})),Object.assign(t,{isVisible:!1,selectAll:!1,doneButton:!0,count:!0,label:!0,columns:[],links:[],buttons:[],sideLinks:[],selected:[]},e,{selected:n})},update:function(t,e){i()(e,(function(e,n){void 0!==t[n]&&(t[n]=Array.isArray(e)?e.slice(0):e)}))},select:function(t,e){var n=o(new Set([].concat(t.selected).concat(e)));t.selected.length!==n.length&&(t.selected=n)},deselect:function(t,e){var n=[].concat(e),r=t.selected.filter((function(t){return!n.includes(t)}));t.selected.length!==r.length&&(t.selected=r)},selectOnly:function(t,e){t.selected=Slickplan.helpers.castArray(e)},selectToggle:function(t,e){t.selected.includes(e)?t.selected=t.selected.filter((function(t){return e!==t})):t.selected=[].concat(t.selected).concat(e)},selectAll:function(t){"function"==typeof t.selectAll?t.selected=t.selectAll():t.selected=[]},deselectAll:function(t){t.selected=[]}};const c={namespaced:!0,state:{isVisible:!1,selectAll:!1,doneButton:!0,count:!0,label:!0,columns:[],links:[],buttons:[],sideLinks:[],selected:[]},getters:{},actions:{},mutations:l}},75612:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});n(2376);var r=n(14580),i=n(52892);function o(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s={getThemes:function(t){return t.themes.filter((function(t){return"_"!==t.id.charAt(1)}))},getSectionColors:function(t,e,n){return function(e){return t.sections[e||n.sitemapSection.currentId]?Slickplan.helpers.objectCloneDeep(t.sections[e||n.sitemapSection.currentId]):{themeId:"default",failover:{background:n.sitemapSection.defaultData[r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND],text:n.sitemapSection.defaultData[r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR],lines:n.sitemapSection.defaultData[r.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR]}}}}},l={addTheme:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_THEME_ADD,e)},resetThemes:function(t){(0,t.commit)(r.mutationTypes.SITEMAP_THEMES_RESET)},setSectionColors:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_SECTION_COLORS_SET,e)},removeSectionColors:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_SECTION_COLORS_REMOVE,e)},setTempColor:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_TEMP_COLOR_SET,e)},removeTempColor:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_TEMP_COLOR_RESET,e)}},c=o(o(o(o(o(o(o({},r.mutationTypes.SITEMAP_THEME_ADD,(function(t,e){if(e&&e.id&&e.colors&&("object"===a(e.colors)||Array.isArray(e.colors))){var n=Slickplan.helpers.parseColorScheme(e.colors);if("_"===String(e.id).charAt(1)||n.length){e.colors=Slickplan.helpers.sortNumeric(n,"levelSort"),e.sortValue=("_"===e.id.charAt(0)?"z":"a")+e.name;var r=t.themes.findIndex((function(t){return t.id===e.id}));r>=0?t.themes[r]=e:t.themes.push(e),(0,i.setProp)(t,"themes",Slickplan.helpers.sortString(t.themes,"sortValue"))}}})),"removeTheme",(function(t,e){(0,i.setProp)(t,"themes",t.themes.filter((function(t){return t.id!==e})))})),r.mutationTypes.SITEMAP_THEMES_RESET,(function(t){(0,i.setProp)(t,"themes",t.themes.filter((function(t){return"_"===t.id.charAt(1)})))})),r.mutationTypes.SITEMAP_SECTION_COLORS_SET,(function(t,e){var n=e.sectionId,r=e.scheme;(0,i.setProp)(t.sections,n,"string"==typeof r?r:Slickplan.helpers.objectCloneDeep(r))})),r.mutationTypes.SITEMAP_SECTION_COLORS_REMOVE,(function(t,e){(0,i.deleteProp)(t.sections,e)})),r.mutationTypes.SITEMAP_TEMP_COLOR_SET,(function(t,e){var n=e.type,r=e.id,o=e.key,a=e.color;"default"===n?!1===a?(0,i.deleteProp)(t.tempColors,[n,o]):(0,i.setProp)(t.tempColors,[n,o],a):!1===a?[].concat(r).forEach((function(e){(0,i.deleteProp)(t.tempColors,[n,e,o])})):[].concat(r).forEach((function(e){(0,i.setProp)(t.tempColors,[n,e,o],a)}))})),r.mutationTypes.SITEMAP_TEMP_COLOR_RESET,(function(t){t.tempColors={default:{},levels:{},cells:{}}}));const u={namespaced:!0,state:{themes:[],sections:{},tempColors:{default:{},levels:{},cells:{}}},getters:s,actions:l,mutations:c}},44016:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r,i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={};var l={comments:[],commentsGlobal:[],formData:{},isLoading:!1,isReply:!1,isEdit:!1,isCenterHighlight:!0,fromGlobalComments:!1,floatingHighlight:null,commentHover:null,type:null,typeId:null,currentModuleId:null,counter:a(a(a(a({globalUnread:0},i.constants.COMMENTS_TYPE_PAGE,{}),i.constants.COMMENTS_TYPE_FILE,{}),i.constants.COMMENTS_TYPE_CONTENT_BLOCK,{}),i.constants.COMMENTS_TYPE_DIAGRAM,{})},c={getGuestColor:function(){return function(t){return function(t){var e=("string"==typeof t||"number"==typeof t?"".concat(t):(null==t?void 0:t.email)||"").toLowerCase();return e&&!s[e]&&(s[e]=i.userColors[Math.floor(Math.random()*i.userColors.length)]),s[e]}(t)}}},u={set:function(t,e){var n=t.commit,r=e.form,o=e.comments;n("setFloatingHighlight",null),void 0!==r&&n(i.mutationTypes.COMMENTS_FORM_SET,r),n(i.mutationTypes.COMMENTS_SET,o)},setGlobal:function(t,e){(0,t.commit)("setGlobal",e&&Array.isArray(e)?e:[])},add:function(t,e){var n=t.commit;e&&e.id&&n(i.mutationTypes.COMMENTS_ADD,e)},remove:function(t,e){(0,t.commit)(i.mutationTypes.COMMENTS_REMOVE,Slickplan.helpers.castArray(e))},setType:function(t,e){(0,t.commit)(i.mutationTypes.COMMENTS_TYPE_SET,e)},setReply:function(t,e){(0,t.commit)(i.mutationTypes.COMMENTS_REPLY_SET,e)},setEdit:function(t,e){(0,t.commit)(i.mutationTypes.COMMENTS_EDIT_SET,e)},resetForm:function(t){(0,t.commit)(i.mutationTypes.COMMENTS_FORM_RESET)},setLoading:function(t,e){(0,t.commit)(i.mutationTypes.COMMENTS_LOADING_SET,e)},setForm:function(t,e){(0,t.commit)(i.mutationTypes.COMMENTS_FORM_SET,e)}},d=(a(a(a(a(a(a(a(a(a(a(r={},i.mutationTypes.COMMENTS_SET,(function(t,e){var n=e&&Array.isArray(e);t.comments=n?e:[]})),"setGlobal",(function(t,e){var n=e&&Array.isArray(e);t.commentsGlobal=n?e:[]})),i.mutationTypes.COMMENTS_ADD,(function(t,e){var n=e.type?"comments":"commentsGlobal",r=t[n].findIndex((function(t){return t.id===e.id}));r>=0?(t[n][r]=e,t[n]=t[n].slice(0)):t[n].push(e)})),i.mutationTypes.COMMENTS_REMOVE,(function(t,e){["comments","commentsGlobal"].forEach((function(n){t[n]=t[n].filter((function(t){return!e.includes(t.id)}))}))})),i.mutationTypes.COMMENTS_EDIT_SET,(function(t,e){t.isEdit=e,t.isReply=!1})),i.mutationTypes.COMMENTS_REPLY_SET,(function(t,e){t.isEdit=!1,t.isReply=e})),i.mutationTypes.COMMENTS_FORM_RESET,(function(t){t.isEdit=!1,t.isReply=!1})),i.mutationTypes.COMMENTS_TYPE_SET,(function(t,e){e===i.constants.COMMENTS_TYPE_GLOBAL||e===i.constants.COMMENTS_TYPE_DIAGRAM||e===i.constants.COMMENTS_TYPE_PAGE||e===i.constants.COMMENTS_TYPE_FILE||e===i.constants.COMMENTS_TYPE_CONTENT_BLOCK?t.type=e:t.type=null})),i.mutationTypes.COMMENTS_LOADING_SET,(function(t,e){t.isLoading=Boolean(e)})),i.mutationTypes.COMMENTS_FORM_SET,(function(t,e){t.formData=e&&"object"===o(e)?e:{}})),a(a(a(a(a(a(a(a(a(a(r,"updateComments",(function(t,e){var n=null!=e&&e.id?a({},e.id,e):Slickplan.helpers.objectCloneDeep(e);["comments","commentsGlobal"].forEach((function(e){t[e]=t[e].map((function(t){return null!=n&&n[t.id]?Slickplan.helpers.objectMergeDeep(t,n[t.id],{id:t.id}):t}))}))})),"setCounter",(function(t,e){if(e&&"object"===o(e)){var n=e.type,r=e.id,i=e.total,s=e.unread;n&&r&&t.counter[n]&&(t.counter[n][r]&&(i="number"==typeof i?i:t.counter[n][r].total,s="number"==typeof s?s:0),t.counter[n]=Slickplan.helpers.objectMergeDeep(t.counter[n],a({},r,{total:"number"==typeof i?i:0,unread:"number"==typeof s?s:0})))}else t.counter.globalUnread="number"==typeof e&&e>=0?parseInt(e,10):0})),"resetCounter",(function(t,e){e?t.counter[e]&&(t.counter[e]={}):t.counter.globalUnread=0})),"increaseCounter",(function(t,e){if(e&&"object"===o(e)){var n=e.type,r=e.id;n&&r&&t.counter[n]&&(n!==i.constants.COMMENTS_TYPE_CONTENT_BLOCK||t.counter[n][r])&&(t.counter[n]=Slickplan.helpers.objectMergeDeep(t.counter[n],a({},r,{total:t.counter[n][r]?t.counter[n][r].total+1:1,unread:t.counter[n][r]?t.counter[n][r].unread+1:1})))}t.counter.globalUnread+=1})),"setTypeId",(function(t,e){t.typeId=e})),"resetGlobal",(function(t){t.fromGlobalComments=!1,t.commentsGlobal=[]})),"reset",(function(t,e){t.comments=[],t.formData={},t.isLoading=!1,t.isReply=!1,t.isEdit=!1,"object"===o(e)?(t.type=(null==e?void 0:e.type)||null,t.typeId=(null==e?void 0:e.id)||null):(t.type=e||null,t.typeId=null)})),"setModuleId",(function(t,e){t.currentModuleId=e||null})),"setHighlight",(function(t,e){t.isCenterHighlight=!!e})),"setFloatingHighlight",(function(t,e){var n=t.comments.find((function(t){return t.id===e}));t.floatingHighlight=n?n.parent_id||n.id:null})),a(a(r,"setCommentHover",(function(t,e){t.commentHover=e||null})),"fromGlobalComments",(function(t,e){t.fromGlobalComments=e})));const f={namespaced:!0,state:l,getters:c,actions:u,mutations:d}},67312:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var r=n(99016),i=n(14580);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t){var e=t?!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?Slickplan.helpers.objectCloneDeep(t):t:{};if(e.options||(e.options={}),e.id||(e.id=Slickplan.helpers.randomString(9)),e.type||(e.type="text"),"file"===e.type||"image"===e.type||"video"===e.type)Array.isArray(e.content)||(e.content=Slickplan.helpers.castArray(e.content));else if("table"===e.type){e.content||(e.content={}),["rows","cols"].forEach((function(t){var n=parseInt(e.content[t],10);e.content[t]=n&&!Number.isNaN(n)?n:0}));for(var n=[],r=0;r<e.content.rows;++r){n[r]=[];for(var i=0;i<e.content.cols;++i)n[r][i]=e.content.data&&e.content.data[r]&&!Slickplan.helpers.isBlank(e.content.data[r][i])?e.content.data[r][i]:""}e.content.data=n,void 0===e.content.merge||e.content.merge&&"object"===c(e.content.merge)||delete e.content.merge}else"text"===e.type||"wysiwyg"===e.type?e.content="string"==typeof e.content||"number"==typeof e.content?String(e.content):"":"form"===e.type&&(e.content=Slickplan.helpers.castArray(e.content,[]));return e}function d(t,e){var n=e.index,r=u(e.data);return"number"==typeof n&&n>=0?t.builderBlocks=Slickplan.helpers.arrayInsert(t.builderBlocks,n,r):t.builderBlocks.push(r),r}function f(t,e){var n=e.id,i=e.data,o=t.builderBlocks.findIndex((function(t){return t.id===n}));o>=0&&t.builderBlocks[o]&&("table"===t.builderBlocks[o].type&&"object"===c(i.content)&&"object"===c(t.builderBlocks[o].content)&&(void 0!==i.content.data&&(t.builderBlocks[o].content.data=[]),void 0!==i.content.merge&&(t.builderBlocks[o].content.merge={})),r.default.set(t.builderBlocks,o,u(Slickplan.helpers.objectMergeDeep(t.builderBlocks[o],i),!1)))}function p(t,e){t.builderBlocks=t.builderBlocks.filter((function(t){return t.id!==e})),t.builderBlocksLocks[e]&&r.default.delete(t.builderBlocksLocks,e)}function m(t,e){t.builderBlocks=e.map((function(e){var n=t.builderBlocks.find((function(t){return t.id===e}));return"wysiwyg"===n.type&&(n.uuid=Slickplan.helpers.randomString()),n}))}var h={getTemplateNames:function(t){return Slickplan.helpers.arrayToKeyValue(t.templates,"alias","name")},getTemplateName:function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return n;var r=t.templates.find((function(t){return t.alias===e}));return r?r.name:n}}},v={setCurrentSection:function(t,e){t.currentSectionId=e&&"string"==typeof e?e.replace("link:",""):i.constants.SITEMAP_SECTION_MAIN_ID},setFilter:function(t,e){var n=e.key,r=e.value;if("language"!==n)if("search"===n&&(r=String(r).trim().toLowerCase().split(" ").filter((function(t){return!Slickplan.helpers.isBlank(t)&&String(t).length>1}))),Array.isArray(t.filters[n])){var i=[].concat(r);Array.isArray(r)||(i=i.concat(t.filters[n].slice(0))),t.filters[n]=s(new Set(i))}else t.filters[n]=r;else r&&t.currentLanguage!==r&&(t.currentLanguage=r)},setLanguage:function(t,e){e&&t.currentLanguage!==e&&(t.currentLanguage=e)},resetFilters:function(t,e){t.filters.search=[],t.filters.assignee=[],t.filters.status=[],t.filters.type="all",e&&t.currentLanguage!==e&&(t.currentLanguage=e)},setTemplates:function(t,e){t.templates=e.map((function(t){return t.pages_count=t.pages.length,t}))},addTemplate:function(t,e){(e=[].concat(e)).forEach((function(e){e.pages_count=e.pages.length,t.templates.push(e)}))},removeTemplate:function(t,e){e=[].concat(e),t.templates=t.templates.filter((function(t){return!e.includes(t.alias)}))},updateTemplateData:function(t,e){var n=e.alias,r=e.data,i=Slickplan.helpers.objectCloneDeep(t.templates),o=i.findIndex((function(t){return t.alias===n}));r&&o>=0&&(Object.keys(r).forEach((function(t){i[o][t]=r[t]})),t.templates=i)},setBuilderBlocks:function(t,e){Array.isArray(e)&&(e={blocks:e});var n=e,r=n.blocks,i=n.revision;t.builderBlocksRevision=Array.isArray(i)?i.map((function(t){return u(t)})):[],t.builderBlocks=Array.isArray(r)?r.map((function(t){return u(t)})):[]},addBuilderBlock:function(t,e){d(t,e)},addBuilderBlockAndBroadcast:function(t,e){var n=d(t,e);Slickplan.websocket.pushContent(t.builderPageId,t.currentLanguage,{id:n.id,key:"add",data:e})},updateBuilderBlock:function(t,e){f(t,e)},updateBuilderBlockAndBroadcast:function(t,e){var n=e.id,r=e.data;f(t,{id:n,data:r}),Slickplan.websocket.pushContent(t.builderPageId,t.currentLanguage,{id:n,key:"update",data:{id:n,data:r}})},deleteBuilderBlock:function(t,e){p(t,e)},deleteBuilderBlockAndBroadcast:function(t,e){p(t,e),Slickplan.websocket.pushContent(t.builderPageId,t.currentLanguage,{id:e,key:"delete",data:e})},reorderBuilderBlocks:function(t,e){m(t,e)},reorderBuilderBlocksAndBroadcast:function(t,e){var n=e.id,r=e.ids;m(t,r),Slickplan.websocket.pushContent(t.builderPageId,t.currentLanguage,{id:n,key:"reorder",data:r})},setCurrentBuilderPage:function(t,e){t.builderPageId=e||null},setCurrentBuilderPageData:function(t,e){if(e){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.builderPageData),r={title:"meta_title",slug:"url_slug",description:"meta_description",keywords:"meta_focus_keyword"};Object.keys(e).forEach((function(t){n[r[t]||t]=e[t]})),t.builderPageData=n}},resetCurrentBuilderPageData:function(t,e){t.builderPageData=e?Slickplan.helpers.objectCloneDeep(e):{}},setLoading:function(t,e){t.loading=!!e},setLockBuilderBlock:function(t,e){var n=e.user,i=e.id;e.data?t.builderBlocksLocks[i]!==n&&(Object.keys(t.builderBlocksLocks).forEach((function(e){e!==i&&t.builderBlocksLocks[e]===n&&r.default.delete(t.builderBlocksLocks,e)})),r.default.set(t.builderBlocksLocks,i,n)):t.builderBlocksLocks[i]&&r.default.delete(t.builderBlocksLocks,i)},clearLockBuilderBlocks:function(t,e){e=[].concat(e),Object.keys(t.builderBlocksLocks).forEach((function(n){e.includes(t.builderBlocksLocks[n])&&r.default.delete(t.builderBlocksLocks,n)}))}};const b={namespaced:!0,state:{loading:!1,currentSectionId:null,currentLanguage:"en_US",templates:[],filters:{search:[],assignee:[],status:[],type:"all",bar_full:!1},builderBlocks:[],builderBlocksRevision:[],builderBlocksLocks:{},builderPageId:null,builderPageData:{}},getters:h,actions:{},mutations:v}},31509:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(14580);function i(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var a={isPageLoading:function(t){return t.loading>0},isAllowedFeature:function(t){return function(e){return e&&!t.disabledFunctions.includes(e)}},getServerTime:function(t){return function(){return Math.floor(Date.now()/1e3)-(t.timeOffset||0)}}},s={setLoading:function(t,e){(0,t.commit)(r.mutationTypes.CORE_PAGE_LOADING_SET,e)},setMetaTitle:function(t,e){document.title="Slickplan".concat("string"==typeof e&&e?" · ".concat(e):"")},setWindowSize:function(t,e){(0,t.commit)(r.mutationTypes.CORE_WINDOW_SIZE_SET,e)},refreshScrollbarWidth:function(t){(0,t.commit)(r.mutationTypes.CORE_SCROLLBAR_WIDTH_REFRESH)},setTimeOffset:function(t,e){(0,t.commit)(r.mutationTypes.CORE_SET_TIME_OFFSET,e)}},l=i(i(i(i(i(i({},r.mutationTypes.CORE_PAGE_LOADING_SET,(function(t,e){"number"==typeof e?t.loading+=e:t.loading=e?1:0,document.body.style.pointerEvents=t.loading>0?"none":""})),"setPlanLimits",(function(t,e){var n=e.limits,r=e.disabled;"object"===o(n)&&Object.assign(t.planLimits,n),Array.isArray(r)&&(t.disabledFunctions=r||[])})),r.mutationTypes.CORE_WINDOW_SIZE_SET,(function(t,e){Object.keys(t.windowSize).forEach((function(n){e&&"number"==typeof e[n]&&t.windowSize[n]!==e[n]&&(t.windowSize[n]=e[n],"headerHeight"===n&&document.documentElement.style.setProperty("--header-height","".concat(e[n],"px")))}))})),r.mutationTypes.CORE_SCROLLBAR_WIDTH_REFRESH,(function(t){var e=document.createElement("p");Object.assign(e.style,{width:"100%",height:"200px"});var n=document.createElement("div");Object.assign(n.style,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.appendChild(e),document.body.appendChild(n);var r=e.offsetWidth;n.style.overflow="scroll";var i=e.offsetWidth;r===i&&(i=n.clientWidth),document.body.removeChild(n),t.scrollbarWidth=Math.max(0,r-i)})),r.mutationTypes.CORE_SET_TIME_OFFSET,(function(t,e){if(null===t.timeOffset){var n=Math.floor(Date.now()/1e3)-e;t.timeOffset=Math.abs(n)>60?n:0}})),"onboard",(function(t,e){Array.isArray(e)?t.onboard=e.slice(0):t.onboard=e&&t.onboard.filter((function(t){return t!==e}))||[]}));const c={namespaced:!0,state:{loading:0,planLimits:{},disabledFunctions:[],windowSize:{width:0,height:0,headerHeight:0,scrollableHeight:0},scrollbarWidth:0,timeOffset:null,onboard:[]},getters:a,actions:s,mutations:l}},59540:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>C});var r=n(99016),i=n(5928),o=n.n(i),a=n(2376),s=n.n(a),l=n(30952),c=n.n(l),u=n(14580);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){var n=[];return s()(e,(function(e,r){r=Number(r);var i=t.team.team.find((function(t){return t.id===r}));i&&i.type&&n.push({id:r,roles:e,name:i.name,order:"administrator"===i.type?"member":i.type})})),c()(n,["order","name"])}var v={type:"all",sort:"timestamp-desc",status:u.constants.STATUS_ACTIVE,view:"list",search:null},b={},y={projects:{},projectsPerPage:0,projectsToDisplay:0,filter:p({},v)},g={getData:function(t){return function(e){return t.projects[e]}},getFilters:function(t){var e={};return Object.keys(v).forEach((function(n){Slickplan.helpers.isBlank(t.filter[n])||t.filter[n]===v[n]||(e[n]=t.filter[n])})),e},hasFilters:function(t){return t.filter.type!==v.type||t.filter.sort!==v.sort||t.filter.status!==v.status||!Slickplan.helpers.isBlank(t.filter.search)},filteredProjects:function(t){var e=Object.values(t.projects).filter((function(e){return("all"===t.filter.type||e.type===t.filter.type)&&(e.status===t.filter.status||e.status===u.constants.STATUS_LOCKED&&t.filter.status===u.constants.STATUS_ACTIVE)&&(!t.filter.search||t.filter.search.every((function(t){return~e.normalizedTitle.indexOf(t)})))}));if(e.length){var n=t.filter.sort.split("-"),r=n.length>1&&"desc"===n[1]?n[1]:"asc";return"title"===n[0]?Slickplan.helpers.sortString(e,"normalizedTitle",r):Slickplan.helpers.sortNumeric(e,n[0],r)}return e},activeProjects:function(t){return Object.values(t.projects).filter((function(t){return t.status!==u.constants.STATUS_ARCHIVED}))}},_={loadProjects:function(t,e){var n=t.commit,r=t.rootState;n(u.mutationTypes.DASHBOARD_PROJECTS_LOAD,{rootState:r,projects:e})},setFilters:function(t,e){(0,t.commit)(u.mutationTypes.DASHBOARD_FILTERS_SET,e)},resetFilters:function(t){(0,t.commit)(u.mutationTypes.DASHBOARD_FILTERS_RESET)},updateProject:function(t,e){(0,t.commit)(u.mutationTypes.DASHBOARD_PROJECTS_UPDATE,e)},updateProjectContributors:function(t,e){(0,t.commit)("updateProjectContributors",{rootState:t.rootState,payload:e})},switchVersion:function(t,e){(0,t.commit)(u.mutationTypes.DASHBOARD_SWITCH_VERSION,e)},increaseProjectsToDisplay:function(t){(0,t.commit)(u.mutationTypes.DASHBOARD_PROJECTS_TO_DISPLAY_INCREASE)}},S=m(m(m(m(m(m(m({},u.mutationTypes.DASHBOARD_PROJECTS_LOAD,(function(t,e){var n=e.rootState,i=e.projects,a={};s()(i,(function(t){if("sitemap"===t.type){var e=[],r=null;t.versions.forEach((function(t){(!r||t.timestamp>r.timestamp)&&(r=t),e.push(t.alias)})),t=p(p({},t),r),e.forEach((function(e){b[e]=t.alias}))}t.key=t.alias,t.contributors=h(n,t.contributors),t.normalizedTitle="".concat(t.title).trim().toLocaleLowerCase();var i=o()(t.normalizedTitle).toLowerCase();i!==t.normalizedTitle&&(t.normalizedTitle="".concat(i," ").concat(t.normalizedTitle)),a[t.alias]=t})),r.default.set(t,"projects",a),t.projectsPerPage=Object.keys(a).length>40?30:999999,t.projectsToDisplay=t.projectsPerPage})),u.mutationTypes.DASHBOARD_SWITCH_VERSION,(function(t,e){var n=e.from,i=e.to,o=b[n];if(o&&o===b[i]){var a=t.projects[o].versions.find((function(t){return t.alias===i}));r.default.set(t.projects,o,p(p(p({},t.projects[o]),a),{},{key:o,timestamp:t.projects[o].timestamp}))}})),u.mutationTypes.DASHBOARD_PROJECTS_UPDATE,(function(t,e){var n=e.alias,i=e.data;i=Slickplan.helpers.objectPick(i,["meta","status"]),t.projects[n]&&Object.keys(i).length&&r.default.set(t.projects,n,p(p({},t.projects[n]),i))})),"updateProjectContributors",(function(t,e){var n=e.rootState,i=e.payload;r.default.set(t.projects,i.alias,p(p({},t.projects[i.alias]),{},{contributors:h(n,i.contributors)}))})),u.mutationTypes.DASHBOARD_FILTERS_SET,(function(t,e){var n=e.key,i=e.value;"search"===n&&((i=String(i).trim().toLocaleLowerCase().split(" ")).length&&(i=i.filter((function(t){return!Slickplan.helpers.isBlank(t)}))),i.length||(i=null)),t.filter[n]!==i&&r.default.set(t.filter,n,i),t.projectsToDisplay=t.projectsPerPage})),u.mutationTypes.DASHBOARD_FILTERS_RESET,(function(t){t.filter=p(p({},v),{},{view:t.filter.view}),document.getElementById("field-filter-search").value=""})),u.mutationTypes.DASHBOARD_PROJECTS_TO_DISPLAY_INCREASE,(function(t){t.projectsToDisplay+=t.projectsPerPage}));const C={namespaced:!0,state:y,getters:g,actions:_,mutations:S}},29576:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(71995),i=n(14580);const o={namespaced:!0,state:{},getters:{},actions:{saveItems:function(t,e){t.dispatch;var n=t.commit,o=t.rootState,a=t.rootGetters,s=e.elements,l=e.connectors,c=a["diagram/getCurrentBBox"],u={element:[],connector:[]},d={element:[],connector:[]},f={element:[],connector:[]},p=s.map((function(t){return{type:"element",id:t}})),m=l.map((function(t){return{type:"connector",id:t}}));[].concat(p,m).forEach((function(t){var e=t.id,n=t.type,r=o.diagramItem[e];if(r){var i={alias:e,type:Array.isArray(r.type)?r.type.join("-"):r.type};if("element"===n?(Object.assign(i,{width:r.width,height:r.height,x:r.matrix[0],y:r.matrix[1],order:r.order,label:r.label?"".concat(r.label).trim():""}),r.cell_id&&(i.cell_id=r.cell_id)):Object.assign(i,{points:r.points,from:r["from-element"],to:r["to-element"],from_direction:r["from-direction"],to_direction:r["to-direction"]}),"new"===r.status){var s=a["diagramItemData/getItemDataArray"](e);s.length&&(i.data=s),u[n].push(i)}else d[n].push(i)}else f[n].push(e)}));var h=o.project.currentProjectType.sitemap;(u.element.length||u.connector.length)&&Slickplan.helpers.requestQueue((function(){var t=r.default.diagram.massCreate(u.element,u.connector,c,h);return t.promise.then((function(){n("diagramItem/processElementAndBroadcast",{id:p.map((function(t){return t.id})),status:""},{root:!0}),n("diagramItem/processConnectorAndBroadcast",{id:m.map((function(t){return t.id})),status:""},{root:!0})})).catch(Slickplan.catchAll),t.promise}),i.constants.PROMISE_QUEUE_DIAGRAM_UPDATE),(d.element.length||d.connector.length)&&Slickplan.helpers.requestQueue((function(){var t=r.default.diagram.massUpdate(d.element,d.connector,c,h);return t.promise.catch(Slickplan.catchAll),t.promise}),i.constants.PROMISE_QUEUE_DIAGRAM_UPDATE),(f.element.length||f.connector.length)&&Slickplan.helpers.requestQueue((function(){var t=r.default.diagram.massDelete(f.element,f.connector,c,h);return t.promise.catch(Slickplan.catchAll),t.promise}),i.constants.PROMISE_QUEUE_DIAGRAM_UPDATE)},reloadAll:function(t,e){t.dispatch;var n=t.commit;n("diagram/add",e,{root:!0}),n("diagram/setCurrent",e.alias,{root:!0}),e.workflow&&n("diagram/setWorkflow",e.workflow,{root:!0}),n("diagramItem/cleanLoad",{elements:e.elements||[],connectors:e.connections||[]},{root:!0}),n("diagramItemData/cleanLoad",e.items_data||{},{root:!0}),n("diagramItemData/cleanLoad",e.items_data||{},{root:!0})}},mutations:{}}},3024:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(99016),i=n(2376),o=n.n(i),a=n(14580),s=n(52892);function l(t){var e={connectorsColors:[]};o()(t,(function(n,r){void 0!==e[r]?(0,s.setProp)(t,r,e[r]):(0,s.deleteProp)(t,r)}))}function c(t,e){var n=[];e.forEach((function(e){t[e]&&t[e][a.constants.DIAGRAM_ITEM_DATA_KEY_STROKE]&&n.push(t[e][a.constants.DIAGRAM_ITEM_DATA_KEY_STROKE].substring(1))})),t.connectorsColors=n.slice(0)}function u(t,e,n){var i=!1;o()(e,(function(e,n){e[a.constants.DIAGRAM_ITEM_DATA_KEY_STROKE]&&(i=!0),r.default.set(t,n,e)})),i&&c(t,n.diagramItem.connectors)}function d(t,e,n){var r=!1;Slickplan.helpers.castArray(n).forEach((function(e){var n=e.id,i=e.key,o=e.value;Slickplan.helpers.castArray(n).forEach((function(e){i===a.constants.DIAGRAM_ITEM_DATA_KEY_STROKE&&(r=!0),i===a.constants.DIAGRAM_ITEM_DATA_KEY_RATIO&&(o=parseFloat(o)),Slickplan.helpers.isBlank(o)?(0,s.deleteProp)(t,[e,i]):(0,s.setProp)(t,[e,i],o)}))})),r&&c(t,e.diagramItem.connectors)}var f={getItemData:function(t){return function(e,n){return t[e]?n?t[e][n]||null:t[e]:null}},getItemDataArray:function(t){return function(e){return t[e]?Object.keys(t[e]).map((function(n){return{key:n,value:String(t[e][n])}})):[]}}},p={clean:function(t){l(t)},load:function(t,e){u(t,e,this.state)},cleanLoad:function(t,e){l(t),u(t,e,this.state)},set:function(t,e){d(t,this.state,e)},setAndBroadcast:function(t,e){d(t,this.state,e),Slickplan.websocket.pushDiagram({itemData:Slickplan.helpers.castArray(e)})},delete:function(t,e){var n=e.id,r=e.key;Slickplan.helpers.castArray(n).forEach((function(e){(0,s.deleteProp)(t,[e,r])})),c(t,this.state.diagramItem.connectors)},clone:function(t,e){Object.keys(e).forEach((function(n){t[n]&&Object.keys(t[n]).length&&r.default.set(t,e[n],Slickplan.helpers.objectCloneDeep(t[n]))}))}};const m={namespaced:!0,state:{connectorsColors:[]},getters:f,actions:{},mutations:p}},27148:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>L});var r=n(99016),i=n(14580),o=n(52892);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==p(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}var m={};function h(t,e){for(var n=!1,r=-1,i=t.length,o=i-1;++r<i;o=r)(t[r].y<=e.y&&e.y<t[o].y||t[o].y<=e.y&&e.y<t[r].y)&&e.x<(t[o].x-t[r].x)*(e.y-t[r].y)/(t[o].y-t[r].y)+t[r].x&&(n=!n);return n}function v(t){var e={activeElement:"",elements:[],connectors:[],standaloneConnectors:[],magnetizedGroups:[],selectedItems:{elements:[],connectors:[]},selectedItemsType:"elements",usedMarkers:[],isSaving:[]};Object.keys(t).forEach((function(n){void 0!==e[n]?(0,o.setProp)(t,n,e[n]):(0,o.deleteProp)(t,n)}))}function b(t,e){e?t.selectedItemsType=e:t.selectedItems.elements.length&&t.selectedItems.connectors.length?t.selectedItemsType="mixed":t.selectedItems.connectors.length?t.selectedItemsType="connectors":1===t.selectedItems.elements.length&&t.selectedItems.elements[0]&&"object"===p(t[t.selectedItems.elements[0]])&&t[t.selectedItems.elements[0]].type===i.constants.DIAGRAM_ELEMENT_TEXT?t.selectedItemsType="text":t.selectedItemsType="elements"}function y(t){if(3===(t=Array.isArray(t)?t:String(t).split("-")).length)return t;var e=[i.constants.DIAGRAM_CONNECTOR_SOLID,i.constants.DIAGRAM_CONNECTOR_NONE,i.constants.DIAGRAM_CONNECTOR_NONE];switch(t[0]){case"arrownone":break;case"arrowfrom":e[1]=i.constants.DIAGRAM_CONNECTOR_ARROW;break;case"arrowboth":e[1]=e[2]=i.constants.DIAGRAM_CONNECTOR_ARROW;break;case"arrowtoblock":e[1]=i.constants.DIAGRAM_CONNECTOR_STOP,e[2]=i.constants.DIAGRAM_CONNECTOR_ARROW;break;case"arrowfromblock":e[1]=i.constants.DIAGRAM_CONNECTOR_ARROW,e[2]=i.constants.DIAGRAM_CONNECTOR_STOP;break;default:t[0]&&i.diagramConnectors.lines[t[0]]?(e[0]=t[0],t.length>1&&i.diagramConnectors.markers[t[1]]&&(e[1]=t[1])):e=i.diagramStructure.defaultLineType.slice(0)}return e}function g(){var t,e=(t=Slickplan.helpers).objectMergeDeep.apply(t,arguments),n=i.diagramElements[e.type];return e.width||(e.width=n.sizes.normal[0]),e.type&&n.aspectRatio?e.height=e.width*n.aspectRatio:e.height||(e.height=n.sizes.normal[1]),Object.keys(e).forEach((function(t){var n=e[t];"matrix"===t?e[t]=n.slice(-2).map((function(t){return Math.floor(t)})):"number"==typeof n&&(e[t]=Math.round(1e3*n)/1e3)})),e}function _(t,e,n,i){if(e&&t[e]){var o=!1,a=Slickplan.helpers.getValue(t[e],"connectors",[]).slice(0);n&&-1===a.indexOf(n)&&(a.push(n),o=!0),i&&-1!==a.indexOf(i)&&(a=a.filter((function(t){return i!==t})),o=!0),o&&r.default.set(t[e],"connectors",a)}}function S(t,e,n,r){var o,a={from:d({},e),to:d({},n)},s=Slickplan.helpers.getValue(e,"direction","right"),l=Slickplan.helpers.getValue(n,"direction","left");if(["from","to"].forEach((function(e){var n=a[e],i=n.id,s=n.direction,l=n.x,c=n.y;if(a[e]=[],i&&"none"!==i&&s){var u=t[i];u&&u.matrix&&(a[e][0]=u.matrix[0],a[e][1]=u.matrix[1],"up"===s||"down"===s?(a[e][0]+=u.width/2,"down"===s&&(a[e][1]+=u.height)):"left"!==s&&"right"!==s||(a[e][1]+=u.height/2,"right"===s&&(a[e][0]+=u.width)),a[e][0]=Math.round(a[e][0]),a[e][1]=Math.round(a[e][1]))}else"number"==typeof l&&"number"==typeof c?a[e]=[l,c]:r&&(o||(o=Array.isArray(r)?r:r.split(" ").map((function(t){return"string"==typeof t?t.split(","):t}))),a[e]="from"===e?o[0]:o[o.length-1])})),!a.from.length||!a.to.length){var c=Math.round(n.x),u=Math.round(n.y),f=u;"up"===s||"down"===s?(f+=i.diagramStructure.connectorElementOffset*("down"===s?-2:2),l=a.from.length&&f>a.from[1]?"up":"down"):l=a.from.length&&u-10>a.from[1]?"up":a.from.length&&u+10<a.from[1]?"down":"right",a.from.length||(a.from=[c,u]),a.to.length||(a.to=[c,u])}return{from:{x:Number(a.from[0]),y:Number(a.from[1]),id:e&&e.id?e.id:null,direction:s},to:{x:Number(a.to[0]),y:Number(a.to[1]),id:n&&n.id?n.id:null,direction:l}}}function C(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=[],a=null,s="down"===e.direction&&"up"===n.direction||"left"===e.direction&&"up"===n.direction||"left"===e.direction&&"down"===n.direction||"right"===e.direction&&"up"===n.direction||"right"===e.direction&&"down"===n.direction||"left"===e.direction&&"right"===n.direction,l=Slickplan.helpers.getValue(t,e.id)||d({width:2,height:2},e),c=Slickplan.helpers.getValue(t,n.id)||d({width:2,height:2},n);s&&(a=d({},c),c=d({},l),l=d({},a),a=d({},n),n=d({},e),e=d({},a)),o.push([e.x,e.y]);var u=i.diagramStructure.connectorElementOffset;if("down"===e.direction&&"up"===n.direction&&e.x===n.x&&e.y<n.y||"up"===e.direction&&"down"===n.direction&&e.x===n.x&&e.y>n.y||"left"===e.direction&&"right"===n.direction&&e.y===n.y&&e.x>n.x||"right"===e.direction&&"left"===n.direction&&e.y===n.y&&e.x<n.x);else if("up"===e.direction&&"up"===n.direction)if(e.y>=n.y){var f=e.y-n.y;o.push([e.x,e.y-f-u]),o.push([n.x,e.y-f-u])}else o.push([e.x,e.y-u]),o.push([n.x,e.y-u]);else if("up"===e.direction&&"down"===n.direction)if(e.y-2*u<n.y){if(o.push([e.x,e.y-u]),e.x<n.x){var p=e.x+l.width/2+2*u;if(n.x-c.width/2>p){var m=Math.round((n.x-e.x)/2);o.push([e.x+m,e.y-u]),o.push([e.x+m,n.y+u])}else{var h=Math.round(c.width/2)+u;o.push([n.x+h,e.y-u]),o.push([n.x+h,n.y+u])}}else{var v=e.x-l.width/2-2*u;if(n.x+c.width/2<v){var b=Math.round((e.x-n.x)/2);o.push([e.x-b,e.y-u]),o.push([e.x-b,n.y+u])}else{var y=Math.round(c.width/2)+u;o.push([n.x-y,e.y-u]),o.push([n.x-y,n.y+u])}}o.push([n.x,n.y+u])}else{var g=Math.round((e.y-n.y)/2);o.push([e.x,e.y-g]),o.push([n.x,e.y-g])}else if("up"===e.direction&&"left"===n.direction){var _=Math.round(c.height/2);if(e.x>n.x)if(n.y+_+2*u>=e.y){var S=Math.min(n.y-_-u,e.y-u);o.push([e.x,S]),o.push([n.x-u,S]),o.push([n.x-u,n.y])}else{var C=Math.round((e.y-(n.y+_))/2);o.push([e.x,e.y-C]),o.push([n.x-u,e.y-C]),o.push([n.x-u,n.y])}else if(n.y<e.y-u)o.push([e.x,n.y]);else{var k=Math.round((n.x-(e.x+l.width/2))/2);o.push([e.x,e.y-u]),o.push([n.x-k,e.y-u]),o.push([n.x-k,n.y])}}else if("up"===e.direction&&"right"===n.direction){var x=Math.round(c.height/2);if(e.x<n.x)if(n.y+x+2*u>=e.y){var w=Math.min(n.y-x-u,e.y-u);o.push([e.x,w]),o.push([n.x+u,w]),o.push([n.x+u,n.y])}else{var E=Math.round((e.y-(n.y+x))/2);o.push([e.x,e.y-E]),o.push([n.x+u,e.y-E]),o.push([n.x+u,n.y])}else if(n.y<e.y-u)o.push([e.x,n.y]);else{var O=Math.round((e.x-(n.x+c.width/2))/2);o.push([e.x,e.y-u]),o.push([n.x+O,e.y-u]),o.push([n.x+O,n.y])}}else if("down"===e.direction&&"down"===n.direction)if(e.y<=n.y){var D=n.y-e.y;o.push([e.x,e.y+D+u]),o.push([n.x,e.y+D+u])}else o.push([e.x,e.y+u]),o.push([n.x,e.y+u]);else if("down"===e.direction&&"left"===n.direction)if(e.x<n.x)if(n.y-u>=e.y)o.push([e.x,n.y]);else{var A=Math.round((n.x-(e.x+l.width/2))/2);o.push([e.x,e.y+u]),o.push([n.x-A,e.y+u]),o.push([n.x-A,n.y])}else{var T=Math.round(c.height/2);if(n.y-T-2*u<=e.y){var P=Math.max(n.y+T+u,e.y+u);o.push([e.x,P]),o.push([n.x-u,P]),o.push([n.x-u,n.y])}else o.push([e.x,e.y+u]),o.push([n.x-u,e.y+u]),o.push([n.x-u,n.y])}else if("down"===e.direction&&"right"===n.direction)if(n.x<e.x)if(n.y-u<e.y){var L=Math.round((e.x-l.width/2-n.x)/2);o.push([e.x,e.y+u]),o.push([n.x+L,e.y+u]),o.push([n.x+L,n.y])}else o.push([e.x,n.y]);else{var j=Math.round(c.height/2);if(n.y-j-2*u<=e.y){var I=Math.max(e.y+u,n.y+c.height/2+u);o.push([e.x,I]),o.push([n.x+u,I]),o.push([n.x+u,n.y])}else{var M=Math.round((n.y-c.height/2-e.y)/2);o.push([e.x,e.y+M]),o.push([n.x+u,e.y+M]),o.push([n.x+u,n.y])}}else if("left"===e.direction&&"left"===n.direction){var R=Math.min(e.x-u,n.x-u);o.push([R,e.y]),o.push([R,n.y])}else if("right"===e.direction&&"right"===n.direction){var N=Math.max(e.x+u,n.x+u);o.push([N,e.y]),o.push([N,n.y])}else if("right"===e.direction&&"left"===n.direction)if(n.x>e.x+2*u){var $=Math.round((n.x-e.x)/2);o.push([e.x+$,e.y]),o.push([e.x+$,n.y])}else{o.push([e.x+u,e.y]);var F=l.height/2,B=c.height/2,U=n.y+B+2*u;if(U<=e.y-F){var G=Math.round((e.y-F-(n.y+B))/2);o.push([e.x+u,e.y-F-G]),o.push([n.x-u,e.y-F-G]),o.push([n.x-u,n.y])}else{U=n.y-B-2*u;var H=Math.min(e.y-F-u,n.y-B-u);if(U<e.y+F)o.push([e.x+u,H]),o.push([n.x-u,H]),o.push([n.x-u,n.y]);else{var z=Math.round((n.y-B-(e.y+F))/2);o.push([e.x+u,e.y+F+z]),o.push([n.x-u,e.y+F+z]),o.push([n.x-u,n.y])}}}o.push([n.x,n.y]);var V=o.length-1,K=l.type?Slickplan.helpers.getValue(i.diagramElements,[l.type,"connector","offset",e.direction],0):0;if(K&&("up"===e.direction||"down"===e.direction?o[0][1]+=l.height*K:o[0][0]+=l.width*K),r){var W=s?e:n,q=s?0:V;"left"===W.direction?o[q][0]-=4:"right"===W.direction?o[q][0]+=3:"up"===W.direction?o[q][1]-=4:o[q][1]+=3}else{var Y=c.type?Slickplan.helpers.getValue(i.diagramElements,[c.type,"connector","offset",n.direction],0):0;Y&&("up"===n.direction||"down"===n.direction?o[V][1]+=c.height*Y:o[V][0]+=c.width*Y)}for(var X=0,Z=V+1;X<Z;++X)o[X]=o[X].join(",");return s&&(o=o.reverse()),o.join(" ")}function k(t,e){t.selectedItems.connectors=Slickplan.helpers.arrayDiff(t.selectedItems.connectors,e),t.selectedItems.elements=Slickplan.helpers.arrayDiff(t.selectedItems.elements,e)}function x(t){t.standaloneConnectors=t.connectors.filter((function(e){return t[e]&&"none"===t[e]["from-element"]&&"none"===t[e]["to-element"]}))}function w(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&e.id&&e.type){if(n||!e.points||"string"==typeof e.type&&-1===e.type.indexOf("-")){var i=S(t,{id:e["from-element"],direction:e["from-direction"],type:e.type[1]},{id:e["to-element"],direction:e["to-direction"],type:e.type[2]},e.points);e.points=C(t,i.from,i.to)}e.type=y(e.type);var o=-1===t.connectors.indexOf(e.id);o&&(t.connectors=a(new Set([e.id].concat(t.connectors)))),e.itemType="connector",r.default.set(t,e.id,e),["from-element","to-element"].forEach((function(n){_(t,e[n],e.id)})),o&&x(t)}}function E(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[].concat(e),o=!1;i.forEach((function(e){-1!==t.connectors.indexOf(e)&&(t.connectors=t.connectors.filter((function(t){return t!==e})),o=!0),e&&t[e]&&(n&&["from-element","to-element"].forEach((function(n){t[e]&&t[e][n]&&_(t,t[e][n],null,e)})),r.default.delete(t,e))})),k(t,i),o&&x(t)}function O(t,e,n){var i=t.state;t.rootState;if((e=Array.isArray(e)?e.filter((function(t){return t&&t.id})):e&&e.id?[e]:[]).length){var o=[];e.forEach((function(t){t.delete?i[t.id]&&o.push(t.id):i[t.id]?function(t,e){(e=Slickplan.helpers.objectMergeDeep(t[e.id],e)).type&&(e.type=y(e.type)),["from-element","to-element"].forEach((function(n){e[n]&&t[e.id][n]&&t[e.id][n]!==e[n]&&_(t,e[n],e.id,t[e.id][n])})),r.default.set(t,e.id,e)}(i,t):w(i,t)})),o.length&&E(i,o),n&&Slickplan.websocket.pushDiagram({connectors:e})}}function D(t,e){var n=[].concat(t.elements);[].concat(e).forEach((function(e){e&&e.id&&e.type&&i.diagramElements[e.type]&&(e.itemType||(e.itemType="element"),e.status||(e.status=""),e.order||(e.order=Math.max.apply(Math,a(t.elements.map((function(e){return t[e].order||0}))))+1),r.default.set(t,e.id,g(e)),n.push(e.id))})),t.elements=a(new Set(n))}function A(t,e,n){var i=t.state;if((e=Array.isArray(e)?e.filter((function(t){return t&&t.id})):e&&e.id?[e]:[]).length){var o=[];e.forEach((function(t){t.id&&(t.delete?o=o.concat(t.id):Slickplan.helpers.castArray(t.id).forEach((function(e){i[e]?function(t,e,n){e&&t[e]&&r.default.set(t,e,g(t[e],n,{id:e}))}(i,e,t):D(i,t)})))})),o.length&&(o=Slickplan.helpers.castArray(o).filter((function(t){return i[t]}))).length&&function(t,e){var n=[].concat(e);n.forEach((function(e){e&&t[e]&&(t[e].connectors&&Array.isArray(t[e].connectors)&&E(t,t[e].connectors),-1!==t.elements.indexOf(e)&&(t.elements=t.elements.filter((function(t){return t!==e}))),r.default.delete(t,e))})),k(t,n)}(i,o),n&&Slickplan.websocket.pushDiagram({elements:e})}}var T={draggingLine:function(t){var e=t.connectors.find((function(e){return e.startsWith(i.diagramStructure.linePlaceholderId)&&t[e]&&!t[e].fromWebsocket}));return!!e&&t[e]},sortedElements:function(t){return Slickplan.helpers.sortNumeric(t.elements.map((function(e){return{id:e,order:t[e]&&t[e].order||0}})),"order").map((function(t){return t.id}))},getElementData:function(t){return function(e,n,r){return Slickplan.helpers.getValue(t,n?[e,n]:e,r)}},getConnectorData:function(t){return function(e,n,r){return Slickplan.helpers.getValue(t,n?[e,n]:e,r)}},getConnectFromTo:function(t){return function(e,n,r){return S(t,e,n,r)}},getLinePointsFromTo:function(t){return function(e,n,r){return C(t,e,n,r)}}},P={clean:function(t){v(t)},cleanLoad:function(t,e){var n=e.elements,r=e.connectors;v(t),n&&D(t,n),r&&Slickplan.helpers.castArray(r).forEach((function(e){w(t,e,!0)}))},processElement:function(t,e){A({state:t,rootState:this.state},e)},processElementAndBroadcast:function(t,e){A({state:t,rootState:this.state},e,!0)},deleteElementAndBroadcast:function(t,e){A({state:t,rootState:this.state},[].concat(e).map((function(t){return{id:t,delete:!0}})),!0)},processConnector:function(t,e){O({state:t,rootState:this.state},e)},processConnectorAndBroadcast:function(t,e){O({state:t,rootState:this.state},e,!0)},deleteConnectorAndBroadcast:function(t,e){O({state:t,rootState:this.state},[].concat(e).map((function(t){return{id:t,delete:!0}})),!0)},setTextEdit:function(t,e){t.selectedItems.connectors=[],t.selectedItems.elements=[e],b(t,"text")},addToSelected:function(t,e){if(Array.isArray(e))e.length?(t.selectedItems.elements=e.filter((function(e){return t.elements.includes(e)})),t.selectedItems.connectors=e.filter((function(e){return t.connectors.includes(e)})),b(t)):(t.selectedItems.elements=[],t.selectedItems.connectors=[]);else{var n=t.connectors.includes(e)?"connectors":"elements";t.selectedItems[n]=a(new Set([].concat(t.selectedItems[n],e))),b(t)}},removeFromSelected:function(t,e){k(t,e)},selectAll:function(t){if("mixed"===t.selectedItemsType)t.selectedItems.elements=t.elements.slice(0),t.selectedItems.connectors=t.connectors.slice(0);else if("elements"===t.selectedItemsType||"text"===t.selectedItemsType)t.selectedItems.elements=t.elements.slice(0),t.selectedItems.connectors=t.standaloneConnectors.slice(0);else if("connectors"===t.selectedItemsType){Slickplan.helpers.arrayDiff(t.selectedItems.connectors,t.standaloneConnectors).length?(t.selectedItems.elements=[],t.selectedItems.connectors=Slickplan.helpers.arrayDiff(t.connectors,t.standaloneConnectors)):(t.selectedItems.elements=t.elements.slice(0),t.selectedItems.connectors=t.standaloneConnectors.slice(0))}b(t)},deselectAll:function(t){t.selectedItems.elements=[],t.selectedItems.connectors=[]},setCurrentElement:function(t,e){t.activeElement=e},refreshMagnetizedGroups:function(t){var e=this,n=[],r=t.elements.filter((function(e){return t[e]&&i.diagramElements[t[e].type].data.includes(i.constants.DIAGRAM_ITEM_DATA_KEY_MAGNETIZE)}));r.length&&r.filter((function(n){return n&&t[n]&&Slickplan.helpers.getValue(e.state.diagramItemData,[n,i.constants.DIAGRAM_ITEM_DATA_KEY_MAGNETIZE])})).forEach((function(e){var r=function(t,e,n){var r=n.x,i=n.y,o=n.width,a=n.height,l=n.scale,c=void 0===l?1:l;return{elements:t.elements.filter((function(n){return n!==e&&t[n]&&!(r*c>t[n].matrix[0]*c+t[n].width*c||r*c+o*c<t[n].matrix[0]*c||i*c>t[n].matrix[1]*c+t[n].height*c||i*c+a*c<t[n].matrix[1]*c)})).slice(0),connectors:t.standaloneConnectors.filter((function(e){var n=t[e].points.split(" ").map((function(t){return t.split(",").map((function(t){return parseInt(t,10)}))})),l=s(n[0],2),u=l[0],d=l[1],f=s(n[0],2),p=f[0],m=f[1];return n.forEach((function(t){u=Math.min(u,t[0]),d=Math.min(d,t[1]),p=Math.max(p,t[0]),m=Math.max(m,t[1])})),!(r*c>u*c+(p-u)*c||r*c+o*c<u*c||i*c>d*c+(m-d)*c||i*c+a*c<d*c)})).slice(0)}}(t,e,{x:t[e].matrix[0],y:t[e].matrix[1],width:t[e].width,height:t[e].height});if(r.elements.length||r.connectors.length){var i,o,l,c,u=[];if(c=document.querySelector("#".concat(e," > .shape")))for(l=c.getTotalLength(),i=0;i<20;i+=1)o=Math.max(0,Math.min(l,l/20*i)),o=c.getPointAtLength(o),u.push({x:o.x+t[e].matrix[0],y:o.y+t[e].matrix[1]});Object.keys(r).forEach((function(e){r[e]=r[e].filter((function(e){if(c=document.querySelector("#".concat(e," > .shape"))){for(l=c.getTotalLength(),i=0;i<20;i+=1)if(o=Math.max(0,Math.min(l,l/20*i)),o=c.getPointAtLength(o),t[e]&&t[e].matrix&&(o={x:o.x+t[e].matrix[0],y:o.y+t[e].matrix[1]}),h(u,o))return!0;return!1}return!0}))})),(r.elements.length||r.connectors.length)&&n.push({elements:a(new Set([e].concat(r.elements))),connectors:a(r.connectors)})}})),t.magnetizedGroups=n},clone:function(t,e){var n=e.connectors,r=e.elements,i=e.offsetX,o=e.offsetY,s=e.autoSelect,l=e.onSuccess,c={},u=[],d=[],f=Math.max.apply(Math,a(t.elements.map((function(e){return t[e].order||0}))));Slickplan.helpers.sortNumeric(Slickplan.helpers.castArray(r),"order").forEach((function(t){var e=Slickplan.helpers.objectCloneDeep(t);c[e.id]=Slickplan.helpers.uniqueId("svg"),e.id=c[e.id],e.matrix[0]+=i,e.matrix[1]+=o,e.order=++f,e.status="new",delete e.connectors,u.push(e)})),Slickplan.helpers.castArray(n).forEach((function(t){var e=Slickplan.helpers.objectCloneDeep(t);c[e.id]=Slickplan.helpers.uniqueId("svgpolyline"),e.id=c[e.id],e["from-element"]=c[e["from-element"]],e["to-element"]=c[e["to-element"]],e.status="new",delete e.points,d.push(e)})),u.length&&A({state:t,rootState:this.state},u,!0),d.length&&O({state:t,rootState:this.state},d,!0),s&&(t.selectedItems.elements=u.map((function(t){return t.id})).filter((function(e){return t.elements.includes(e)})),t.selectedItems.connectors=u.map((function(t){return t.id})).filter((function(e){return t.connectors.includes(e)})),b(t)),l&&l(u.map((function(t){return t.id})),d.map((function(t){return t.id})),c)},setItemsEditedBy:function(t,e){var n=e.user,i=e.items;[].concat(i).forEach((function(e){var i="object"===p(e)?e.id:e;m[i]&&clearTimeout(m[i]),r.default.set(t,i,Slickplan.helpers.objectMergeDeep(t[i],{editingBy:n})),m[i]=setTimeout((function(){r.default.set(t,i,Slickplan.helpers.objectMergeDeep(t[i],{editingBy:null}))}),2e3)}))},setOrderAndBroadcast:function(t,e){A({state:t,rootState:this.state},e.map((function(t,e){return{id:t,order:e+1}})),!0)}};const L={namespaced:!0,state:{activeElement:"",elements:[],connectors:[],standaloneConnectors:[],magnetizedGroups:[],selectedItems:{elements:[],connectors:[]},selectedItemsType:"elements",usedMarkers:[],isSaving:[]},getters:T,actions:{},mutations:P}},8e4:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(99016),i=n(14580);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){var r;return r=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==o(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e,n){t[e]&&r.default.set(t,e,Slickplan.helpers.objectMergeDeep(t[e],n))}var f={status:"all",sort:"updated_at_timestamp-desc",view:"grid",columns:3,search:null},p={getCurrentData:function(t){return Slickplan.helpers.getValue(t,t.currentId,{})},getCurrentBBox:function(t){return Slickplan.helpers.getValue(t,[t.currentId,"bbox"],{width:0,height:0,x:0,y:0})},getName:function(t){return function(e){return t[e]?t[e].title:""}},getList:function(t,e,n){return t.ids.map((function(e){var r,o=t[e],a=o.id,s=o.alias,l=o.title,c=o.cell_id,u=o.updated_at,d=o.updated_at_timestamp,f=o.workflow_status,p=o.users,m=o.comments,h=c&&n.sitemapCell[c]?n.sitemapCell[c][i.constants.CELL_DATA_KEY_LABEL]:"";return{id:a,alias:s,title:l,cell_id:c,cell_name:h,updated_at:u,updated_at_timestamp:d,workflow_status:f,users:p,comments:m,workflow_status_id:null===(r=t.workflow.find((function(t){return t.alias===f})))||void 0===r?void 0:r.id,keywords:Slickplan.helpers.normalizeKeywords("".concat(l," ").concat(h)).join(" "),url_thumb:"/project/".concat(Slickplan.globalVars.sitemapAlias,"/diagram/").concat(s,"/thumb?time=").concat(d)}}))},getFilters:function(t){var e={};return["status","search"].forEach((function(n){Slickplan.helpers.isBlank(t.filters[n])||t.filters[n]===f[n]||(e[n]=t.filters[n])})),e},getFilteredDiagrams:function(t,e){var n=Slickplan.helpers.objectCloneDeep(e.getList),r=e.getFilters;return Object.keys(r).length&&(n=n.filter((function(t){return(!r.status||t.workflow_status===r.status)&&(!r.search||r.search.every((function(e){return~t.keywords.indexOf(e)})))}))),n},getFilteredSortedDiagrams:function(t,e){var n=Slickplan.helpers.objectCloneDeep(e.getFilteredDiagrams),r=t.filters.sort.split("-");return Slickplan.helpers.sortSmart(n,r[0],r[1],"title")},getWorkflowStatuses:function(t){return t.workflow.find((function(t){return t.alias===i.constants.CONTENT_STATUS_UNASSIGNED}))?t.workflow:t.workflow.concat({alias:i.constants.CONTENT_STATUS_UNASSIGNED,name:"Unassigned",color:"#8f99a4"})}},m={add:function(t,e){var n=e.id,o=e.alias,s=e.bbox,l=e.updated_at,u=e.updated_at_timestamp,d=e.workflow;t.ids=a(new Set([].concat(t.ids,o))),d&&Array.isArray(d)&&(t.workflow=d.map((function(t){return c({name:t.label||t.name},t)}))),r.default.set(t,o,{id:n,alias:o,bbox:s,title:e.title||e.name,status:e.status||i.constants.STATUS_ACTIVE,logo:e.logo||0,cell_id:e.cell_id||(t[e.alias]?t[e.alias].cell_id:null),updated_at:l,updated_at_timestamp:u,meta:e.meta||{},workflow_status:e.workflow_status||null,users:e.users||[],comments:e.comments||0})},update:function(t,e){d(t,e.id,e.data)},updateCurrent:function(t,e){d(t,t.currentId,e)},remove:function(t,e){[].concat(e).forEach((function(e){t.ids=t.ids.filter((function(t){return t!==e})),r.default.delete(t,e)}))},setCurrent:function(t,e){t.currentId=e,Slickplan.globalVars.diagramAlias=e},showGhostSelect:function(t,e){t.ghostSelect.visible||(t.ghostSelect.visible=!0),e&&(t.ghostSelect.attrs=c({},e))},hideGhostSelect:function(t){t.ghostSelect.visible&&(t.ghostSelect.visible=!1)},refreshCurrentBBox:function(t){var e=document.getElementById("diagram-structure");if(e){e.classList.add("measuring");var n=document.getElementById("diagram-items").getBBox();e.classList.remove("measuring");var r=n.x,i=n.y,o=n.width,a=n.height;d(t,t.currentId,{bbox:{x:r,y:i,width:o,height:a}})}},setGrid:function(t,e){t.grid=!!e},setMode:function(t,e){t.mode=Array.isArray(e)?e.slice(0):e.startsWith("comment")?e.split(":"):["view"]},setScale:function(t,e){t.scale="number"==typeof e?e:1},setWorkflow:function(t,e){t.workflow=(e&&Array.isArray(e)?e:[]).map((function(t){return c({name:t.label||t.name},t)}))},setFilters:function(t,e){var n=e.key,r=e.value;"search"===n&&((r=Slickplan.helpers.normalizeKeywords(r)).length||(r=null)),null===r&&(r=f[n]),t.filters[n]!==r&&(t.filters=c(c({},t.filters),{},u({},n,r)))},resetFilters:function(t){t.filters=c(c({},f),{},{view:t.filters.view}),document.getElementById("field-filter-search").value=""}};const h={namespaced:!0,state:{ids:[],currentId:null,ghostSelect:{visible:!1,attrs:{width:0,height:0,x:0,y:0}},grid:!0,mode:"view",scale:1,workflow:[],filters:c({},f)},getters:p,actions:{},mutations:m}},18472:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.r(e),n.d(e,{default:()=>o});var i={reset:function(t){t.loaded=!1,t.files=[]},load:function(t,e){t.files=e.map((function(t){return t.normalizedFilename=Slickplan.helpers.normalizeString(t.filename||t.name),t})),t.files=Slickplan.helpers.sortNumeric(t.files,"date_timestamp","desc"),t.loaded=!0},update:function(t,e){var n=e.alias,r=e.data,i=t.files.findIndex((function(t){return t.alias===n}));i>=0&&t.files[i]&&(t.files[i]=Slickplan.helpers.objectMergeDeep(t.files[i],r),t.files=Slickplan.helpers.sortNumeric(t.files,"date_timestamp","desc"))},remove:function(t,e){var n=[].concat(e).map((function(t){return"object"===r(t)?t.alias||t.file_id:t}));n.length>1?t.files=t.files.filter((function(t){return!n.includes(t.alias)})):n.length&&(t.files=t.files.filter((function(t){return t.alias!==n[0]})))},setCellProperties:function(t,e){Object.keys(e).forEach((function(n){t.cellProperties[n]&&(t.cellProperties[n]=e[n])}))}};const o={namespaced:!0,state:{loaded:!1,files:[],cellProperties:{viewType:"list",displayTypes:"all",sortBy:"date_timestamp"}},getters:{},actions:{},mutations:i}},544:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(14580);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n,i,o,s,l=null!==(n=null===(i=t.sitemapCell[e.cell_id])||void 0===i?void 0:i[r.constants.CELL_DATA_KEY_LABEL])&&void 0!==n?n:"-";return a(a({},e),{},{cell_name:l,user_id:parseInt(e.user_id,10),section_id:null!==(o=null===(s=t.sitemapCell[e.cell_id])||void 0===s?void 0:s[r.constants.CELL_DATA_KEY_SECTION_ID])&&void 0!==o?o:r.constants.SITEMAP_SECTION_MAIN_ID,keywords:Slickplan.helpers.normalizeKeywords("".concat(l," ").concat(e.filename)).join(" ")})}function c(t,e,n){n&&t("comments/resetCounter",r.constants.COMMENTS_TYPE_FILE),e.forEach((function(e){t("comments/setCounter",{type:r.constants.COMMENTS_TYPE_FILE,id:e.cell_file_id,total:e.comments||0})}))}var u={user:"all",section:"all",status:"all",sort:"timestamp-desc",view:"grid",columns:3,search:null},d={getFilters:function(t){var e={};return["user","section","status","search"].forEach((function(n){Slickplan.helpers.isBlank(t.filters[n])||t.filters[n]===u[n]||(e[n]=t.filters[n])})),e},getSortedMockups:function(t){var e=Slickplan.helpers.objectCloneDeep(t.mockups);return Slickplan.helpers.sortNumeric(e,"order","asc","date_timestamp","desc")},getFilteredMockups:function(t,e){var n=Slickplan.helpers.objectCloneDeep(t.mockups),r=e.getFilters;return Object.keys(r).length&&(n=n.filter((function(t){return(!r.user||t.user_id===parseInt(r.user,10))&&(!r.section||t.section_id===r.section)&&(!r.status||t.status===r.status)&&(!r.search||r.search.every((function(e){return~t.keywords.indexOf(e)})))}))),n},getFilteredSortedMockups:function(t,e){var n=t.filters.sort.split("-");if("order"===n[0])return Slickplan.helpers.sortNumeric(e.getFilteredMockups,"order",n[1],"date_timestamp");return Slickplan.helpers.sortSmart(e.getFilteredMockups,{timestamp:"date_timestamp",name:"filename"}[n[0]],n[1],"cell_name")},getGroupedFilteredSortedMockups:function(t,e){var n={};e.getFilteredSortedMockups.forEach((function(t){n[t.cell_id]||(n[t.cell_id]={id:t.cell_id,name:t.cell_name,users:[t.user_id],date:t.updated_date||t.date,timestamp:t.updated_date_timestamp||t.date_timestamp,section_id:t.section_id,keywords:t.keywords,mockups:[]}),n[t.cell_id].mockups.push(t),t.updated_date_timestamp>n[t.cell_id].updated_date_timestamp&&(n[t.cell_id].date=t.updated_date,n[t.cell_id].timestamp=t.updated_date_timestamp),n[t.cell_id].users.includes(t.user_id)||n[t.cell_id].users.push(t.user_id)}));var r=t.filters.sort.split("-");return"order"===r[0]?Slickplan.helpers.sortSmart(Object.values(n),"timestamp","desc","name"):Slickplan.helpers.sortSmart(Object.values(n),r[0],r[1],"name")},getCurrentItems:function(t,e){var n={};return e.getGroupedFilteredSortedMockups.forEach((function(e){var r,i,o,a,s=null===(r=t.mockupsCurrent)||void 0===r?void 0:r[e.id],l=0;s?l=(l=e.mockups.findIndex((function(t){return t.cell_file_id===s})))>=0?l:0:s=null===(a=e.mockups)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.cell_file_id;n[e.id]={id:s,index:l,prevId:null===(i=e.mockups)||void 0===i||null===(i=i[l-1])||void 0===i?void 0:i.cell_file_id,nextId:null===(o=e.mockups)||void 0===o||null===(o=o[l+1])||void 0===o?void 0:o.cell_file_id}})),n},getGroupedFilteredSortedMockupsWithDetails:function(t,e,n){var i=Slickplan.helpers.objectCloneDeep(e.getCurrentItems);return Slickplan.helpers.objectCloneDeep(e.getGroupedFilteredSortedMockups).map((function(e){var o,a,s,l;return e.current=(null==i?void 0:i[e.id])||{},e.current.mockup=e.mockups[(null===(o=e.current)||void 0===o?void 0:o.index)||0],e.current.comments=(null===(a=n.comments.counter[r.constants.COMMENTS_TYPE_FILE][(null===(s=e.current)||void 0===s?void 0:s.id)||0])||void 0===a?void 0:a.total)||0,e.current.status=null!==(l=e.current.mockup)&&void 0!==l&&l.status?t.statuses[e.current.mockup.status]:null,e}))}},f={setPreviewVisible:function(t,e){t.isPreviewVisible="cell"===e?e:!!e},setFilters:function(t,e){var n=e.key,r=e.value;"search"===n&&((r=Slickplan.helpers.normalizeKeywords(r)).length||(r=null)),null===r&&(r=u[n]),t.filters[n]!==r&&(t.filters=a(a({},t.filters),{},s({},n,r)))},resetFilters:function(t){t.filters=a(a({},u),{},{view:t.filters.view}),document.getElementById("field-filter-search").value=""},setTeamId:function(t,e){var n=e.split("team/").pop().split("/").filter((function(t){return t}))[0];/^[0-9]+$/.test(n)&&(t.teamId=n)},setMockups:function(t,e){var n=this;t.mockups=Slickplan.helpers.sortNumeric(e.map((function(t){return l(n.state,t)})),"date_timestamp","asc"),c(this.commit,t.mockups,!0)},addMockups:function(t,e){var n=this;t.mockups=Slickplan.helpers.objectCloneDeep(t.mockups).concat(e.map((function(t){return l(n.state,t)}))),c(this.commit,e)},updateMockups:function(t,e){t.mockups=Slickplan.helpers.objectCloneDeep(t.mockups).map((function(t){var n=e.find((function(e){return e.cell_file_id===t.cell_file_id}));return n&&Object.assign(t,n),t})),c(this.commit,t.mockups,!0)},updateMockupsByAlias:function(t,e){var n=e.alias,r=e.data;t.mockups=Slickplan.helpers.objectCloneDeep(t.mockups).map((function(t){return t.alias===n?Slickplan.helpers.objectMergeDeep(t,r):t}))},removeMockups:function(t,e){var n=Slickplan.helpers.castArray(e);t.mockups=t.mockups.filter((function(t){return!n.includes(t.cell_file_id)})),c(this.commit,t.mockups,!0)},setStatuses:function(t,e){t.statuses=Slickplan.helpers.objectCloneDeep(e)},setPreviewData:function(t,e){e.mode&&(t.preview.mode=Array.isArray(e.mode)?e.mode.slice(0):e.mode.startsWith("comment")?e.mode.split(":"):["view"]),e.cellId&&(t.preview.cellId=e.cellId),e.mockupId&&(t.preview.mockupId="string"==typeof e.mockupId&&/^[0-9]+$/.test(e.mockupId)?parseInt(e.mockupId,10):e.mockupId)},setPreviewMode:function(t,e){t.preview.mode=Array.isArray(e)?e.slice(0):e.startsWith("comment")?e.split(":"):["view"]},setUploadBar:function(t,e){t.uploadBar="string"==typeof e&&e.length>5?e:!!e},setCurrentMockupForCell:function(t,e){var n=e.cellId,r=e.mockupId;t.mockupsCurrent=a(a({},t.mockupsCurrent),{},s({},n,r))},setLastModDate:function(t,e){var n=e.fileId,r=e.date;t.lastModDates=a(a({},t.lastModDates),{},s({},n,r))}};const p={namespaced:!0,state:{isPreviewVisible:!1,uploadBar:!1,filters:a({},u),teamId:"",mockups:[],mockupsCurrent:{},statuses:{},preview:{cellId:null,mockupId:null,mode:["view"]},lastModDates:{}},getters:d,actions:{},mutations:f}},30256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r,i=n(14580),o=n(52892);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l="default",c={visible:!1,visibleStatus:"hidden",overlay:!1,width:s({},l,i.constants.DEFAULT_PANEL_WIDTH),minWidth:i.constants.DEFAULT_PANEL_WIDTH,maxWidth:0,id:l,title:"",tabs:[],currentTab:null,buttons:[],selectedProperty:null,standalone:!1,notification:{type:"warning",text:null,note:null,html:null,buttons:null},component:{component:null,props:{},goingBack:!1},previewComponent:{component:null,props:{}},closeConfirm:null,onClose:null},u={getWidth:function(t,e,n){if(t.maxWidth===t.minWidth)return t.maxWidth;var r="overlay"===t.previewComponent.component?Math.floor(.95*n.core.windowSize.width):Math.floor(.5*n.core.windowSize.width);return t.maxWidth>t.minWidth&&(r=Math.min(t.maxWidth,r)),Math.min(r,Math.max(t.minWidth,Slickplan.helpers.getValue(t.width,t.id,t.width[l])))},isResizeable:function(t,e,n){return t.maxWidth>0&&t.maxWidth!==t.minWidth||t.maxWidth<=0&&t.minWidth<n.core.windowSize.width}},d={set:function(t,e){var n=t.dispatch;if(e&&"object"===a(e)){n("removeNotification"),n("setId",e.id),n("setMinWidth",e.minWidth),n("setMaxWidth",e.maxWidth),n("setTitle",e.title),n("setHighlight",e.highlight),n("setTabs",e.tabs),n("setCurrentTab",e.tabs&&e.tabs.length?e.tabs[0]:null);var r=e.currentTab||null;!r&&e.tabs&&e.tabs.length&&(r=e.tabs.find((function(t){return t.active}))||e.tabs.find((function(t){return t}))),n("setCurrentTab",r),n("setPreviewComponent",e.previewComponent),n("setCustomComponent",e.customComponent),n("setButtons",e.buttons),n("setStandalone",e.standalone),n("setVisible",e.visibility),n("setOnClose",e.onClose)}},setId:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_ID_SET,e||l)},setWidth:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_WIDTH_SET,"number"==typeof e?e:i.constants.DEFAULT_PANEL_WIDTH)},setMinWidth:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_MIN_WIDTH_SET,"number"==typeof e?e:i.constants.DEFAULT_PANEL_WIDTH)},setMaxWidth:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_MAX_WIDTH_SET,"number"==typeof e?e:0)},setTitle:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_TITLE_SET,e)},setTabs:function(t,e){var n=t.commit;n(i.mutationTypes.PANEL_PREVIEWS_SET,{}),n(i.mutationTypes.PANEL_TABS_SET,Slickplan.helpers.castArray(e))},setCurrentTab:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_CURRENT_TAB_SET,"object"===a(e)?e:{id:e})},setButtons:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_BUTTONS_SET,Slickplan.helpers.castArray(e))},setHighlight:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_HIGHLIGHT_SET,e||null)},setPreviewComponent:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_PREVIEWS_SET,e||{})},setVisible:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_VISIBILITY_SET,"boolean"==typeof e&&e)},setStandalone:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_STANDALONE_SET,"boolean"==typeof e&&e)},setOverlay:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_OVERLAY_SET,e)},setOnClose:function(t,e){(0,t.commit)("setOnClose",e)},removeOverlay:function(t){(0,t.commit)(i.mutationTypes.PANEL_OVERLAY_SET,!1)},setCustomComponent:function(t,e){(0,t.commit)(i.mutationTypes.PANEL_COMPONENT_SET,e||{})},setNotification:function(t,e){var n=t.commit;n(i.mutationTypes.PANEL_NOTIFICATION_SET,e),n(i.mutationTypes.PANEL_OVERLAY_SET,i.constants.PANEL_OVERLAY_NOTIFICATION)},removeNotification:function(t){var e=t.commit;e(i.mutationTypes.PANEL_NOTIFICATION_SET,!1),e(i.mutationTypes.PANEL_OVERLAY_SET,!1)}},f=(s(s(s(s(s(s(s(s(s(s(r={},i.mutationTypes.PANEL_ID_SET,(function(t,e){t.id=e})),i.mutationTypes.PANEL_WIDTH_SET,(function(t,e){(0,o.setProp)(t.width,t.id,Math.floor(e))})),i.mutationTypes.PANEL_MIN_WIDTH_SET,(function(t,e){t.minWidth=Math.floor(e),(!t.width[t.id]||t.width[t.id]<t.minWidth)&&(0,o.setProp)(t.width,t.id,t.minWidth)})),i.mutationTypes.PANEL_MAX_WIDTH_SET,(function(t,e){t.maxWidth=Math.floor(e),t.maxWidth>0&&t.width[t.id]&&t.width[t.id]>t.maxWidth&&(0,o.setProp)(t.width,t.id,t.maxWidth)})),i.mutationTypes.PANEL_TITLE_SET,(function(t,e){t.title=e})),i.mutationTypes.PANEL_CURRENT_TAB_SET,(function(t,e){var n;e?(n="number"==typeof e.id?t.tabs[e.id]:t.tabs.find((function(t){return t.id===e.id})))&&(e.props&&(n.props=e.props),t.currentTab=n.id):t.currentTab=null})),i.mutationTypes.PANEL_TABS_SET,(function(t,e){t.tabs=[],e.forEach((function(t){!t.id&&t.component&&t.component.name&&(t.id=t.component.name)})),t.tabs=e})),i.mutationTypes.PANEL_BUTTONS_SET,(function(t,e){t.buttons=e.reverse()})),i.mutationTypes.PANEL_HIGHLIGHT_SET,(function(t,e){t.selectedProperty=e})),i.mutationTypes.PANEL_PREVIEWS_SET,(function(t,e){var n=e.component,r=e.props;t.previewComponent.props=r||{},t.previewComponent.component=n||null})),s(s(s(s(s(s(s(s(s(r,i.mutationTypes.PANEL_VISIBILITY_SET,(function(t,e){t.visible=!!e,t.visible||(t.onClose=null)})),i.mutationTypes.PANEL_STANDALONE_SET,(function(t,e){t.standalone=!!e})),i.mutationTypes.PANEL_OVERLAY_SET,(function(t,e){t.overlay=e})),i.mutationTypes.PANEL_NOTIFICATION_SET,(function(t,e){t.notification={type:Slickplan.helpers.getValue(e,"type","warning"),text:"string"==typeof e?e:Slickplan.helpers.getValue(e,"text",null),note:Slickplan.helpers.getValue(e,"note",null),format:Slickplan.helpers.getValue(e,"format",null),buttons:Slickplan.helpers.getValue(e,"buttons",null)}})),i.mutationTypes.PANEL_COMPONENT_SET,(function(t,e){var n=e.component,r=e.props,i=e.goingBack;t.component.goingBack=!!i,t.component.props=r||{},t.component.component=n||null})),"closeConfirm",(function(t,e){var n=e.text;t.closeConfirm=n})),"setVisibleStatus",(function(t,e){t.visibleStatus=e})),"setOnClose",(function(t,e){t.onClose=e})),"closePanel",(function(t){"function"==typeof t.onClose?(t.onClose(t.id),t.onClose=null):t.visible=!1})));const p={namespaced:!0,state:c,getters:u,actions:d,mutations:f}},26464:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var r=n(2376),i=n.n(r),o=n(99016),a=n(62264),s=n.n(a),l=n(71995),c=n(52892);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=56,h=20,v={isHeaderVisible:function(t){return t.headerHeight===m},getImportFormData:function(t){return t.importForms["xml"===t.importCurrentForm?t.importSubType:t.importCurrentForm]},getExportFormData:function(t){var e=t.exportForms[t.exportCurrentForm];return e&&e.global?e[t.currentProjectType.project]?f(f({},e.global),e[t.currentProjectType.project]):e.global:e||{}}},b={loadPredefinedTemplates:function(t){var e=t.state,n=t.commit,r=e.predefinedTemplates,i=r.sitemap,o=r.diagram;i.length&&o.length||Slickplan.helpers.requestSingle((function(){var t=l.default.project.getResourceTemplates();return t.promise.then((function(t){"object"===u(t)&&t.sitemap&&t.diagram&&n("setPredefinedTemplates",t)})).catch(_noop),t}),"project/loadPredefinedTemplates")},setContributors:function(t,e){var n=t.commit,r=t.rootGetters;n("setContributors",(Array.isArray(e)?e.filter((function(t){return t&&t.id})):Object.keys(e)).map((function(t){var n=parseInt("object"===u(t)?t.id:t,10),i="object"===u(t)?(null==t?void 0:t.permissions)||t:e[t],o=Slickplan.helpers.sortString(Object.keys(i).filter((function(t){return!0===i[t]})));return{id:n,permissions:o,group:r["team/getGroupName"](o),seen:!(null==t||!t.seen_at_timestamp)}})))}},y={setSitemapsList:function(t,e){t.sitemapsList=Slickplan.helpers.sortString(e,"title")},setSearchQuery:function(t,e){t.search!==e&&(t.search=e||"")},setCurrentProjectType:function(t,e){t.currentProjectType=f({},e)},setContributors:function(t,e){t.contributors=Slickplan.helpers.objectCloneDeep(e).filter((function(t){return null==t?void 0:t.id}))},setCurrentImportForm:function(t,e){"wordpress"===e||"slickplan"===e||"google"===e||"xml"===e?(t.importCurrentForm="xml",t.importSubType="xml"===e?"slickplan":e):(t.importCurrentForm=e,t.importSubType="")},setCurrentExportForm:function(t,e){t.exportCurrentForm=e},setImportFormData:function(t,e){var n="xml"===t.importCurrentForm?t.importSubType:t.importCurrentForm;Object.keys(e).forEach((function(r){void 0!==t.importForms[n][r]&&o.default.set(t.importForms[n],r,e[r])}))},setExportFormData:function(t,e){i()(e,(function(e,n){var r=t.exportForms[t.exportCurrentForm];r.global?void 0!==r.global[n]?(0,c.setProp)(t.exportForms[t.exportCurrentForm].global,n,e):r[t.currentProjectType.project]&&void 0!==r[t.currentProjectType.project][n]&&(0,c.setProp)(t.exportForms[t.exportCurrentForm][t.currentProjectType.project],n,e):void 0!==r[n]&&(0,c.setProp)(t.exportForms[t.exportCurrentForm],n,e)}))},setHeaderVisibility:function(t,e){var n=e?"number"==typeof e?e:m:h;t.headerHeight!==n&&(t.headerHeight=n)},setSavedDate:function(t,e){var n;if(e&&e.type&&e.timestamp&&(null===(n=t.lastSaved[e.type])||void 0===n?void 0:n.timestamp)!==e.timestamp){var r=e.date,i=e.timestamp;t.lastSaved[e.type]={date:r,timestamp:i}}},setContainerSize:function(t,e){var n=e.width,r=e.height;n&&n>0&&n!==t.containerSize.width&&(t.containerSize.width=n),r&&r>0&&r!==t.containerSize.height&&(t.containerSize.height=r)},setDateRange:function(t,e){"object"===u(e)&&Object.keys(e).forEach((function(n){void 0!==t.dateRange[n]&&s().isDayjs(e[n])&&(t.dateRange[n]=e[n])}))},addSavingProcess:function(t,e){t.savingProcesses=[].concat(t.savingProcesses,e)},removeSavingProcess:function(t,e){var n=t.savingProcesses.findIndex((function(t){return t===e}));n>=0&&(delete t.savingProcesses[n],t.savingProcesses=t.savingProcesses.filter((function(t){return t})))},setPredefinedTemplates:function(t,e){var n=e.sitemap,r=e.diagram;n&&Array.isArray(n)&&n.length&&(t.predefinedTemplates.sitemap=n),r&&Array.isArray(r)&&r.length&&(t.predefinedTemplates.diagram=r)},setExportProjectType:function(t,e){var n="sitemap";t.exportProjectType=e===n||"diagram"===e?e:n},setScrollableCoords:function(t,e){if("boolean"==typeof e)t.scrollableCoordsEnabled=e;else{var n=e.x,r=e.y,i=e.sectionId;t.scrollableCoords[i||Slickplan.globalVars.sectionAlias]={x:n,y:r}}},setUndoRedoStatus:function(t,e){["sitemap","diagram"].forEach((function(n){["can_undo","can_redo"].forEach((function(r){var i="".concat(n,"_").concat(r);"boolean"==typeof e[i]&&(t.undoRedo[n][r]=e[i])}))}))}};const g={namespaced:!0,state:{savingProcesses:[],dateRange:{startDate:s()().subtract(2,"week"),endDate:s()()},search:"",headerHeight:m,contributors:[],currentProjectType:{},lastSaved:{sitemap:{date:"",timestamp:0},diagram:{date:"",timestamp:0}},undoRedo:{sitemap:{can_undo:!0,can_redo:!0},diagram:{can_undo:!0,can_redo:!0}},containerSize:{width:0,height:0},scrollableCoordsEnabled:!0,scrollableCoords:{},sitemapsList:[],predefinedTemplates:{sitemap:[],diagram:[]},exportProjectType:"sitemap",exportCurrentForm:"slickplan",importCurrentForm:"xml",importSubType:"slickplan",importForms:{slickplan:{file_id:0,file_name:"",file_size:0},wordpress:{file_id:0,file_name:"",file_size:0,add_links:0,import_metadata:0,import_content:0,set_project_settings:0,to_section:0,to_section_type:"new",to_section_id:"",post_types:["page","post"]},google:{file_id:0,file_name:"",file_size:0,cell_text:"title",add_links:0,meta_note:0,basic_auth:0,basic_auth_login:"",basic_auth_password:"",ignore_robots_txt:0,ignore_cookies:0,custom_user_agent:0,custom_user_agent_string:window.navigator.userAgent,import_metadata:0,remove_title_text:0,remove_title_text_string:"",parse_javascript:0,to_section:0,to_section_type:"new",to_section_id:"",requests_limit:0},crawler:{url:"",cell_text:"title",follow_mode:2,filter_dirty_urls:1,add_links:0,meta_note:0,limit:0,pages_limit:100,filters:0,filter_follow:"",filter_exclude:"",basic_auth:0,basic_auth_login:"",basic_auth_password:"",ignore_robots_txt:0,ignore_cookies:0,custom_user_agent:0,custom_user_agent_string:window.navigator.userAgent,import_metadata:0,remove_title_text:0,remove_title_text_string:"",parse_javascript:0,to_section:0,to_section_type:"new",to_section_id:"",requests_limit:0},text:{file_id:0,file_name:"",file_size:0,file_content:"",file_type:"upload",to_section:0,to_section_type:"new",to_section_id:""},template:{template_id:null},ai:{prompt:"",language:"",counter:"1-10"}},exportForms:{pdf:{global:{paper:"LETTER",landscape:!1,fit_to_page:!1,header_logo:!1,header_date:!0,header_project_name:!0,include_comments:!1,monochromatic:!1,embed_font:!1},sitemap:{header_page_count:!1,include_diagrams:!1,include_archetypes:!1,include_links:!1,include_notes:!1,legend_archetypes:!1,page_numbering:!1,exclude_collapsed_pages:!1}},image:{global:{image_type:"png",paper:"LETTER",landscape:!1,fit_to_page:!1,header_logo:!1,header_date:!0,header_project_name:!0,monochromatic:!1,embed_font:!1},sitemap:{header_page_count:!1,include_diagrams:!1,include_archetypes:!1,page_numbering:!1,exclude_collapsed_pages:!1,legend_archetypes:!1}},html:{include_notes:!1,include_css:!0,page_numbering:!1,exclude_collapsed_pages:!1},csv:{csv_columns:["seo","content_status","page_type","link","notes"],page_numbering:!1,exclude_collapsed_pages:!1,filter_page_language:!1,filter_page_language_string:""},text:{exclude_collapsed_pages:!1},docx:{include_seo_metadata:!0,include_content_labels:!1,page_numbering:!1,exclude_collapsed_pages:!1,filter_page_status:!1,filter_page_status_string:"",filter_page_language:!1,filter_page_language_string:""},website:{exclude_collapsed_pages:!1}}},getters:v,actions:b,mutations:y}},24880:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(14580),i={cellsByParents:{},cells:{},home:null,cellsSize:{},run:function(t,e,n){var i=Slickplan.helpers.boxCellUi(n.sitemap.details.meta).boxSize;this.cellsSize={width:Slickplan.sitemapCellsMath.CELL_WIDTH[i],height:Slickplan.sitemapCellsMath.CELL_HEIGHT[i]},this.cellsByParents=t;var o=this.getChilds(r.constants.CELL_LEVEL_HOME);return this.home=o.length?o[0]:r.constants.CELL_LEVEL_MAIN,o.length?this.home=o[0]:(this.home=r.constants.CELL_LEVEL_MAIN,o=this.getChilds(this.home)),this.initializeNode(1,this.home),this.firstWalk(this.home),this.secondWalk(this.home,0,this.home===r.constants.CELL_LEVEL_MAIN?-1:0),this.cells},initializeNode:function(t,e,n,r,i,o){this.cells[e]={index:t,prelim:0,modChild:0,shiftNode:0,shiftDelta:0,ancestor:e,thread:null,parent:n||null,leftMostSibling:o||null,prevSibling:r||null,nextSibling:i||null,hasChilds:0};var a=this.getChilds(e);if(a.length){this.cells[e].hasChilds=a.length;for(var s=0;s<this.cells[e].hasChilds;++s)this.initializeNode(s+1,a[s],e,a[s-1],a[s+1],a[0])}},firstWalk:function(t){var e=this.getChilds(t);if(e.length){for(var n=e[0],r=0,i=e.length;r<i;++r)this.firstWalk(e[r]),n=this.apportion(e[r],n);this.executeShifts(t);var o=this.cells[e[0]],a=this.cells[e[e.length-1]],s=(o.prelim+a.prelim)/2,l=this.cells[t].prevSibling;l?(this.cells[t].prelim=this.cells[l].prelim+Slickplan.sitemapCellsMath.MAIN_GAP_HORIZONTAL+this.getWidth(t)/2+this.getWidth(l)/2,this.cells[t].modChild=this.cells[t].prelim-s):this.cells[t].prelim=s}else{this.cells[t].prelim=0;var c=this.cells[t].prevSibling;c&&(this.cells[t].prelim=this.cells[c].prelim+Slickplan.sitemapCellsMath.MAIN_GAP_HORIZONTAL+this.getWidth(t)/2+this.getWidth(c)/2)}},secondWalk:function(t,e,n){this.cells[t].x=this.cells[t].prelim+e,this.cells[t].y=n*(this.cellsSize.height+Slickplan.sitemapCellsMath.MAIN_GAP_TREE_BEFORE_CHILDS);var r=this.getChilds(t);if(r.length){e+=this.cells[t].modChild;for(var i=0,o=r.length;i<o;++i)this.secondWalk(r[i],e,n+1)}},apportion:function(t,e){var n=this.cells[t].prevSibling;if(n){for(var r=t,i=t,o=n,a=this.cells[r].leftMostSibling,s=this.cells[r].modChild,l=this.cells[i].modChild,c=this.cells[o].modChild,u=this.cells[a].modChild,d=this.nextRight(o),f=this.nextLeft(r);d&&f;){o=d,r=f,a=this.nextLeft(a),i=this.nextRight(i),this.cells[i].ancestor=t;var p=this.cells[o].prelim+c-(this.cells[r].prelim+s)+Slickplan.sitemapCellsMath.MAIN_GAP_TREE_BETWEEN_GROUPS+this.getWidth(o)/2+this.getWidth(r)/2;p>0&&(this.moveSubtree(this.findAncestor(o,t,e),t,p),s+=p,l+=p),s+=this.cells[r].modChild,l+=this.cells[i].modChild,c+=this.cells[o].modChild,u+=this.cells[a].modChild,d=this.nextRight(o),f=this.nextLeft(r)}d&&!this.nextRight(i)&&(this.cells[i].thread=d,this.cells[i].modChild+=c-l),f&&!this.nextLeft(a)&&(this.cells[a].thread=f,this.cells[a].modChild+=s-u,e=t)}return e},executeShifts:function(t){var e=0,n=0,r=this.getChilds(t);if(r.length){(r=r.slice(0)).reverse();for(var i=0,o=r.length;i<o;++i)this.cells[r[i]].prelim+=e,this.cells[r[i]].modChild+=e,n+=this.cells[r[i]].shiftDelta,e+=this.cells[r[i]].shiftNode+n}},findAncestor:function(t,e,n){return this.cells[this.cells[t].ancestor].parent===this.cells[e].parent?this.cells[t].ancestor:n},moveSubtree:function(t,e,n){var r=n/(this.cells[e].index-this.cells[t].index);this.cells[e].shiftDelta-=r,this.cells[e].shiftNode+=n,this.cells[t].shiftDelta+=r,this.cells[e].prelim+=n,this.cells[e].modChild+=n},nextLeft:function(t){var e=this.getChilds(t);return e.length?e[0]:this.cells[t].thread},nextRight:function(t){var e=this.getChilds(t);return e.length?e[e.length-1]:this.cells[t].thread},getChilds:function(t){return t=t===r.constants.CELL_LEVEL_HOME?r.constants.CELL_LEVEL_HOME:t===this.home?r.constants.CELL_LEVEL_MAIN:t,Slickplan.helpers.getValue(this.cellsByParents,t,[])},getWidth:function(t){return this.cellsSize.width+(this.cells[t].hasChilds>1&&t!==r.constants.CELL_LEVEL_HOME&&t!==this.home?Slickplan.sitemapCellsMath.MAIN_GAP_HORIZONTAL:0)}};function o(){return i.run.apply(i,arguments)}},65152:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(99016),i=n(24880),o=n(14580);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(){return s(s(s({},o.constants.CELL_LEVEL_MAIN,{minX:1/0,minY:1/0,maxX:0,maxY:0}),o.constants.CELL_LEVEL_UTIL,{minX:1/0,minY:1/0,maxX:0,maxY:0}),o.constants.CELL_LEVEL_FOOT,{minX:1/0,minY:1/0,maxX:0,maxY:0})}const c={lines:[],treeNodes:{},calculated:l(),getCellsSize:function(t,e){var n=Slickplan.helpers.boxCellUi(e.sitemap.details.meta).boxSize;return{width:Slickplan.sitemapCellsMath.CELL_WIDTH[n],height:Slickplan.sitemapCellsMath.CELL_HEIGHT[n]}},setCellCoords:function(t,e,n,i){if(t[e]){var a=Slickplan.helpers.getValue(t,[e,o.constants.CELL_DATA_KEY_LEVEL],o.constants.CELL_LEVEL_MAIN);a===o.constants.CELL_LEVEL_HOME&&(a=o.constants.CELL_LEVEL_MAIN),t[e].x!==n&&r.default.set(t[e],"x",n),t[e].y!==i&&r.default.set(t[e],"y",i),this.calculated[a]&&(this.calculated[a].minX=Math.min(this.calculated[a].minX,n),this.calculated[a].minY=Math.min(this.calculated[a].minY,i),this.calculated[a].maxX=Math.max(this.calculated[a].maxX,n),this.calculated[a].maxY=Math.max(this.calculated[a].maxY,i))}},calculateStructureSize:function(t,e,n){var i=this,a=this.getCellsSize(t,e);[].concat(n).forEach((function(n){var s=i.calculated[n];s.realWidth=s.maxX+a.width-(s.minX===1/0?0:s.minX)+Slickplan.sitemapCellsMath.PAGE_MARGIN_LEFT+Slickplan.sitemapCellsMath.PAGE_MARGIN_RIGHT,s.width=Math.max(e.core.windowSize.width,s.realWidth),s.width%2!=0&&(s.width-=1),s.height=s.maxY+a.height-(s.minY===1/0?0:s.minY),n===o.constants.CELL_LEVEL_UTIL?s.height+=Slickplan.sitemapCellsMath.PAGE_MARGIN_BOTTOM:n===o.constants.CELL_LEVEL_FOOT?s.height+=Slickplan.sitemapCellsMath.PAGE_MARGIN_TOP:(s.height+=Slickplan.sitemapCellsMath.PAGE_MARGIN_TOP+Slickplan.sitemapCellsMath.PAGE_MARGIN_BOTTOM,n===o.constants.CELL_LEVEL_MAIN&&(s.height+=26)),r.default.set(t.structureSize,n,s)}))},calculateCells:function(t,e,n){var r=this.getCellsSize(t,e);if(this.calculated=l(),n===o.constants.SITEMAP_ORIENTATION_TREE)this.calculateCellsTree(t,e);else if(n===o.constants.SITEMAP_ORIENTATION_VERTICAL){var i=t.cellsByParents[o.constants.CELL_LEVEL_HOME];this.calculateCellsVerticalTree(t,e,i&&i.length?o.constants.CELL_LEVEL_HOME:o.constants.CELL_LEVEL_MAIN,0,0)}else{var a=t.cellsByParents[o.constants.CELL_LEVEL_HOME],s=this.calculateCellsHorizontal(t,e,o.constants.CELL_LEVEL_MAIN,0,a&&a.length?r.height+Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_BEFORE_CHILDS:0);if(a&&a.length){var c=(s.maxX+r.width)/2-r.width/2;s.cells.length%2&&(c=Slickplan.helpers.getValue(s.cells,[Math.floor(s.cells.length/2),"x"],c)),this.calculateCellsHorizontal(t,e,o.constants.CELL_LEVEL_HOME,c,0)}}this.calculateStructureSize(t,e,o.constants.CELL_LEVEL_MAIN),this.calculateCellsUtilFoot(t,e,o.constants.CELL_LEVEL_UTIL),this.calculateCellsUtilFoot(t,e,o.constants.CELL_LEVEL_FOOT),this.calculateStructureSize(t,e,[o.constants.CELL_LEVEL_UTIL,o.constants.CELL_LEVEL_FOOT])},calculateCellsUtilFoot:function(t,e,n){for(var r=this.getCellsSize(t,e),i=Slickplan.sitemapCellsMath,a=i.PAGE_MARGIN_TOP,s=i.PAGE_MARGIN_LEFT,l=i.PAGE_MARGIN_RIGHT,c=i.UTIL_GAP_HORIZONTAL,u=i.UTIL_GAP_VERTICAL,d=t.cellsByParents[n]||[],f=this.calculated[o.constants.CELL_LEVEL_MAIN].width-s-l,p=Math.floor((f+c)/(r.width+c)),m={width:0,height:0,maxWidth:f},h=Slickplan.helpers.arrayChunk(d,p),v=n===o.constants.CELL_LEVEL_FOOT?a:0,b=0,y=h.length;b<y;b+=1){for(var g=h[b].length,_=s,S=0;S<g;S+=1)this.setCellCoords(t,h[b][S],_,v),_+=r.width+c,m.width=Math.max(m.width,_-c+l);v+=r.height+u,m.height=Math.max(m.height,v-u)}},calculateCellsVerticalTree:function(t,e,n){for(var r=this.getCellsSize(t,e),i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];var l=a[0],c=a[1],u=!1,d=t.cellsByParents[n];if(d&&d.length)for(var f=0,p=d.length;f<p;f+=1){f>0&&(c+=r.height+(u?Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_AFTER_CHILDS:Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL)),this.setCellCoords(t,d[f],l,c);var m=n===o.constants.CELL_LEVEL_HOME?o.constants.CELL_LEVEL_MAIN:d[f];if(m!==o.constants.CELL_LEVEL_UTIL&&m!==o.constants.CELL_LEVEL_FOOT&&t.cellsByParents[m])u=!0,c=this.calculateCellsVerticalTree(t,e,m,l+r.width/3.5+Slickplan.sitemapCellsMath.MAIN_CHILD_INDENT,c+r.height+Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_BEFORE_CHILDS).y}return{x:l,y:c}},calculateCellsVertical:function(t,e,n,r,i){for(var a=this.getCellsSize(t,e),s=!1,l=0,c=t.cellsByParents[n].length;l<c;l++){l>0&&(i+=a.height+(s?Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_AFTER_CHILDS:Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL)),this.setCellCoords(t,t.cellsByParents[n][l],r,i);var u=n===o.constants.CELL_LEVEL_HOME?o.constants.CELL_LEVEL_MAIN:t.cellsByParents[n][l];if(u!==o.constants.CELL_LEVEL_UTIL&&u!==o.constants.CELL_LEVEL_FOOT&&t.cellsByParents[u])s=!0,i=this.calculateCellsVertical(t,e,u,r+Slickplan.sitemapCellsMath.MAIN_CHILD_INDENT,i+a.height+Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_BEFORE_CHILDS).y}return{x:r,y:i}},calculateCellsHorizontal:function(t,e,n,r,i){var a=this.getCellsSize(t,e),s=r,l=!1,c=[];if(n!==o.constants.CELL_LEVEL_MAIN&&n!==o.constants.CELL_LEVEL_UTIL&&n!==o.constants.CELL_LEVEL_FOOT&&n!==o.constants.CELL_LEVEL_HOME&&(r+=Slickplan.sitemapCellsMath.MAIN_CHILD_INDENT),t.cellsByParents[n])for(var u=0,d=t.cellsByParents[n].length;u<d;u++){if(n===o.constants.CELL_LEVEL_MAIN?r=u>0?s+a.width+Slickplan.sitemapCellsMath.MAIN_GAP_HORIZONTAL:0:n!==o.constants.CELL_LEVEL_UTIL&&n!==o.constants.CELL_LEVEL_FOOT&&n!==o.constants.CELL_LEVEL_HOME&&(i+=a.height+(u>0?l?Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_AFTER_CHILDS:Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL:Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_BEFORE_CHILDS)),c.push({x:r,y:i}),this.setCellCoords(t,t.cellsByParents[n][u],r,i),n!==o.constants.CELL_LEVEL_HOME&&t.cellsByParents[t.cellsByParents[n][u]]){l=!0;var f=this.calculateCellsHorizontal(t,e,t.cellsByParents[n][u],r,i);n!==o.constants.CELL_LEVEL_MAIN&&(i=f.y),s=Math.max(s,f.maxX,f.x)}s=Math.max(s,r)}return{x:r,y:i,maxX:s,cells:c}},calculateCellsTree:function(t,e){var n=this,r=(0,i.default)(t.cellsByParents,t,e),a=Object.keys(r).filter((function(t){return t!==o.constants.CELL_LEVEL_MAIN&&t!==o.constants.CELL_LEVEL_HOME})),s={x:0,y:0};a.forEach((function(t){var e=r[t],n=e.x,i=e.y;n<0&&(s.x=Math.max(s.x,Math.abs(n))),i<0&&(s.y=Math.max(s.y,Math.abs(i)))})),a.forEach((function(e){n.setCellCoords(t,e,r[e].x+s.x,r[e].y+s.y)}))},calculateLines:function(t,e,n){this.lines=[];var i=e.sitemapSection.currentId;if(i&&t.cellsBySections[i]){var a=t.cellsByParents[o.constants.CELL_LEVEL_HOME]?[].concat(t.cellsByParents[o.constants.CELL_LEVEL_HOME]).shift():null,s=t.cellsByParents[o.constants.CELL_LEVEL_MAIN]||[];if(n===o.constants.SITEMAP_ORIENTATION_VERTICAL){for(var l=0,c=t.cellsBySections[i].length;l<c;l++){var u=t.cellsBySections[i][l],d=t.cellsBySections[i][l]===a?s:t.cellsByParents[u];d&&this.calculateLinesVerticalChilds(t,e,u,d)}!a&&s.length>1&&this.calculateLinesVertical(t,e,s)}else if(n===o.constants.SITEMAP_ORIENTATION_TREE)this.calculateLinesHorizontal(t,e,a,s,!0,n===o.constants.SITEMAP_ORIENTATION_TREE);else{this.calculateLinesHorizontal(t,e,a,s);for(var f=0,p=t.cellsBySections[i].length;f<p;f++){var m=t.cellsBySections[i][f],h=t.cellsByParents[m];h&&this.calculateLinesVerticalChilds(t,e,m,h)}}}r.default.set(t,"lines",this.lines.join(" "))},calculateLinesHorizontal:function(t,e,n,r,i,a){var s=this.getCellsSize(t,e);if(r){for(var l=r.length,c=0,u=a?Slickplan.sitemapCellsMath.MAIN_GAP_TREE_BEFORE_CHILDS:Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_BEFORE_CHILDS,d=0;d<l;d++){var f=0===d,p=d===l-1,m=Slickplan.helpers.getValue(t,[r[d],"x"],0),h=Slickplan.helpers.getValue(t,[r[d],"y"],0);c=Slickplan.helpers.getValue(t,[r[d],o.constants.CELL_DATA_KEY_SUBSECTION])?11:0;var v=m+s.width/2,b=h-u/2;f&&p||(f?this.addLinePath("M",v,h+c,"V",b+Slickplan.sitemapCellsMath.LINE_CURVE,"Q",v,b,v+Slickplan.sitemapCellsMath.LINE_CURVE,b):p?this.addLinePath("H",v-Slickplan.sitemapCellsMath.LINE_CURVE,"Q",v,b,v,b+Slickplan.sitemapCellsMath.LINE_CURVE,"V",h+c):this.addLinePath("H",v,"V",h+c,"M",v,b))}if(n){var y=Slickplan.helpers.getValue(t,[n,"x"],0),g=Slickplan.helpers.getValue(t,[n,"y"],0),_=y+s.width/2,S=g+s.height;this.addLinePath("M",_,S,"V",1===l?S+u+c:S+u/2)}if(i)for(var C=0,k=r.length;C<k;C++)this.calculateLinesHorizontal(t,e,r[C],t.cellsByParents[r[C]],i,a)}},calculateLinesVertical:function(t,e,n,r,i){for(var o=this.getCellsSize(t,e),a=0,s=n.length;a<s;a++){var l=0===a,c=a===s-1,u=Slickplan.helpers.getValue(t,[n[a],"x"],0),d=Slickplan.helpers.getValue(t,[n[a],"y"],0),f=u-Slickplan.sitemapCellsMath.MAIN_GAP_HORIZONTAL_BEFORE_CHILDS/2,p=d+o.height/2;if(l)if(r){var m=Slickplan.helpers.getValue(t,[r,"x"],0),h=Slickplan.helpers.getValue(t,[r,"y"],0);this.addLinePath("M",m+o.width,h+o.height/2,"H",u,"M",f,h+o.height/2)}else this.addLinePath("M",u,p,"H",u-Slickplan.sitemapCellsMath.LINE_CURVE,"Q",f,p,f,p+Slickplan.sitemapCellsMath.LINE_CURVE);else l||c?c&&this.addLinePath("V",p-Slickplan.sitemapCellsMath.LINE_CURVE,"Q",f,p,f+Slickplan.sitemapCellsMath.LINE_CURVE,p,"H",u):this.addLinePath("V",p,"H",u,"M",f,p)}if(i)for(var v=0,b=n.length;v<b;v++)t.cellsByParents[n[v]]&&this.calculateLinesVertical(t,e,t.cellsByParents[n[v]],n[v],i)},calculateLinesVerticalChilds:function(t,e,n,r){for(var i=this.getCellsSize(t,e),o=Slickplan.helpers.getValue(t,[n,"x"],0),a=Slickplan.helpers.getValue(t,[n,"y"],0),s=o+i.width/2,l=a+i.height,c=l+Slickplan.sitemapCellsMath.MAIN_GAP_VERTICAL_BEFORE_CHILDS/2,u=null,d=r.length,f=0;f<d;f++){var p=Slickplan.helpers.getValue(t,[r[f],"x"],0),m=Slickplan.helpers.getValue(t,[r[f],"y"],0)+i.height/2;0===f&&(u=p-Slickplan.sitemapCellsMath.MAIN_CHILD_INDENT,this.addLinePath("M",u,c+Slickplan.sitemapCellsMath.LINE_CURVE)),f!==d-1?this.addLinePath("V",m,"H",p,"M",u,m):this.addLinePath("V",m-Slickplan.sitemapCellsMath.LINE_CURVE,"Q",u,m,u+Slickplan.sitemapCellsMath.LINE_CURVE,m,"H",p)}this.addLinePath("M",s,l,"V",c-Slickplan.sitemapCellsMath.LINE_CURVE,"Q",s,c,s-Slickplan.sitemapCellsMath.LINE_CURVE,c,"H",u+Slickplan.sitemapCellsMath.LINE_CURVE,"Q",u,c,u,c+Slickplan.sitemapCellsMath.LINE_CURVE)},addLinePath:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.lines.push([].concat(e).map((function(t){return"string"==typeof t?t:Math.floor(t)+.5})).join(" "))}}},55464:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>P});var r,i=n(2376),o=n.n(i),a=n(99016),s=n(14580),l=n(52892),c=n(65152);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){var r;return r=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y={minX:1/0,minY:1/0,maxX:0,maxY:0,width:0,height:0};function g(){return{cells:[],cellsHidden:[],cellsByParents:{},cellsBySections:{},cellsByParentsWithHidden:{},cellsBySectionsWithHidden:{},colorsPropsIteration:0,isHomeCellPresent:!1,currentCellId:"",activeCell:null,lines:"",dragging:{id:null,from:null,to:null,type:null,clone:null},newCell:null,loaded:!1,structureSize:b(b(b({},s.constants.CELL_LEVEL_MAIN,v({},y)),s.constants.CELL_LEVEL_UTIL,v({},y)),s.constants.CELL_LEVEL_FOOT,v({},y)),selectedCells:[],selectedSections:[],selectedCellsWithChilds:[],websocketEditingBy:{}}}function _(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=[];o=!!Array.isArray(o)&&o;for(var c=function(c){var u={id:n[c],text:Slickplan.helpers.getValue(t,[n[c],s.constants.CELL_DATA_KEY_LABEL])};a&&Array.isArray(a)&&a.length&&a.forEach((function(e){var r=Slickplan.helpers.getValue(t,[n[c]].concat(e));void 0!==r&&(u[Array.isArray(e)?e[0]:e]=r)})),o&&o.includes(n[c])&&(u.disabled=!0);var d=e.filter((function(e){return Slickplan.helpers.getValue(t,[e,s.constants.CELL_DATA_KEY_PARENT_ID])===n[c]}));r?(i>1&&"string"==typeof r&&(u.text="".concat(r.repeat(i-1)," ").concat(u.text)),l.push(u),d.length&&l.push.apply(l,f(_(t,e,d,r,i+1,o,a)))):(d.length?u.childs=_(t,e,d,null,1,o,a):u.childs=[],l.push(u))},u=0,d=n.length;u<d;++u)c(u);return l}var S=[];function C(t,e){if(t.cellsBySections[e]){S.push(e);for(var n=0,r=t.cellsBySections[e].length;n<r;++n){var i=Slickplan.helpers.getValue(t,[t.cellsBySections[e][n],s.constants.CELL_DATA_KEY_SUBSECTION]);i&&":"!==i.charAt(4)&&!S.includes(i)&&C(t,i)}}return S}function k(t,e,n){if(t){if("string"==typeof t&&n===s.constants.CELL_DATA_KEY_BG_COLOR)return t;if(t[e])return t[e]}}function x(t,e){var n=[];if(t[e])for(var r=0,i=t[e].length;r<i;++r)n=[].concat(n,t[e][r],x(t,t[e][r]));return n}function w(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.cellsByParents[e])for(var r=0,i=t.cellsByParents[e].length;r<i;++r){var o=t.cellsByParents[e][r];t[o]&&(t[o][s.constants.CUSTOM_CELL_DATA_NUMBERING]=[].concat(n,[r+1]),w(t,o,t[o][s.constants.CUSTOM_CELL_DATA_NUMBERING]))}}function E(t,e,n){e.cells=Slickplan.helpers.sortNumeric(n,(function(t){var n;return(null===(n=e[t])||void 0===n?void 0:n[s.constants.CELL_DATA_KEY_ORDER])||Number.MAX_SAFE_INTEGER}))}var O=g(),D={getPageCount:function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t.loaded)return 0;var r=[];return!e||e===s.constants.SITEMAP_SECTION_MAIN_ID&&n?r=t.cells:(n?(S=[],C(t,e)):S=[e],S.length&&(r=t.cells.filter((function(e){var n;return S.includes(null===(n=t[e])||void 0===n?void 0:n[s.constants.CELL_DATA_KEY_SECTION_ID])})))),r.filter((function(t){return t!==s.constants.CELL_ID_HOME_PLACEHOLDER&&t!==s.constants.CELL_ID_DROP_PLACEHOLDER})).length}},getData:function(t){return function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e=e||t.currentCellId,t[e]?void 0===n||"*"===n?Slickplan.helpers.objectCloneDeep(t[e]):Array.isArray(n)?Slickplan.helpers.objectPick(t[e],n):Slickplan.helpers.getValue(t[e],n,r):null}},getMaxOrder:function(t){return function(e){var n=t.cellsByParentsWithHidden[e],r=0;if(n)for(var i=0,o=n.length;i<o;++i)t[n[i]]&&t[n[i]][s.constants.CELL_DATA_KEY_ORDER]&&(r=Math.max(r,t[n[i]][s.constants.CELL_DATA_KEY_ORDER]));return r}},getSibling:function(t,e){return function(n,r){var i=e.getData(n,s.constants.CELL_DATA_KEY_PARENT_ID,e.getData(n,s.constants.CELL_DATA_KEY_LEVEL));if(i&&t.cellsByParents[i]){var o=t.cellsByParents[i].indexOf(n);if(o>=0&&t.cellsByParents[i][o+r])return t.cellsByParents[i][o+r]}return null}},getPrevCell:function(t,e){return function(t){return e.getSibling(t,-1)}},getNextCell:function(t,e){return function(t){return e.getSibling(t,1)}},getAllChilds:function(t,e){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=[];if(!r.includes(n)&&t.cellsByParentsWithHidden[n])for(var o,a=0,s=t.cellsByParentsWithHidden[n].length;a<s;a+=1)o=t.cellsByParentsWithHidden[n][a],r.includes(o)||(i=i.concat(o,e.getAllChilds(o,i)));return i}},getLevel:function(t,e){return function(t){var n=e.getData(t,s.constants.CELL_DATA_KEY_LEVEL);if(n===s.constants.CELL_LEVEL_MAIN){for(var r={},i=1,o=e.getData(t,s.constants.CELL_DATA_KEY_PARENT_ID);o;){if(o=e.getData(o,s.constants.CELL_DATA_KEY_PARENT_ID),(i+=1)>=100||r[o]){i=1;break}r[o]=1}return i}return n}},getCellsHierarchy:function(t){return function(e,n,r,i,o,a,l){var c={};n&&Array.isArray(n)||(n=[s.constants.CELL_LEVEL_UTIL,s.constants.CELL_LEVEL_HOME,s.constants.CELL_LEVEL_MAIN,s.constants.CELL_LEVEL_FOOT]);var u=Slickplan.helpers.getValue(t.cellsBySectionsWithHidden,e,[]).filter((function(t){return t!==s.constants.CELL_ID_HOME_PLACEHOLDER&&t!==s.constants.CELL_ID_DROP_PLACEHOLDER}));return a&&Array.isArray(a)&&a.length&&(u=u.filter((function(t){return a.includes(t)}))),n.forEach((function(e){var n=u.filter((function(n){return Slickplan.helpers.getValue(t,[n,s.constants.CELL_DATA_KEY_LEVEL])===e})),a=n.filter((function(e){return!Slickplan.helpers.getValue(t,[e,s.constants.CELL_DATA_KEY_PARENT_ID])}));c[e]=a.length?_(t,n,a,r,1,i,o):[]})),c}},getCellsForDropdown:function(t,e,n,r){return function(t,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=[],c=n.sitemapSection.ids.slice(0).map((function(t){return{id:t,name:r["sitemapSection/getName"](t)}}));c.sort((function(t,e){return t.id===s.constants.SITEMAP_SECTION_MAIN_ID?-1:t.name.localeCompare(e.name)}));for(var u=function(){var n={group:c[d].name,options:[]},r=e.getCellsHierarchy(c[d].id,t,"•",i);o()(r,(function(t){var e;t.length&&(e=n.options).push.apply(e,f(t))})),n.options.length&&l.push(n)},d=0,p=c.length;d<p;++d)u();return a||1!==l.length?l:l[0].options}},getCellsInViewport:function(t){return function(e,n,r,i,o,a,s){return t.cellsBySections[e].filter((function(e){if(t[e]&&t[e].x>=0&&t[e].y>=0){var l=t[e].x+a,c=t[e].y+s;return l>=0&&c>=0&&l>=n&&c>=i&&l<=r&&c<=o}return!1}))}},getColor:function(t,e,n){return function(r,i){var o,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l="text"===i?s.constants.CELL_DATA_KEY_TEXT_COLOR:s.constants.CELL_DATA_KEY_BG_COLOR;if(!a&&(o=Slickplan.helpers.getValue(n.colors.tempColors.cells,[r,i])))return o;var c=s.constants.SITEMAP_SECTION_MAIN_ID,u=t[r];if(u){if(u[l])return u[l];c=u[s.constants.CELL_DATA_KEY_SECTION_ID]||c;var d=[],f=u[s.constants.CELL_DATA_KEY_ARCHETYPE];f&&d.push("archetype-".concat(f)),(f=e.getLevel(r))&&d.push(f);for(var p=0,m=d.length;p<m;++p){if(!a&&(o=n.colors.tempColors.levels?k(n.colors.tempColors.levels[d[p]],i,l):null))return o;if(o=k(Slickplan.helpers.getValue(n.colors.sections,[c,"colors",d[p]]),i,l))return o}}return Slickplan.helpers.getValue(n.colors.sections,[c,"colors","default",i],Slickplan.helpers.getValue(n.colors.sections,[c,"failover",i],n.sitemapSection.defaultData[i]))}},getColors:function(t,e){return function(t,n){return{background:e.getColor(t,"background",n),text:e.getColor(t,"text",n)}}},getCellsByAttribute:function(t){return function(e,n){return t.cells.filter((function(r){return t[r]&&t[r][e]&&(void 0===n||t[r][e]===n)}))}},getCellsSearch:function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(e)||(e="".concat(e).split(" ")),e=e.filter((function(t){return!Slickplan.helpers.isBlank(t)}));for(var r=[],i=function(n){t[t.cells[n]]&&t[t.cells[n]].normalizedLabel&&e.every((function(e){return~t[t.cells[n]].normalizedLabel.indexOf(e)}))&&r.push(t.cells[n])},o=0,a=t.cells.length;o<a;++o)i(o);return n&&(n=[],r.forEach((function(e){for(var r=t[e][s.constants.CELL_DATA_KEY_PARENT_ID],i=100;r&&t[r]&&!(n.includes(r)||i<=0);)n.push(r),r=t[r][s.constants.CELL_DATA_KEY_PARENT_ID],i-=1})),r=f(new Set([].concat(r).concat(n)))),r}},getBreadcrumbs:function(t){return function(e){for(var n=[],r=t[e][s.constants.CELL_DATA_KEY_PARENT_ID],i=100,o={};r&&t[r]&&!(i<=0||o[r]);)n.push(b(b({},s.constants.CELL_DATA_KEY_ID,t[r][s.constants.CELL_DATA_KEY_ID]),s.constants.CELL_DATA_KEY_LABEL,t[r][s.constants.CELL_DATA_KEY_LABEL])),i-=1,o[r=t[r][s.constants.CELL_DATA_KEY_PARENT_ID]]=1;return n.reverse()}},getAllColorsValues:function(t){var e=t.cells.reduce((function(e,n){return t[n]&&(t[n][s.constants.CELL_DATA_KEY_TEXT_COLOR]&&e.text.push(t[n][s.constants.CELL_DATA_KEY_TEXT_COLOR]),t[n][s.constants.CELL_DATA_KEY_BG_COLOR]&&e.background.push(t[n][s.constants.CELL_DATA_KEY_BG_COLOR])),e}),{text:[],background:[]});return e.text.length&&(e.text=f(new Set(e.text))),e.background.length&&(e.background=f(new Set(e.background))),e}},A={regroupCells:function(t,e){var n=t.commit,r=t.rootState,i=t.dispatch;n(s.mutationTypes.SITEMAP_CELLS_REGROUP,e||r.sitemapSection.currentId),i("recalculatePositions")},recalculatePositions:function(t,e){var n=t.commit,r=t.rootState,i={orientation:t.rootGetters["sitemapSection/getData"](e,s.constants.SITEMAP_SECTION_DATA_KEY_ORIENTATION),rootState:r};n(s.mutationTypes.SITEMAP_RECALCULATE_POSITIONS,i),n(s.mutationTypes.SITEMAP_RECALCULATE_LINES,i)},setDragging:function(t,e){(0,t.commit)(s.mutationTypes.SITEMAP_CELL_DRAGGING_SET,e)},setCurrent:function(t,e){(0,t.commit)(s.mutationTypes.SITEMAP_CELL_CURRENT_SET,e)},add:function(t,e){var n=t.commit;"object"!==d(e)||Array.isArray(e)?n(s.mutationTypes.SITEMAP_CELL_ADD,e):n(s.mutationTypes.SITEMAP_CELL_ADD,Object.keys(e).map((function(t){return v({id:t},e[t])})))},delete:function(t,e){(0,t.commit)(s.mutationTypes.SITEMAP_CELL_DELETE,e)},new:function(t,e){var n=t.commit,r=t.state,i=t.rootState,o=b(b({},s.constants.CELL_DATA_KEY_ID,Slickplan.helpers.uniqueId()),s.constants.CELL_DATA_KEY_SECTION_ID,i.sitemapSection.currentId);if([s.constants.CELL_LEVEL_UTIL,s.constants.CELL_LEVEL_FOOT,s.constants.CELL_LEVEL_MAIN,s.constants.CELL_LEVEL_HOME].includes(e.type))o[s.constants.CELL_DATA_KEY_LEVEL]=e.type,o[s.constants.CELL_DATA_KEY_ORDER]=99999999;else if(e.type===s.constants.CELL_ADD_SUBPAGE)Slickplan.helpers.getValue(r,[e.to,s.constants.CELL_DATA_KEY_LEVEL])!==s.constants.CELL_LEVEL_HOME&&(o[s.constants.CELL_DATA_KEY_PARENT_ID]=e.to),o[s.constants.CELL_DATA_KEY_ORDER]=99999999;else{var a=Slickplan.helpers.getValue(r,[e.to,s.constants.CELL_DATA_KEY_PARENT_ID]);a&&(o[s.constants.CELL_DATA_KEY_PARENT_ID]=a),o[s.constants.CELL_DATA_KEY_LEVEL]=Slickplan.helpers.getValue(r,[e.to,s.constants.CELL_DATA_KEY_LEVEL]),o[s.constants.CELL_DATA_KEY_ORDER]=Slickplan.helpers.getValue(r,[e.to,s.constants.CELL_DATA_KEY_ORDER],1e3)+(e.type===s.constants.CELL_ADD_AFTER?1:-1)}n(s.mutationTypes.SITEMAP_CELL_ADD,o),n(s.mutationTypes.SITEMAP_CELL_NEW,o[s.constants.CELL_DATA_KEY_ID])},clearNew:function(t){(0,t.commit)(s.mutationTypes.SITEMAP_CELL_NEW,null)},addDropPlaceholder:function(t){var e=t.commit,n=t.state,r=t.rootState,i=n.dragging,o=i.to,a=i.from,l=i.type,c=Slickplan.helpers.isSitemapLevel(l);if(c||o&&n[o]){var u=b(b({},s.constants.CELL_DATA_KEY_ID,s.constants.CELL_ID_DROP_PLACEHOLDER),s.constants.CELL_DATA_KEY_SECTION_ID,r.sitemapSection.currentId);if(c)u[s.constants.CELL_DATA_KEY_LEVEL]=l,u[s.constants.CELL_DATA_KEY_ORDER]=1;else if(l===s.constants.CELL_ADD_SUBPAGE)n[o][s.constants.CELL_DATA_KEY_LEVEL]!==s.constants.CELL_LEVEL_HOME&&(u[s.constants.CELL_DATA_KEY_PARENT_ID]=o),u[s.constants.CELL_DATA_KEY_ORDER]=1;else{var d=n[o][s.constants.CELL_DATA_KEY_PARENT_ID];d&&(u[s.constants.CELL_DATA_KEY_PARENT_ID]=d),u[s.constants.CELL_DATA_KEY_LEVEL]=n[o][s.constants.CELL_DATA_KEY_LEVEL],u[s.constants.CELL_DATA_KEY_ORDER]=n[o][s.constants.CELL_DATA_KEY_ORDER]+(l===s.constants.CELL_ADD_AFTER?1:-1)}n[s.constants.CELL_ID_DROP_PLACEHOLDER]||(u.x=Slickplan.helpers.getValue(n,[a,"x"],0),u.y=Slickplan.helpers.getValue(n,[a,"y"],0)),e(s.mutationTypes.SITEMAP_CELL_ADD,u)}},removeDropPlaceholder:function(t){(0,t.commit)(s.mutationTypes.SITEMAP_CELL_DELETE,s.constants.CELL_ID_DROP_PLACEHOLDER)},addSectionHomePlaceholder:function(t){var e=t.commit,n=t.state,r=t.rootState,i=n.cells.find((function(t){return Slickplan.helpers.getValue(n,[t,s.constants.CELL_DATA_KEY_SUBSECTION])===r.sitemapSection.currentId}));i&&n[i]&&e(s.mutationTypes.SITEMAP_CELL_ADD,v(v({},n[i]),{},b(b(b(b(b({},s.constants.CELL_DATA_KEY_ID,s.constants.CELL_ID_HOME_PLACEHOLDER),s.constants.CELL_DATA_KEY_SUBSECTION,null),s.constants.CELL_DATA_KEY_SECTION_ID,r.sitemapSection.currentId),s.constants.CELL_DATA_KEY_PARENT_ID,null),s.constants.CELL_DATA_KEY_LEVEL,s.constants.CELL_LEVEL_HOME)))},removeSectionHomePlaceholder:function(t){(0,t.commit)(s.mutationTypes.SITEMAP_CELL_DELETE,s.constants.CELL_ID_HOME_PLACEHOLDER)},updateData:function(t,e){(0,t.commit)(s.mutationTypes.SITEMAP_CELL_UPDATE,e)},updateDataWhere:function(t,e){var n=t.commit,r=t.state;[].concat(e).forEach((function(t){if(t&&t.key&&t.value){var e=t.key,i=null,a=[];if(Array.isArray(t.key)){var l=u(t.key,2);e=l[0],i=l[1]}var c=t.set||!1,d=[].concat(t.value);i?r.cells.forEach((function(t){if(r[t][e]){var l=r[t][e],u=!1;o()(Object.keys(l),(function(t){"*"!==i&&i!==t||d.includes(l[t])&&(c?l[t]=c:delete l[t],u=!0)})),u&&(Object.keys(l).length?n(s.mutationTypes.SITEMAP_CELL_UPDATE,{id:t,key:e,value:l}):a.push(t))}})):a=r.cells.filter((function(t){return!!r[t][e]&&d.includes(r[t][e])})),a.length&&n(s.mutationTypes.SITEMAP_CELL_UPDATE,{id:a,key:e,value:c})}}))},removeData:function(t,e){var n=t.commit;e&&e.keys&&e.cell_id&&[].concat(e.keys).forEach((function(t){n(s.mutationTypes.SITEMAP_CELL_UPDATE,{id:e.cell_id,key:t,value:!1})}))},onHover:function(t,e){(0,t.commit)(s.mutationTypes.SITEMAP_CELL_HOVER_SET,e)},setSelectedCells:function(t,e){var n=t.commit,r=t.rootState;n(s.mutationTypes.SITEMAP_CELL_SET_SELECTED,{ids:e,sectionId:r.sitemapSection.currentId})}},T=(b(b(b(b(b(b(b(b(b(b(r={},s.mutationTypes.SITEMAP_CELL_CURRENT_SET,(function(t,e){t.currentCellId=e,Slickplan.globalVars.pageAlias=e})),s.mutationTypes.SITEMAP_CELL_DRAGGING_SET,(function(t,e){var n=t.dragging;if(e){Object.entries(n).forEach((function(n){var r=u(n,2),i=r[0],o=r[1];"id"!==i&&void 0!==e[i]&&o!==e[i]&&(t.dragging[i]=e[i])}));var r=n.from&&n.to&&n.type?"".concat(n.from,"-").concat(n.to,"-").concat(n.type):Slickplan.helpers.isSitemapLevel(n.type)?n.type:null;n.id!==r&&(t.dragging.id=r)}else Object.keys(n).forEach((function(e){t.dragging[e]=null}))})),s.mutationTypes.SITEMAP_CELL_HOVER_SET,(function(t,e){t.activeCell=e||null})),s.mutationTypes.SITEMAP_CELL_NEW,(function(t,e){t.newCell=e||null})),s.mutationTypes.SITEMAP_CELL_UPDATE,(function(t,e){var n=!1,r=!1,i=[s.constants.CELL_DATA_KEY_ORDER,s.constants.CELL_DATA_KEY_COLLAPSED];[].concat(e).forEach((function(e){if(e.key){var o=e.cell_id||e.id,a=e.language?[e.key,e.language]:e.key;[].concat(o||t.currentCellId).forEach((function(o){if(t[o]){var c=!1,u=e.value||e.data,d=Array.isArray(a)?a.slice(0):a;u?Slickplan.helpers.getValue(t[o],d)!==u&&((0,l.setProp)(t[o],d,u),c=!0,d===s.constants.CELL_DATA_KEY_LABEL&&(0,l.setProp)(t[o],"normalizedLabel",Slickplan.helpers.normalizeString(u))):Slickplan.helpers.getValue(t[o],d)&&((0,l.deleteProp)(t[o],d),c=!0,d===s.constants.CELL_DATA_KEY_LABEL&&(0,l.deleteProp)(t[o],"normalizedLabel")),c&&"string"==typeof d&&(!n&&i.includes(d)&&(n=!0),r||d!==s.constants.CELL_DATA_KEY_BG_COLOR&&d!==s.constants.CELL_DATA_KEY_TEXT_COLOR||(r=!0))}}))}})),r&&++t.colorsPropsIteration,n&&E(this.state,t,t.cells.slice(0))})),s.mutationTypes.SITEMAP_CELL_ADD,(function(t,e){if((e=Slickplan.helpers.castArray(e)).length){for(var n=!1,r=!1,i=t.cells.slice(0),o=i.map((function(e){return"".concat(t[e][s.constants.CELL_DATA_KEY_PARENT_ID]||t[e][s.constants.CELL_DATA_KEY_LEVEL],"-").concat(t[e][s.constants.CELL_DATA_KEY_ORDER])})),l=0,c=e.length;l<c;++l){var u=v(b(b(b(b(b({},s.constants.CELL_DATA_KEY_ID,Slickplan.helpers.uniqueId()),s.constants.CELL_DATA_KEY_LABEL,""),s.constants.CELL_DATA_KEY_LEVEL,s.constants.CELL_LEVEL_MAIN),s.constants.CELL_DATA_KEY_ORDER,1e7),s.constants.CELL_DATA_KEY_SECTION_ID,s.constants.SITEMAP_SECTION_MAIN_ID),e[l]);if(u[s.constants.CELL_DATA_KEY_LEVEL]!==s.constants.CELL_LEVEL_HOME||u[s.constants.CELL_DATA_KEY_SECTION_ID]===s.constants.SITEMAP_SECTION_MAIN_ID||u[s.constants.CELL_DATA_KEY_ID]===s.constants.CELL_ID_HOME_PLACEHOLDER){var d="".concat(u[s.constants.CELL_DATA_KEY_PARENT_ID]||u[s.constants.CELL_DATA_KEY_LEVEL],"-").concat(u[s.constants.CELL_DATA_KEY_ORDER]);o.includes(d)&&(u[s.constants.CELL_DATA_KEY_ORDER]+=2);var f=u[s.constants.CELL_DATA_KEY_ID];"number"!=typeof u.x&&(u.x=Slickplan.helpers.getValue(t,[f,"x"],-1)),"number"!=typeof u.y&&(u.y=Slickplan.helpers.getValue(t,[f,"y"],-1)),i.includes(f)||(i.push(f),o.push(d)),n=!0,u.normalizedLabel=Slickplan.helpers.normalizeString(u[s.constants.CELL_DATA_KEY_LABEL]),r||!u[s.constants.CELL_DATA_KEY_BG_COLOR]&&!u[s.constants.CELL_DATA_KEY_TEXT_COLOR]||(r=!0),a.default.set(t,f,u)}}r&&++t.colorsPropsIteration,n&&E(this.state,t,i)}})),s.mutationTypes.SITEMAP_CELL_DELETE,(function(t,e){var n=Slickplan.helpers.castArray(e);n.length&&(n.forEach((function(e){e&&t[e]&&a.default.delete(t,e)})),t.cells.length&&a.default.set(t,"cells",Slickplan.helpers.arrayDiff(t.cells,n)))})),"clear",(function(t){Object.keys(t).forEach((function(e){t[e]&&t[e].id&&t[e].id===e&&a.default.delete(t,e)})),Object.assign(t,g())})),s.mutationTypes.SITEMAP_CELLS_REGROUP,(function(t,e){e=e||s.constants.SITEMAP_SECTION_MAIN_ID;for(var n={},r=[],i={},o={},l=0,c=t.cells.length;l<c;++l){var u=t.cells[l],d=t[u][s.constants.CELL_DATA_KEY_SECTION_ID];if(n[d]||(n[d]=[]),n[d].push(u),d===e){var p=t[u][s.constants.CELL_DATA_KEY_LEVEL]||s.constants.CELL_LEVEL_MAIN,m=p===s.constants.CELL_LEVEL_MAIN&&t[u][s.constants.CELL_DATA_KEY_PARENT_ID]||p;m===s.constants.CELL_LEVEL_HOME?i[m]=[u]:(i[m]||(i[m]=[]),i[m].push(u),t[u][s.constants.CELL_DATA_KEY_COLLAPSED]&&r.push(u))}}for(var h=[],v=0,b=r.length;v<b;++v)h=[].concat(h,x(i,r[v]));if(h=f(new Set(h)),Object.keys(i).forEach((function(t){var e=Slickplan.helpers.arrayDiff(i[t],h);e&&e.length&&(o[t]=e)})),a.default.set(t,"cellsHidden",h),a.default.set(t,"cellsByParents",o),a.default.set(t,"cellsByParentsWithHidden",i),Object.keys(n).forEach((function(e){a.default.set(t.cellsBySectionsWithHidden,e,n[e]),a.default.set(t.cellsBySections,e,Slickplan.helpers.arrayDiff(n[e],h))})),e===s.constants.SITEMAP_SECTION_MAIN_ID){var y=i[s.constants.CELL_LEVEL_HOME]&&i[s.constants.CELL_LEVEL_HOME].length;t.isHomeCellPresent!==y&&(t.isHomeCellPresent=y)}else t.isHomeCellPresent||(t.isHomeCellPresent=!0);i&&i.main&&w(t,s.constants.CELL_LEVEL_MAIN),t.loaded=!0})),s.mutationTypes.SITEMAP_CELL_SET_SELECTED,(function(t,e){var n=e.sectionId,r=e.ids;if("string"==typeof r&&r!==s.constants.CELL_ID_DROP_PLACEHOLDER&&r!==s.constants.CELL_ID_HOME_PLACEHOLDER)t.selectedCells.push(r);else if(Array.isArray(r)){if(!t.selectedCells.length&&!r.length)return;t.selectedCells=r.slice(0).filter((function(t){return t!==s.constants.CELL_ID_DROP_PLACEHOLDER&&t!==s.constants.CELL_ID_HOME_PLACEHOLDER}))}var i=[],o=[];if(t.selectedCells.length){for(var a=0,l=t.selectedCells.length;a<l;++a){if(!t[t.selectedCells[a]])return;i.push(t.selectedCells[a]),i=[].concat(i,x(t.cellsByParentsWithHidden,t.selectedCells[a]))}if((i=f(new Set(i))).length){var c=i.filter((function(e){return t[e]&&t[e][s.constants.CELL_DATA_KEY_SUBSECTION]&&t[e][s.constants.CELL_DATA_KEY_SUBSECTION].indexOf(":")<0})),u=[],d=(o=c.map((function(e){return t[e][s.constants.CELL_DATA_KEY_SUBSECTION]}))).slice(0);do{(u=t.cells.filter((function(e){return t[e]&&t[e][s.constants.CELL_DATA_KEY_SECTION_ID]&&t[e][s.constants.CELL_DATA_KEY_SUBSECTION]&&t[e][s.constants.CELL_DATA_KEY_SUBSECTION].indexOf(":")<0&&d.includes(t[e][s.constants.CELL_DATA_KEY_SECTION_ID])&&!o.includes(t[e][s.constants.CELL_DATA_KEY_SUBSECTION])})).map((function(e){return t[e][s.constants.CELL_DATA_KEY_SUBSECTION]}))).length&&(o=[].concat(o,u)),d=u.slice(0)}while(d.length)}o.push(n)}t.selectedSections=f(new Set(o)),t.selectedCellsWithChilds=i})),b(b(b(b(b(b(r,s.mutationTypes.SITEMAP_RECALCULATE_POSITIONS,(function(t,e){var n=e.rootState,r=e.orientation;c.default.calculateCells(t,n,r)})),s.mutationTypes.SITEMAP_RECALCULATE_LINES,(function(t,e){var n=e.rootState,r=e.orientation;c.default.calculateLines(t,n,r)})),"removeFromSelected",(function(t,e){t.selectedCells=t.selectedCells.filter((function(t){return!e.includes(t)}))})),"setEditingBy",(function(t,e){var n=e.cells,r=e.user;n=[].concat(n),r="object"===d(r)?r.id:parseInt(r,10),Object.keys(t.websocketEditingBy).forEach((function(e){t.websocketEditingBy[e]!==r||n.includes(e)||a.default.delete(t.websocketEditingBy,e)})),n.forEach((function(e){a.default.set(t.websocketEditingBy,e,r)}))})),"resetEditingBy",(function(t,e){var n=e.user,r=e.cells;r=(r=Slickplan.helpers.castArray(r)).length?r:Object.keys(t.websocketEditingBy),n=[].concat(n).map((function(t){return"object"===d(t)?t.id:parseInt(t,10)})),r.forEach((function(e){n.includes(t.websocketEditingBy[e])&&a.default.delete(t.websocketEditingBy,e)}))})),"resetContentData",(function(t,e){t.cells.forEach((function(n){t[n]&&Object.keys(t[n]).forEach((function(r){(e&&r===e||!e&&"content_"===r.slice(0,8))&&(0,l.deleteProp)(t[n],r)}))}))})));const P={namespaced:!0,state:O,getters:D,actions:A,mutations:T}},76584:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var r=n(2376),i=n.n(r),o=n(82176),a=n(71995),s=n(22164),l=n(14580);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var h=null,v=null;var b={getCellIdForShortcut:function(t,e,n){if(t.currentCellForKeyShortcut&&n.sitemapCell.cells.includes(t.currentCellForKeyShortcut)&&n.sitemapCell.cellsBySectionsWithHidden[n.sitemapSection.currentId]&&n.sitemapCell.cellsBySectionsWithHidden[n.sitemapSection.currentId].includes(t.currentCellForKeyShortcut))return t.currentCellForKeyShortcut;var r=[l.constants.CELL_LEVEL_HOME,l.constants.CELL_LEVEL_MAIN,l.constants.CELL_LEVEL_UTIL,l.constants.CELL_LEVEL_FOOT].map((function(t){var e=n.sitemapCell.cellsByParents[t];return e&&e.length?e[0]:null})).filter((function(t){return t}));return r&&r.length?r[0]:null}},y={collapseAll:function(t,e){var n=t.dispatch,r=t.rootState,o=[];i()(r.sitemapCell.cellsByParentsWithHidden,(function(t,e){![l.constants.CELL_LEVEL_MAIN,l.constants.CELL_LEVEL_HOME,l.constants.CELL_LEVEL_UTIL,l.constants.CELL_LEVEL_FOOT].includes(e)&&t.length&&r.sitemapCell[e]&&!r.sitemapCell[e][l.constants.CELL_DATA_KEY_COLLAPSED]&&o.push(e)})),o.length&&(o={cell_id:o,key:l.constants.CELL_DATA_KEY_COLLAPSED,data:!0},r.sitemap.details.status===l.constants.STATUS_ACTIVE&&!1!==e&&Slickplan.helpers.requestQueue((function(){return a.default.sitemapCell.massSaveData(o,{type:"sitemap",action:"collapse_all"}).promise}),l.constants.PROMISE_QUEUE_SITEMAP_CELLS),n("sitemapCell/updateData",o,{root:!0}))},expandAll:function(t,e){var n=t.dispatch,r=t.rootState,o=[];i()(r.sitemapCell.cellsBySectionsWithHidden[r.sitemapSection.currentId],(function(t){Slickplan.helpers.getValue(r.sitemapCell,[t,l.constants.CELL_DATA_KEY_COLLAPSED])&&o.push(t)})),o.length&&(o={cell_id:o,keys:[l.constants.CELL_DATA_KEY_COLLAPSED]},r.sitemap.details.status===l.constants.STATUS_ACTIVE&&!1!==e&&Slickplan.helpers.requestQueue((function(){return a.default.sitemapCell.massRemoveData(o,{type:"sitemap",action:"expand_all"}).promise}),l.constants.PROMISE_QUEUE_SITEMAP_CELLS),n("sitemapCell/removeData",o,{root:!0}))},movePage:function(t,e){var n=t.rootState,r=t.rootGetters,o=e.from,s=e.to,c=e.type,u=[],d=n.sitemapCell[o];if(d&&Slickplan.helpers.isSitemapLevel(c)){var f=p(new Set([o].concat(r["sitemapCell/getAllChilds"](o))));if(c===l.constants.CELL_LEVEL_HOME&&f.length>1){if((f=n.sitemapCell.cellsByParentsWithHidden[o])&&f.length){var m=n.sitemapCell.cellsByParentsWithHidden[l.constants.CELL_LEVEL_MAIN],h=0;m.forEach((function(t){n.sitemapCell[t]&&(h=Math.max(h,n.sitemapCell[t][l.constants.CELL_DATA_KEY_ORDER]))})),u.push({cell_id:f,key:l.constants.CELL_DATA_KEY_PARENT_ID,data:!1}),f.forEach((function(t){h+=1e3,u.push({cell_id:t,key:l.constants.CELL_DATA_KEY_ORDER,data:h})}))}f=[o]}u.push({cell_id:f,key:l.constants.CELL_DATA_KEY_PARENT_ID,data:!1}),u.push({cell_id:f,key:l.constants.CELL_DATA_KEY_LEVEL,data:c});var v=0;f.forEach((function(t){v+=1e3,u.push({cell_id:t,key:l.constants.CELL_DATA_KEY_ORDER,data:v})}))}if(s&&d&&n.sitemapCell[s]){var b,y=n.sitemapCell[s],g=Slickplan.helpers.getValue(y,l.constants.CELL_DATA_KEY_LEVEL,l.constants.CELL_LEVEL_MAIN),_=0,S=[];if(c===l.constants.CELL_ADD_SUBPAGE){var C=g===l.constants.CELL_LEVEL_HOME?l.constants.CELL_LEVEL_MAIN:s;_=1e3,b=C!==l.constants.CELL_LEVEL_MAIN&&C,g=l.constants.CELL_LEVEL_MAIN,Slickplan.helpers.getValue(d,l.constants.CELL_DATA_KEY_ORDER,0)!==_&&u.push({cell_id:[o],key:l.constants.CELL_DATA_KEY_ORDER,data:_}),S=n.sitemapCell.cellsByParentsWithHidden[C].filter((function(t){return![l.constants.CELL_ID_DROP_PLACEHOLDER,l.constants.CELL_ID_HOME_PLACEHOLDER].includes(t)}))}else if(g===l.constants.CELL_LEVEL_UTIL||g===l.constants.CELL_LEVEL_FOOT){b=!1;var k=p(new Set([o].concat(r["sitemapCell/getAllChilds"](o))));u.push({cell_id:k,key:l.constants.CELL_DATA_KEY_PARENT_ID,data:!1}),u.push({cell_id:k,key:l.constants.CELL_DATA_KEY_LEVEL,data:g});var x=(S=n.sitemapCell.cellsByParentsWithHidden[g].filter((function(t){return t!==l.constants.CELL_ID_DROP_PLACEHOLDER}))).indexOf(s)+(c===l.constants.CELL_ADD_AFTER?1:0);S=Slickplan.helpers.arrayInsert(S,x,k,!0)}else{b=Slickplan.helpers.getValue(y,l.constants.CELL_DATA_KEY_PARENT_ID,!1);var w=(S=Slickplan.helpers.getValue(n.sitemapCell.cellsByParentsWithHidden,b||g,[]).filter((function(t){return![o,l.constants.CELL_ID_DROP_PLACEHOLDER,l.constants.CELL_ID_HOME_PLACEHOLDER].includes(t)}))).indexOf(s)+(c===l.constants.CELL_ADD_AFTER?1:0);S=Slickplan.helpers.arrayInsert(S,w,o)}Slickplan.helpers.getValue(d,l.constants.CELL_DATA_KEY_PARENT_ID,!1)!==b&&u.push({cell_id:[o],key:l.constants.CELL_DATA_KEY_PARENT_ID,data:b}),Slickplan.helpers.getValue(d,l.constants.CELL_DATA_KEY_LEVEL,l.constants.CELL_LEVEL_MAIN)!==g&&u.push({cell_id:[o],key:l.constants.CELL_DATA_KEY_LEVEL,data:g}),S.length&&(_+=1e3,i()(S,(function(t){Slickplan.helpers.getValue(n.sitemapCell,[t,l.constants.CELL_DATA_KEY_ORDER])!==_&&u.push({cell_id:[t],key:l.constants.CELL_DATA_KEY_ORDER,data:_}),_+=1e3})))}u.length&&(Slickplan.helpers.requestQueue((function(){return a.default.sitemapCell.massSaveData(u,{type:"sitemap",action:"page_move",meta:{from:o,to:s,type:c}}).promise}),l.constants.PROMISE_QUEUE_SITEMAP_CELLS),Slickplan.websocket.storeDispatch("sitemapCell/updateData",u))},highlightCell:function(t,e){var n=t.dispatch,r=t.rootState;e&&r.sitemapCell[e]&&n("sitemapHelpers/showSitemapAndExecute",{sectionId:r.sitemapCell[e][l.constants.CELL_DATA_KEY_SECTION_ID]||l.constants.SITEMAP_SECTION_MAIN_ID,callback:function(){return t=e,clearTimeout(v),h&&h.classList.remove("is-highlight"),void((h="string"==typeof t?document.getElementById(t):t)&&(h.scrollIntoView({behavior:"auto",block:"center",inline:"center"}),h.classList.add("is-highlight"),v=setTimeout((function(){h&&h.classList.remove("is-highlight")}),2e3)));var t}})},showSitemapAndExecute:function(t,e){var n=t.dispatch,r=t.rootState,i=e.sectionId,a=e.callback,c=o.default.$route.name,u=r.sitemap.details.status===l.constants.STATUS_SHARED;u&&"sitemap-shared"!==c||!u&&"sitemap"!==c?(s.EventBus.$once("sitemap-loaded",a),o.default.$router.push({name:u?"sitemap-shared":"sitemap",params:{sitemap:Slickplan.globalVars.sitemapAlias,section:i}}).catch(_noop)):i!==r.sitemapSection.currentId?(s.EventBus.$once("sitemap-loaded",a),n("sitemapSection/pushBreadcrumb",i,{root:!0})):a()},addPages:function(t,e){var n=t.state,r=t.rootState,o=[l.constants.CELL_DATA_KEY_ID,l.constants.CELL_DATA_KEY_LABEL,l.constants.CELL_DATA_KEY_LEVEL,l.constants.CELL_DATA_KEY_PARENT_ID,l.constants.CELL_DATA_KEY_SECTION_ID,l.constants.CELL_DATA_KEY_ORDER],s=[],c=[].concat(e.cells).map((function(t){if(t){var e={},i=t[l.constants.CELL_DATA_KEY_ID];if(i&&r.sitemapCell[i]){e=Slickplan.helpers.objectPick(d(d({},r.sitemapCell[i]),t),o);var a=r.sitemapCell[i],c=Slickplan.helpers.getValue(a,l.constants.CELL_DATA_KEY_PARENT_ID,Slickplan.helpers.getValue(a,l.constants.CELL_DATA_KEY_LEVEL,l.constants.CELL_LEVEL_MAIN));c&&r.sitemapCell.cellsByParentsWithHidden[c]&&!s.includes(c)&&s.push(c)}if(e.id)return n.currentCellForKeyShortcut=e.id,e}return null})).filter((function(t){return t})),u={};e.noUpdate?u=[]:(s.forEach((function(t){for(var e=r.sitemapCell.cellsByParentsWithHidden[t],n=1e3,i=function(){var t=e[o],r=c.findIndex((function(e){return e.id===t}));r>=0?c[r][l.constants.CELL_DATA_KEY_ORDER]=n:u[t]=n,n+=1e3},o=0,a=e.length;o<a;o+=1)i()})),u=Object.keys(u).map((function(t){return{cell_id:[t],key:l.constants.CELL_DATA_KEY_ORDER,data:u[t]}})));var f=!1;if(c.length){var p=[];c.forEach((function(t){i()(t,(function(e,n){n!==l.constants.CELL_DATA_KEY_ID&&p.push({id:t.id,key:n,value:e})}))})),Slickplan.websocket.pushSitemap({store:{dispatch:"sitemapCell/add",payload:c}}),Slickplan.websocket.storeDispatch("sitemapCell/updateData",p),f=!0}if(u.length&&(Slickplan.websocket.storeDispatch("sitemapCell/updateData",u),f=!0),f)if(1!==c.length||u.length||e.log){var m,h=[c,u,e.log];if(e.asPromise)return(m=a.default.sitemapCell).massCreate.apply(m,h).promise;Slickplan.helpers.requestQueue((function(){var t;return(t=a.default.sitemapCell).massCreate.apply(t,h).promise}),l.constants.PROMISE_QUEUE_SITEMAP_CELLS)}else{if(e.asPromise)return a.default.sitemapCell.create(c[0]).promise;Slickplan.helpers.requestQueue((function(){return a.default.sitemapCell.create(c[0]).promise}),l.constants.PROMISE_QUEUE_SITEMAP_CELLS)}}};const g={namespaced:!0,state:{currentCellForKeyShortcut:null},getters:b,actions:y,mutations:{}}},91188:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(14580);const i={add:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_SECTION_ADD,e)},remove:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_SECTION_REMOVE,e)},setData:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_SECTION_UPDATE,e)},pushBreadcrumb:function(t,e){var n=t.commit,i=t.getters;"string"==typeof e&&(e=i.getBreadcrumbs(e)),n(r.mutationTypes.SITEMAP_SECTION_BREADCRUMB_PUSH,e)},backBreadcrumb:function(t){var e=t.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e(r.mutationTypes.SITEMAP_SECTION_BREADCRUMB_BACK,n)}}},2640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(14580);function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){return e?t.sitemapCell.cells.find((function(n){return Slickplan.helpers.getValue(t.sitemapCell,[n,r.constants.CELL_DATA_KEY_SUBSECTION])===e})):null}const s={getCurrentData:function(t){return Slickplan.helpers.objectMergeDeep(t.defaultData,t.sectionsData[t.currentId]||{})},getData:function(t){return function(e,n){return Slickplan.helpers.getValue(t.sectionsData[e||t.currentId],n,Slickplan.helpers.getValue(t.defaultData,n,null))}},getName:function(t,e,n){return function(t){if(t===r.constants.SITEMAP_SECTION_MAIN_ID)return"Main sitemap";var e=a(n,t);return e?Slickplan.helpers.getValue(n.sitemapCell,[e,r.constants.CELL_DATA_KEY_LABEL],""):"Section"}},getBreadcrumbs:function(t,e,n){return function(t){var i=[],o=a(n,t);if(o){i.push({cell_id:o,section_id:t,name:e.getName(t)});var s=Slickplan.helpers.getValue(n.sitemapCell,[o,r.constants.CELL_DATA_KEY_SECTION_ID]);s&&s!==r.constants.SITEMAP_SECTION_MAIN_ID&&s!==t&&(i=[].concat(i,e.getBreadcrumbs(s).reverse()))}return i.reverse()}},getAllColorsValues:function(t,e,n){n.colors.themes.filter((function(t){return t.id.startsWith("__")}));var o=t.ids.reduce((function(e,i){if(t.sectionsData[i]&&(t.sectionsData[i][r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR]&&e.text.push(t.sectionsData[i][r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR]),t.sectionsData[i][r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND]&&e.background.push(t.sectionsData[i][r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND]),t.sectionsData[i][r.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME])){var o=n.colors.themes.find((function(e){return e.id===t.sectionsData[i][r.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME]}));o&&o.colors.forEach((function(t){t.text&&e.text.push(t.text),t.background&&e.background.push(t.background)}))}return e}),{text:[],background:[]});return o.text.length&&(o.text=i(new Set(o.text))),o.background.length&&(o.background=i(new Set(o.background))),o}}},36048:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(31008),i=n(2640),o=n(91188),a=n(48152);const s={namespaced:!0,state:r.default,getters:i.default,actions:o.default,mutations:a.default}},48152:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(99016),i=n(14580);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}const d=c(c(c(c(c(c(c({},i.mutationTypes.SITEMAP_SECTION_ADD,(function(t,e){if(e&&e.id){var n=e.data||{},a=n?n[i.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME]:null;a&&"object"===u(a)&&(n[i.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME]="default"),r.default.set(t.sectionsData,e.id,l(l({},n),{},{id:e.id})),t.ids=o(new Set([].concat(t.ids,e.id))).filter((function(t){return t}))}})),i.mutationTypes.SITEMAP_SECTION_REMOVE,(function(t,e){r.default.delete(t.sectionsData,e),t.ids=t.ids.filter((function(t){return t!==e}))})),"clear",(function(t){r.default.set(t,"sectionsData",{}),t.ids=[]})),i.mutationTypes.SITEMAP_SECTION_UPDATE,(function(t,e){e&&e.id&&e.data&&r.default.set(t.sectionsData,e.id,l(l(l({},Slickplan.helpers.getValue(t.sectionsData,e.id,{})),e.data),{},{id:e.id}))})),"setCurrent",(function(t,e){t.currentId!==e&&(t.currentId=e,Slickplan.globalVars.sectionAlias=e)})),i.mutationTypes.SITEMAP_SECTION_BREADCRUMB_PUSH,(function(t,e){var n=Array.isArray(e)?[]:t.breadcrumbs.slice(0);[].concat(e).forEach((function(t){if(t&&t.cell_id&&t.section_id){var e=n[n.length-1];(!e||e.cell_id!==t.cell_id&&e.section_id!==t.section_id)&&n.push(t)}})),t.breadcrumbs=n})),i.mutationTypes.SITEMAP_SECTION_BREADCRUMB_BACK,(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t.breadcrumbs=e<0?[]:[].concat(t.breadcrumbs).slice(0,-1*Math.abs(e))}))},31008:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(14580);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const a={currentId:r.constants.SITEMAP_SECTION_MAIN_ID,breadcrumbs:[],ids:[],defaultData:o(o(o(o(o({},r.constants.SITEMAP_SECTION_DATA_KEY_ORIENTATION,r.constants.SITEMAP_ORIENTATION_HORIZONTAL),r.constants.SITEMAP_SECTION_DATA_KEY_COLOR_SCHEME,"default"),r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_BACKGROUND,"#fdfdfe"),r.constants.SITEMAP_SECTION_DATA_KEY_PAGE_TEXT_COLOR,"#404040"),r.constants.SITEMAP_SECTION_DATA_KEY_LINES_COLOR,"#dbdbdd"),sectionsData:{}}},75320:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var r=n(14580);const i={setContentStatus:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_CONTENT_STATUS_SET,e)},deleteContentStatus:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_CONTENT_STATUS_DELETE,e)},setProjectSettings:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_PROJECT_SETTINGS_SET,e)},setArchetype:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_ARCHETYPE_SET,e)},deleteArchetype:function(t,e){(0,t.commit)(r.mutationTypes.SITEMAP_ARCHETYPE_DELETE,e)}}},5348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(14580);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={getArchetype:function(t){return function(e,n){return t.archetypes[e]?n?Slickplan.helpers.getValue(t.archetypes[e],n):t.archetypes[e]:null}},contentStatuses:function(t){return t.contentStatuses.find((function(t){return t.alias===r.constants.CONTENT_STATUS_UNASSIGNED}))?t.contentStatuses:t.contentStatuses.concat({alias:r.constants.CONTENT_STATUS_UNASSIGNED,name:"Unassigned",color:r.constants.COLOR_UNASSIGNED})},languages:function(t){var e=[].concat(t.siteSettings.language,t.siteSettings.translations).filter((function(t){return t}));return e.length||(e=[a({code:"en_US"},Slickplan.constants.CONTENT_LANGUAGES.en_US)]),e},cellsDesign:function(t){var e=t.details.meta&&t.details.meta.cells_ui?t.details.meta.cells_ui:{},n=e.box_size,r=e.font_size;return{boxSize:n||"large",fontSize:r?parseInt(r,10):12}}}},90368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(228),i=n(5348),o=n(75320),a=n(98632);const s={namespaced:!0,state:r.default,getters:i.default,actions:o.default,mutations:a.default}},98632:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var r=n(99016),i=n(14580);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}const c=s(s(s(s(s(s(s(s(s({setData:function(t,e){var n;null!=e&&null!==(n=e.meta)&&void 0!==n&&n.cells_ui&&(e.meta.cells_ui=function(t){var e=t.box_size,n=t.font_size,r={};if(!e||"small"!==e&&"medium"!==e&&"large"!==e||(r.box_size=e),n){var i=parseInt(n,10);12!==i&&14!==i&&16!==i||(r.font_size="".concat(i,"px"))}return r}(e.meta.cells_ui));var r=Slickplan.helpers.objectMergeDeep(t.details,e);r.meta||(r.meta={}),t.details=r,Slickplan.globalVars.sitemapAlias=t.details.alias}},i.mutationTypes.SITEMAP_CONTENT_STATUS_SET,(function(t,e){if("object"===l(e)&&e.alias){var n=t.contentStatuses.findIndex((function(t){return t.alias===e.alias}));if(n>=0){var i=a({},e);i.textColor=Slickplan.helpers.invertColor(i.color,!0),r.default.set(t.contentStatuses,n,i)}else e.textColor=Slickplan.helpers.invertColor(e.color,!0),t.contentStatuses.push(e)}})),i.mutationTypes.SITEMAP_CONTENT_STATUS_DELETE,(function(t,e){t.contentStatuses=t.contentStatuses.filter((function(t){return!e.includes(t.alias)}))})),"clearWorkflow",(function(t){t.contentStatuses=[]})),"updateContentStatusOrder",(function(t,e){var n=e.map((function(e){return a({},t.contentStatuses.find((function(t){return t.alias===e})))}));t.contentStatuses=n.slice(0)})),i.mutationTypes.SITEMAP_PROJECT_SETTINGS_SET,(function(t,e){t.siteSettings=Slickplan.helpers.objectMergeDeep(t.siteSettings,e)})),i.mutationTypes.SITEMAP_ARCHETYPE_SET,(function(t,e){e&&e.id&&r.default.set(t.archetypes,e.id,a({},e))})),i.mutationTypes.SITEMAP_ARCHETYPE_DELETE,(function(t,e){"string"==typeof e&&"_"!==e.charAt(0)&&r.default.delete(t.archetypes,e)})),"setScale",(function(t,e){"number"==typeof e&&(t.scale=e)})),"setSectionVisibility",(function(t,e){"boolean"==typeof e?(t.sectionsVisible.util=e,t.sectionsVisible.foot=e):e&&e.section&&"boolean"==typeof t.sectionsVisible[e.section]&&(t.sectionsVisible[e.section]="boolean"==typeof e.visible?e.visible:!t.sectionsVisible[e.section])}))},228:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={details:{},siteSettings:{},contentStatuses:[],archetypes:{},scale:1,sectionsVisible:{util:!1,foot:!1}}},40888:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(2376),i=n.n(r),o=n(30952),a=n.n(o),s=n(14580);function l(t,e,n){var r;return r=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==c(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}var u=0,d="abcdefghijklmnopqrstuvwxyz".split(""),f=function(t){var e=[];return"object"===c(t)?t.id?e.push(t.id):i()(t,(function(t){null!=t&&t.id?e.push(t.id):"number"!=typeof t&&"string"!=typeof t||e.push(parseInt("".concat(t).replace("u-",""),10))})):"number"!=typeof t&&"string"!=typeof t||e.push(parseInt("".concat(t).replace("u-",""),10)),e},p=function(t,e){var n=Slickplan.helpers.objectMergeDeep(t,e||{});return n.name="".concat(n.first_name," ").concat(n.last_name),n.normalizedName=Slickplan.helpers.normalizeString("".concat(n.name," ").concat(n.username.split("@")[0]," ").concat(n.email?n.email.split("@")[0]:"")),n.initials=Slickplan.helpers.getInitials(n.name),n.letter_filter=Slickplan.helpers.normalizeString(n.initials).charAt(0),d.includes(n.letter_filter)||(n.letter_filter="#"),n},m={team:[],groups:{}},h={activeUsers:function(t){return t.team.filter((function(t){return t.is_active}))},getData:function(t){return function(e,n){var r=f(e)[0],i=t.team.find((function(t){return t.id===r}));return i?n?i[n]||null:i:null}},getProjectContributors:function(t,e,n){return n.project.contributors.map((function(e){return t.team.find((function(t){return t.id===parseInt(e.id,10)}))})).filter((function(t){return t}))},getProjectActiveContributors:function(t,e,n){return n.project.contributors.map((function(e){return t.team.find((function(t){return t.is_active&&t.id===parseInt(e.id,10)}))})).filter((function(t){return t}))},getGroupName:function(t,e,n){return function(e){var r;return(null===(r=Object.values(t.groups[n.project.currentProjectType.project]||{}).find((function(t){return t.permissions.join("-")===Slickplan.helpers.sortString(e).join("-")})))||void 0===r?void 0:r.id)||"custom"}}},v={set:function(t,e){var n,r,o=t.commit;(m.team=[],"object"===c(e)&&!Array.isArray(e)&&null!==(n=e)&&void 0!==n&&n.users)&&(null!==(r=e)&&void 0!==r&&r.groups&&o("setGroups",e.groups),e=Slickplan.helpers.objectCloneDeep(e.users));u=0,i()(a()(e,["avatar","id"],["desc","asc"]),(function(t){o(s.mutationTypes.TEAM_MEMBER_ADD,t)}))},addMember:function(t,e){(0,t.commit)(s.mutationTypes.TEAM_MEMBER_ADD,e)},updateMember:function(t,e){(0,t.commit)(s.mutationTypes.TEAM_MEMBER_UPDATE,e)},deleteMember:function(t,e){(0,t.commit)(s.mutationTypes.TEAM_MEMBER_DELETE,e)}},b=l(l(l(l({},s.mutationTypes.TEAM_MEMBER_ADD,(function(t,e){var n=Slickplan.helpers.objectCloneDeep(e);n.color=s.userColors[u],++u>=s.userColors.length&&(u=0),n.id=parseInt(n.id,10),n.uid="u-".concat(n.id),n.is_selected=!1,n.isHidden=!1,n.is_saving=!1,n.is_hover=!1,t.team=Slickplan.helpers.sortString([].concat(t.team,p(n)),"normalizedName")})),s.mutationTypes.TEAM_MEMBER_UPDATE,(function(t,e){var n=e.ids,r=e.data,i=f(n);t.team=Slickplan.helpers.sortString(t.team.map((function(t){return i.includes(t.id)?p(t,r):t})),"normalizedName")})),s.mutationTypes.TEAM_MEMBER_DELETE,(function(t,e){var n=f(e);t.team=t.team.filter((function(t){return!n.includes(t.id)}))})),"setGroups",(function(t,e){var n=Slickplan.helpers.objectCloneDeep(e);Object.keys(n).forEach((function(t){Object.keys(n[t]).forEach((function(e){n[t][e].id=e,n[t][e].permissions=Slickplan.helpers.sortString(n[t][e].permissions)}))})),t.groups=n}));const y={namespaced:!0,state:m,getters:h,actions:v,mutations:b}},81988:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(99016),i=["permissions"];function o(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var a={isGuest:function(t){return Object.keys(t.guestTokens).length},isGuestIntroduced:function(t){return t.guest.name&&t.guest.email}},s={set:function(t,e){var n=e.permissions,a=o(e,i);n&&(t.permissions=Slickplan.helpers.objectCloneDeep(n));var s=Slickplan.helpers.objectMergeDeep(t.user,a);s.id&&(s.id=parseInt(s.id,10),Slickplan.globalVars.userId=s.id,s.uid="u-".concat(s.id)),s.company_logo_type||(s.company_logo_type="image"),"string"==typeof s.site_color&&("#"!==s.site_color.charAt(0)&&(s.site_color="#".concat(s.site_color)),/^#[a-f0-9]{3}([a-f0-9]{3})?$/i.test(s.site_color)||delete s.site_color),"number"!=typeof s.dark_font&&void 0!==s.dark_font&&(s.dark_font=Number(s.dark_font)),s.branding=this.state.core.planLimits.branding&&!(s.site_color===Slickplan.constants.DEFAULT_SITE_COLOR&&0===s.dark_font&&("image"!==s.company_logo_type||s.company_logo)),document.documentElement.style.setProperty("--branding-bg-color",s.branding?s.site_color:Slickplan.constants.DEFAULT_SITE_COLOR),document.documentElement.style.setProperty("--branding-text-color",s.branding&&s.dark_font?"#222":"#fff"),document.body.classList[s.branding?"add":"remove"]("has-branding"),r.default.set(t,"user",s)},append:function(t,e){r.default.set(t,"user",Slickplan.helpers.objectMergeDeep(t.user,e))},setGuest:function(t,e){Object.keys(t.guest).forEach((function(n){t.guest[n]=e[n]||""})),r.default.set(t,"guestTokens",e.projects)},setGlobalPreferences:function(t,e){r.default.set(t,"preferences",Slickplan.helpers.objectMergeDeep(t.preferences,e||{}))}};const l={namespaced:!0,state:{user:{},permissions:[],guest:{name:"",email:""},guestTokens:{},preferences:{cells_numbering:!1,sitemap_label_regular_case:!1}},getters:a,actions:{},mutations:s}},73948:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(14580);function i(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var l={connectedUsers:[],chat:r.constants.WEBSOCKET_CHAT_CLOSED,messages:[]},c={joining:function(t,e){(0,t.commit)(r.mutationTypes.WEBSOCKET_JOINING,e)},leaving:function(t,e){var n=t.commit;n(r.mutationTypes.WEBSOCKET_LEAVING,e),n("content/clearLockBuilderBlocks",e,{root:!0}),n("sitemapCell/resetEditingBy",{user:e},{root:!0})},setChatVisibility:function(t,e){var n=t.commit;e!==r.constants.WEBSOCKET_CHAT_CLOSED&&e!==r.constants.WEBSOCKET_CHAT_COLLAPSED&&e!==r.constants.WEBSOCKET_CHAT_EXPANDED||n(r.mutationTypes.WEBSOCKET_CHAT_STATUS,e)},addChatMessage:function(t,e){var n=t.commit,i=e.user,o=e.data;i&&o&&n(r.mutationTypes.WEBSOCKET_CHAT_MESSAGE_ADD,{userId:i,message:o,time:Slickplan.helpers.formatTime()})},addChatInfo:function(t,e){var n=t.commit;e&&n(r.mutationTypes.WEBSOCKET_CHAT_MESSAGE_ADD,{message:e,time:Slickplan.helpers.formatTime()})},clearChat:function(t){(0,t.commit)(r.mutationTypes.WEBSOCKET_CHAT_CLEAR)}},u=i(i(i(i(i({},r.mutationTypes.WEBSOCKET_JOINING,(function(t,e){var n=[].concat(e).map((function(t){return"object"===s(t)?t.id:t})).filter((function(t){return t}));n.length&&(t.connectedUsers=o(new Set([].concat(t.connectedUsers,n))))})),r.mutationTypes.WEBSOCKET_LEAVING,(function(t,e){if(t.connectedUsers.length){var n=[].concat(e).map((function(t){return"object"===s(t)?t.id:t})).filter((function(t){return t}));t.connectedUsers=Slickplan.helpers.arrayDiff(t.connectedUsers,n)}})),r.mutationTypes.WEBSOCKET_CHAT_STATUS,(function(t,e){t.chat=e})),r.mutationTypes.WEBSOCKET_CHAT_CLEAR,(function(t){t.messages=[]})),r.mutationTypes.WEBSOCKET_CHAT_MESSAGE_ADD,(function(t,e){var n=e.userId,r=e.message,i=e.time;if(Array.isArray(r)||(r=String(r).trim().split("\n")),r.length){if(n){var o=t.messages[t.messages.length-1];o&&o.userId&&o.userId===n&&o.time===i&&(r=o.message.concat(r),t.messages=t.messages.slice(0,t.messages.length-1))}t.messages.push({userId:n,time:i,message:r})}}));const d={namespaced:!0,state:l,getters:{},actions:c,mutations:u}},63160:()=>{window.tinymce&&tinymce.PluginManager.add("placeholder",(function(t){t.on("init",(function(){var e=function(){var e=t.getElement().getAttribute("placeholder")||t.options.get("placeholder"),n=t.options.get("placeholder_attrs")||{class:"tinymce-placeholder"},r=t.getContentAreaContainer();tinymce.DOM.setStyle(r,"position","relative"),this.el=tinymce.DOM.add(r,t.options.get("placeholder_tag")||"div",n,e)};e.prototype.hide=function(){tinymce.DOM.setStyle(this.el,"display","none")},e.prototype.show=function(){tinymce.DOM.setStyle(this.el,"display","block")};var n=new e;function r(){1==!t.options.get("readonly")&&n.hide(),t.execCommand("mceFocus",!1)}function i(){""===t.getContent()?n.show():n.hide()}i(),tinymce.DOM.bind(n.el,"click",r),t.on("focus",r),t.on("blur",i),t.on("change",i),t.on("setContent",i),t.on("keydown",(function(){n.hide()}))}))}))},5507:(t,e,n)=>{"use strict";n.r(e);var r=n(47928);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:String(e)}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}!function(){if(window.tinymce){var t,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.VK"),i="",a=[],l=function(t){return function(e){return a=c(n=e),(null===n?"null":"object"===a&&Array.isArray(n)?"array":"object"===a&&(s=r=n,(i=String).prototype.isPrototypeOf(s)||(null===(o=r.constructor)||void 0===o?void 0:o.name)===i.name)?"string":a)===t;var n,r,i,o,a,s}},u=function(t){return function(e){return c(e)===t}},d=l("string"),f=l("object"),p=l("array"),m=(t=null,function(e){return t===e}),h=u("boolean"),v=u("function"),b=function(t,e){if(p(t)){for(var n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return!0}return!1},y=function(){},g=function(t,e){return t===e},_=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tag=e,this.value=n}var e,n,r;return e=t,r=[{key:"some",value:function(e){return new t(!0,e)}},{key:"none",value:function(){return t.singletonNone}},{key:"from",value:function(e){return function(t){return null==t}(e)?t.none():t.some(e)}}],(n=[{key:"fold",value:function(t,e){return this.tag?e(this.value):t()}},{key:"isSome",value:function(){return this.tag}},{key:"isNone",value:function(){return!this.tag}},{key:"map",value:function(e){return this.tag?t.some(e(this.value)):t.none()}},{key:"bind",value:function(e){return this.tag?e(this.value):t.none()}},{key:"exists",value:function(t){return this.tag&&t(this.value)}},{key:"forall",value:function(t){return!this.tag||t(this.value)}},{key:"filter",value:function(e){return!this.tag||e(this.value)?this:t.none()}},{key:"getOr",value:function(t){return this.tag?this.value:t}},{key:"or",value:function(t){return this.tag?this:t}},{key:"getOrThunk",value:function(t){return this.tag?this.value:t()}},{key:"orThunk",value:function(t){return this.tag?this:t()}},{key:"getOrDie",value:function(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")}},{key:"getOrNull",value:function(){return this.tag?this.value:null}},{key:"getOrUndefined",value:function(){return this.value}},{key:"each",value:function(t){this.tag&&t(this.value)}},{key:"toArray",value:function(){return this.tag?[this.value]:[]}},{key:"toString",value:function(){return this.tag?"some(".concat(this.value,")"):"none()"}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();_.singletonNone=new _(!1);var S=Array.prototype.indexOf,C=Array.prototype.push,k=function(t,e){return function(t,e){return S.call(t,e)}(t,e)>-1},x=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!p(t[n]))throw new Error("Arr.flatten item ".concat(n," was not an array, input: ").concat(t));C.apply(e,t[n])}return e},w=function(t,e){return x(function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r}(t,e))},E=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return _.none()},O=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return t.exists((function(t){return n(t,e)}))},D=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},A=function(t,e){return t?_.some(e):_.none()},T=function(t){return function(e){return e.options.get(t)}},P=T("link_assume_external_targets"),L=T("link_context_toolbar"),j=T("link_list"),I=T("link_default_target"),M=T("link_default_protocol"),R=T("link_target_list"),N=T("link_rel_list"),$=T("link_class_list"),F=T("link_title"),B=T("allow_unsafe_link_target"),U=T("link_quicklink"),G=tinymce.util.Tools.resolve("tinymce.util.Tools"),H=function(t){return d(t.value)?t.value:""},z=function t(e,n){var r=[];return G.each(e,(function(e){var i=function(t){return d(t.text)?t.text:d(t.title)?t.title:""}(e);if(void 0!==e.menu){var o=t(e.menu,n);r.push({text:i,items:o})}else{var a=n(e);r.push({text:i,value:a})}})),r},V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H;return function(e){return _.from(e).map((function(e){return z(e,t)}))}},K={sanitize:function(t){return V(H)(t)},sanitizeWith:V,createUi:function(t,e){return function(n){return{name:t,type:"listbox",label:e,items:n}}},getValue:H},W=Object.keys,q=Object.hasOwnProperty,Y=function(t,e,n,r){return function(t,e){for(var n=W(t),r=0,i=n.length;r<i;r++){var o=n[r];e(t[o],o)}}(t,(function(t,i){(e(t,i)?n:r)(t,i)})),{}},X=function(t,e){return q.call(t,e)},Z=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Q=tinymce.util.Tools.resolve("tinymce.util.URI"),J=function(t){return t&&"a"===t.nodeName.toLowerCase()},tt=function(t){return J(t)&&!!rt(t)},et=function(t,e){if(t.collapsed)return[];var n=t.cloneContents(),r=new Z(n.firstChild,n),i=[],o=n.firstChild;do{e(o)&&i.push(o)}while(o=r.next());return i},nt=function(t){return/^\w+:/i.test(t)},rt=function(t){return t.getAttribute("data-mce-href")||t.getAttribute("href")},it=function(t,e){var n=["noopener"],r=t?t.split(/\s+/):[],i=function(t){return t.filter((function(t){return-1===G.inArray(n,t)}))},o=e?function(t){return(t=i(t)).length>0?t.concat(n):n}(r):i(r);return o.length>0?function(t){return G.trim(t.sort().join(" "))}(o):""},ot=function(t,e){return e=e||t.selection.getNode(),ct(e)?t.dom.select("a[href]",e)[0]:t.dom.getParent(e,"a[href]")},at=function(t,e){return function(t){return t.replace(/\uFEFF/g,"")}(e?e.innerText||e.textContent:t.getContent({format:"text"}))},st=function(t){return G.grep(t,tt).length>0},lt=function(t){var e=t.schema.getTextInlineElements();return 0===et(t.selection.getRng(),(function(t){return 1===t.nodeType&&!J(t)&&!X(e,t.nodeName.toLowerCase())})).length},ct=function(t){return t&&"FIGURE"===t.nodeName&&/\bimage\b/i.test(t.className)},ut=function(t,e){var n=o({},e);if(0===N(t).length&&!B(t)){var r=it(n.rel,"_blank"===n.target);n.rel=r||null}return _.from(n.target).isNone()&&!1===R(t)&&(n.target=I(t)),n.href=function(t,e){return"http"!==e&&"https"!==e||nt(t)?t:"".concat(e,"://").concat(t)}(n.href,P(t)),n},dt=function(t,e,n){var r=t.selection.getNode(),i=ot(t,r),o=ut(t,function(t){var e,n,r;return e=["title","rel","class","target"],n=function(e,n){return t[n].each((function(t){e[n]=t.length>0?t:null})),e},r={href:t.href},function(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n],n)}(e,(function(t,e){r=n(r,t,e)})),r}(n));t.undoManager.transact((function(){n.href===e.href&&e.attach(),i?(t.focus(),function(t,e,n,r){n.each((function(t){X(e,"innerText")?e.innerText=t:e.textContent=t})),t.dom.setAttribs(e,r),t.selection.select(e)}(t,i,n.text,o)):function(t,e,n,r){ct(e)?vt(t,e,r):n.fold((function(){t.execCommand("mceInsertLink",!1,r)}),(function(e){t.insertContent(t.dom.createHTML("a",r,t.dom.encode(e)))}))}(t,r,n.text,o)}))},ft=function(t){var e=t.class,n=t.href,r=t.rel,i=t.target,o=t.text,a=t.title;return function(t,e){var n,r={};return Y(t,e,(n=r,function(t,e){n[e]=t}),y),r}({class:e.getOrNull(),href:n,rel:r.getOrNull(),target:i.getOrNull(),text:o.getOrNull(),title:a.getOrNull()},(function(t,e){return!1===m(t)}))},pt=function(t,e,n){var r=function(t,e){var n=t.options.get,r={allow_html_data_urls:n("allow_html_data_urls"),allow_script_urls:n("allow_script_urls"),allow_svg_data_urls:n("allow_svg_data_urls")},i=e.href;return o(o({},e),{},{href:Q.isDomSafe(i,"a",r)?i:""})}(t,n);t.hasPlugin("rtc",!0)?t.execCommand("createlink",!1,ft(r)):dt(t,e,r)},mt=function(t){t.hasPlugin("rtc",!0)?t.execCommand("unlink"):function(t){t.undoManager.transact((function(){var e=t.selection.getNode();ct(e)?ht(t,e):function(t){var e=t.dom,n=t.selection,r=n.getBookmark(),i=n.getRng().cloneRange(),o=e.getParent(i.startContainer,"a[href]",t.getBody()),a=e.getParent(i.endContainer,"a[href]",t.getBody());o&&i.setStartBefore(o),a&&i.setEndAfter(a),n.setRng(i),t.execCommand("unlink"),n.moveToBookmark(r)}(t),t.focus()}))}(t)},ht=function(t,e){var n=t.dom.select("img",e)[0];if(n){var r=t.dom.getParents(n,"a[href]",e)[0];r&&(r.parentNode.insertBefore(n,r),t.dom.remove(r))}},vt=function(t,e,n){var r=t.dom.select("img",e)[0];if(r){var i=t.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},bt=function(t){return X(e=t,n="items")&&void 0!==e[n]&&null!==e[n];var e,n},yt=function t(e,n){return E(n,(function(n){return bt(n)?t(e,n.items):A(n.value===e,n)}))},gt=function(t,e,n,r){var i=r[e],o=t.length>0;return void 0!==i?yt(i,n).map((function(e){return{url:{value:e.value,meta:{text:o?t:e.text,attach:y}},text:o?t:e.text}})):_.none()},_t=function(t,e){var n={text:t.text,title:t.title},r=function(t){var e,r=(e=t.url,A(n.text.length<=0,_.from(e.meta.text).getOr(e.value))),i=function(t){return A(n.title.length<=0,_.from(t.meta.title).getOr(""))}(t.url);return r.isSome()||i.isSome()?_.some(o(o({},r.map((function(t){return{text:t}})).getOr({})),i.map((function(t){return{title:t}})).getOr({}))):_.none()},i=function(t,r){var i,o,a=(i=e,o=r.name,"link"===o?i.link:"anchor"===o?i.anchor:_.none()).getOr([]);return gt(n.text,r.name,a,t)};return{onChange:function(t,e){var o=e.name;return"url"===o?r(t()):k(["anchor","link"],o)?i(t(),e):"text"===o||"title"===o?(n[o]=t()[o],_.none()):_.none()}}},St=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ct=function(t){var e=t.href;return e.indexOf("@")>0&&-1===e.indexOf("/")&&-1===e.indexOf("mailto:")?_.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(t){return o(o({},t),{},{href:"mailto:".concat(e)})}}):_.none()},kt=function(t,e){return function(n){var r=n.href;return 1===t&&!nt(r)||0===t&&/^\s*www(\.|\d\.)/i.test(r)?_.some({message:"The URL you entered seems to be an external link. Do you want to add the required ".concat(e,":// prefix?"),preprocess:function(t){return o(o({},t),{},{href:"".concat(e,"://").concat(r)})}}):_.none()}},xt=function(t,e){return E([Ct,kt(P(t),M(t))],(function(t){return t(e)})).fold((function(){return Promise.resolve(e)}),(function(n){return new Promise((function(r){!function(t,e,n){var r=t.selection.getRng();St.setEditorTimeout(t,(function(){t.windowManager.confirm(e,(function(e){t.selection.setRng(r),n(e)}))}))}(t,n.message,(function(t){r(t?n.preprocess(e):e)}))}))}))},wt=function(t){var e=t.dom.select("a:not([href])"),n=w(e,(function(t){var e=t.name||t.id;return e?[{text:e,value:"#".concat(e)}]:[]}));return n.length>0?_.some([{text:"None",value:""}].concat(n)):_.none()},Et=function(t){var e=$(t);return e.length>0?K.sanitize(e):_.none()},Ot=function(t){try{return _.some(JSON.parse(t))}catch(t){return _.none()}},Dt=function(t){var e=function(e){return t.convertURL(e.value||e.url,"href")},n=j(t);return new Promise((function(t){d(n)?fetch(n).then((function(t){return t.ok?t.text().then(Ot):Promise.reject()})).then(t,(function(){return t(_.none())})):v(n)?n((function(e){return t(_.some(e))})):t(_.from(n))})).then((function(t){return t.bind(K.sanitizeWith(e)).map((function(t){if(t.length>0){return[{text:"None",value:""}].concat(t)}return t}))}))},At=function(t,e){var n=N(t);if(n.length>0){var r=O(e,"_blank");return(!1===B(t)?K.sanitizeWith((function(t){return it(K.getValue(t),r)})):K.sanitize)(n)}return _.none()},Tt=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],Pt=function(t){var e=R(t);return p(e)?K.sanitize(e).orThunk((function(){return _.some(Tt)})):!1===e?_.none():_.some(Tt)},Lt=function(t,e,n){var r=t.getAttrib(e,n);return null!==r&&r.length>0?_.some(r):_.none()},jt=function(t,e){return Dt(t).then((function(n){var r=function(t,e){var n=t.dom,r=lt(t)?_.some(at(t.selection,e)):_.none(),i=e?_.some(n.getAttrib(e,"href")):_.none(),o=e?_.from(n.getAttrib(e,"target")):_.none(),a=Lt(n,e,"rel"),s=Lt(n,e,"class");return{url:i,text:r,title:Lt(n,e,"title"),target:o,rel:a,linkClass:s}}(t,e);return{anchor:r,catalogs:{targets:Pt(t),rels:At(t,r.target),classes:Et(t),anchor:wt(t),link:n},optNode:_.from(e),flags:{titleEnabled:F(t)}}}))},It=function(t,e,n){var o,s=t.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),l=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],c=function(t,e){var n=t.anchor,r=n.url.getOr("");return i="slickplan"===r.split(":")[0]?r:"",{url:{value:r,meta:{original:{value:r}}},urlinternal:i,text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(e).getOr(""),linkClass:n.linkClass.getOr("")}}(t,_.from(I(n))),u=t.catalogs,d=_t(c,u);a=(a=r.default.getters["sitemapCell/getCellsForDropdown"](null,null,!0)).map((function(t){return t.options.map((function(t){return{text:"".concat(t.text).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),value:"slickplan:".concat(t.id)}}))})).flat();var f=x([[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],s,l,D([u.anchor.map(K.createUi("anchor","Anchors")),u.rels.map(K.createUi("rel","Rel")),u.targets.map(K.createUi("target","Open link in...")),u.link.map(K.createUi("link","Link list")),u.classes.map(K.createUi("linkClass","Class"))])]);if(a.length){var p=[{name:"urlinternal",type:"selectbox",label:"Sitemap page",items:[{text:"Select page",value:""}].concat(a)}];o={type:"tabpanel",tabs:[{name:"external",title:"External Link",items:f},{name:"internal",title:"Internal Link",items:x([p,s])}]}}else o={type:"panel",items:f};return{title:"Insert/Edit Link",size:"normal",body:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:c,onChange:function(t,e){var n=e.name;if("urlinternal"===n){var r=t.getData(),o=r.url,a=r.urlinternal;o.value=a,i=a,t.setData({url:o})}d.onChange(t.getData,{name:n}).each((function(e){t.setData(e)}))},onTabChange:function(t,e){var n=t.getData(),r=n.url,o=n.urlinternal;"internal"===e.newTabName?r.value=i:(i=o,r.value=""),t.setData({url:r})},onSubmit:e}},Mt=function(t){var e=function(t){var e=ot(t);return jt(t,e)}(t);e.then((function(e){var n=function(t,e){return function(n){var r=n.getData();if(!r.url.value)return mt(t),void n.close();"slickplan"!==r.url.value.split(":")[0]||r.text||(r.text=a.find((function(t){return t.value===r.url.value})),r.text=r.text?r.text.text:"Page");var i=function(t){return _.from(r[t]).filter((function(n){return!O(e.anchor[t],n)}))},o={href:r.url.value,text:i("text"),target:i("target"),rel:i("rel"),class:i("linkClass"),title:i("title")},s={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:y};xt(t,o).then((function(e){pt(t,s,e)})),n.close()}}(t,e);return It(e,n,t)})).then((function(e){var n=t.windowManager.open(e);setTimeout((function(){n.showTab(e.initialData.urlinternal?"internal":"external")}),1)}))},Rt=function(t){var e=document.createElement("a");e.target="_blank",e.href=t,e.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),function(t,e){document.body.appendChild(t),t.dispatchEvent(e),document.body.removeChild(t)}(e,n)},Nt=function(t,e){return t.dom.getParent(e,"a[href]")},$t=function(t){return Nt(t,t.selection.getStart())},Ft=function(t,e){if(e){var n=rt(e);if(/^#/.test(n)){var r=t.dom.select(n);r.length&&t.selection.scrollIntoView(r[0],!0)}else Rt(e.href)}},Bt=function(t){return function(){Mt(t)}},Ut=function(t){return function(){Ft(t,$t(t))}},Gt=function(t,e){return t.on("NodeChange",e),function(){return t.off("NodeChange",e)}},Ht=function(t){return function(e){var n=function(){return e.setActive(!t.mode.isReadOnly()&&null!==ot(t,t.selection.getNode()))};return n(),Gt(t,n)}},zt=function(t){return function(e){var n=function(){return e.setEnabled(null!==ot(t,t.selection.getNode()))};return n(),Gt(t,n)}},Vt=function(t){return function(e){var n=function(e){return st(e)||(n=t.selection.getRng(),et(n,tt).length>0);var n},r=t.dom.getParents(t.selection.getStart());return e.setEnabled(n(r)),Gt(t,(function(t){return e.setEnabled(n(t.parents))}))}},Kt=function(t){var e=function(e){var n=t.selection.getNode();return e.setEnabled(null!==ot(t,n)),y};t.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Ht(t)},label:"Link",predicate:function(e){return!!ot(t,e)&&L(t)},initValue:function(){var e=ot(t);return e?rt(e):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(e){var n=t.selection.getNode();return e.setActive(!!ot(t,n)),Ht(t)(e)},onAction:function(e){var n=e.getValue(),r=function(e){var n=ot(t),r=lt(t);if(!n&&r){var i=at(t.selection,n);return _.some(i.length>0?i:e)}return _.none()}(n);pt(t,{href:n,attach:y},{href:n,text:r,title:_.none(),rel:_.none(),target:_.none(),class:_.none()}),function(t){t.selection.collapse(!1)}(t),e.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:e,onAction:function(e){mt(t),e.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:e,onAction:function(e){Ut(t)(),e.hide()}}]})};e.add("slickplanlink",(function(t){!function(t){var e=t.options.register;e("link_assume_external_targets",{processor:function(t){var e=d(t)||h(t);return e?!0===t?{value:1,valid:e}:"http"===t||"https"===t?{value:t,valid:e}:{value:0,valid:e}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),e("link_context_toolbar",{processor:"boolean",default:!1}),e("link_list",{processor:function(t){return d(t)||v(t)||b(t,f)}}),e("link_default_target",{processor:"string"}),e("link_default_protocol",{processor:"string",default:"https"}),e("link_target_list",{processor:function(t){return h(t)||b(t,f)},default:!0}),e("link_rel_list",{processor:"object[]",default:[]}),e("link_class_list",{processor:"object[]",default:[]}),e("link_title",{processor:"boolean",default:!0}),e("allow_unsafe_link_target",{processor:"boolean",default:!1}),e("link_quicklink",{processor:"boolean",default:!1})}(t),function(t){t.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:Bt(t),onSetup:Ht(t)}),t.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Ut(t),onSetup:zt(t)}),t.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return mt(t)},onSetup:Vt(t)})}(t),function(t){t.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Ut(t),onSetup:zt(t)}),t.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:Bt(t)}),t.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return mt(t)},onSetup:Vt(t)})}(t),function(t){t.ui.registry.addContextMenu("link",{update:function(e){return st(t.dom.getParents(e,"a"))?"link unlink openlink":"link"}})}(t),Kt(t),function(t){t.on("click",(function(e){var r=Nt(t,e.target);r&&n.metaKeyPressed(e)&&(e.preventDefault(),Ft(t,r))})),t.on("keydown",(function(e){var n=$t(t);n&&13===e.keyCode&&function(t){return!0===t.altKey&&!1===t.shiftKey&&!1===t.ctrlKey&&!1===t.metaKey}(e)&&(e.preventDefault(),Ft(t,n))}))}(t),function(t){t.addCommand("mceLink",(function(){U(t)?t.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"}):Bt(t)()}))}(t),function(t){t.addShortcut("Meta+K","",(function(){t.execCommand("mceLink")}))}(t)}))}}()},77916:(t,e,n)=>{"use strict";n.r(e),n.d(e,{translations:()=>i});var r={apply:"Apply",submit:"Submit",cancel:"Cancel",reset:"Reset",next:"Next",back:"Back",save:"Save",save_changes:"Save changes",show:"Show",all_projects:"All Projects",sitemaps:"Sitemaps",diagrams:"Diagrams",sort_by:"Sort by",date:"Date",name:"Name",status:"Status",active:"Active",archived:"Archived",confirm_deletion:"Confirm Deletion",new_project:"New Project",add_new_project:"Add New Project",add_new_member:"Add New Member",add_new_user:"Add new user",new_user:"New User",edit_user:"Edit User",share:"Share",lock:"Lock",unlock:"Unlock",activate:"Activate",deactivate:"Deactivate",archive:"Archive",edit:"Edit",delete:"Delete",update:"Update",locking:"Locking",unlocking:"Unlocking",activating:"Activating",archiving:"Archiving",saving:"Saving",change:"Change",changed:"Updated :date",selected:"Selected",select_all:"Select All",deselect_all:"Deselect",connect:"Connect",disconnect:"Disconnect",confirm_disconnection:"Confirm Disconnection",continue:"Continue",select:"Select",upgrade_now:"Upgrade now",print:"Print",loading:"Loading",loading_form:"Loading Form",download:"Download",account:"Account",my_profile:"My Profile",company_settings:"Company Settings",plans_and_billing:"Plans & Billing",invoices:"Invoices",message_templates:"Message Templates",preferences:"General Settings",account_name:"Company/Account Name",account_url:"Account URL",company_logo_colors:"Company Logo & Colors (Optional)",select_colors_and_logo:"Select Colors & Logo",readable_1:"Can you read this?",readable_2:"What about this?",light_text:"Light text",dark_text:"Dark text",team:"Team",help:"Help",logout:"Log Out",integrations:"Integrations",monthly:"Monthly",yearly_with_discount:"Yearly · 10% OFF",unlimited_users:"Unlimited users",unlimited_projects:"Unlimited projects",storage_limit:"storage limit",no_storage_space:"No storage space",email_support:"Email support",no_feature:"No :feature",plan_option:"Plan option",email_and_phone_support:"Email & phone support",your_current_plan:"Your current plan",billed_annually:"billed annually",transaction_id:"Transaction ID",amount:"Amount",invoice_address:"Invoice address",send:"Send",seconds:"second|seconds",minutes:"minute|minutes",hours:"hour|hours",days:"day|days",months:"month|months",account_users:"account user|account users",active_projects:"active project|active projects",diagram:"Diagram",site_planning:"Site Planning",user_flow_diagram:"User Flow Diagram",site_planning_project:"Site Planning Project",change_to_default:"Change to default",logo:"Logo",add_logo:"Add Logo",change_logo:"Change Logo",delete_logo:"Delete Logo",upload_logo:"Upload Logo",add_photo:"Add Photo",change_photo:"Change Photo",delete_photo:"Delete Photo",api_key:"API Key",api_application_name:"Name of your application",api_application_url:"Application URL",api_client_id:"Client ID",api_client_secret:"Client Secret",api_redirect_uris:"Redirect URIs",api_delete:"Delete this app",api_register:"Register this app",new_account:"New Account - :account",click_to_finish_registration:"Click to Finish Registration",add_new_account:"Add new account",first_name:"First Name",last_name:"Last Name",timezone:"Timezone",company_name:"Company Name",subdomain:"Subdomain",username:"Username",email:"Email",email_address:"Email Address",password:"Password",new_password:"New Password",forgot_password:"Forgot password?",keep_logged_in:"Keep me logged in on this computer",sign_in:"Login",send_password_reset:"Send password reset email",save_new_password:"Save new password",done_and_ready:"Done & Ready to Start",owner:"Owner",inactive:"Inactive",admin:"Admin",close_account:"Close account",delete_account:"Delete Account",cancel_and_keep_account:"Cancel & Keep Account",downgrade_account:"Downgrade Account",items:"item|items",projects:"project|projects",users:"user|users",templates:"template|templates",service_integration:":service Integration",see_details:"See Details",resources:"Resources",create_project_sitemap:"Plan a Website",create_project_diagram:"Create User Flow Diagram",select_project_type:"Select a project type",project_information:"Project Information",website_url:"Website URL",blank_project:"Blank Project",corporate_website:"Corporate Website",blog:"Blog",ecommerce:"E-commerce",lock_project:"Lock Project",lock_and_unlock_projects:"Lock & Unlock Project",project_members:"Project Members",create_project:"Create project",add_member:"Add member",basecamp_2_or_3:"Basecamp",basecamp_classic:"Classic",auth_token:"Authentication Token",regular_contributor:"Regular",administrator:"Administrator",permission_create_projects:"Allow creating new projects",permission_viewing_files:"Allow viewing all files",permission_payment:"Allow changing payment settings",permission_invoices:"Allow viewing invoice history",expires_date:"expires :date",project_name:"Project Name",type:"Type",share_on_service:"Share on :service",share_sitemap:"Share Sitemap",share_diagram:"Share Diagram",project_version_x:":title Version :version",select_project:"Select Project",select_category:"Select Category",select_channel:"Select Channel",select_recipients:"Select Recipients",select_account:"Select Account",enable_service_integration:"Enable :name integration",import:"Import",export:"Export"},i={"en.globals":r,"en.titles":{login:"Login",configure:"Configure your Account",profile:"My Profile",dashboard:"Dashboard",billing:"Plans & Billing Options",invoices:"Invoices",messages:"Message Templates",preferences:"General Settings",workflows:"Workflow Templates",team:"Team",integrations:"Integrations",sitemap:":title :version",diagram:":title"},"en.errors":{create_project_permission:"You don’t have permissions to create new projects.",upgrade_to_add_users:"Upgrade your account to add more users.",upgrade_to_add_projects:"Upgrade your account to add more projects.",upgrade_to_use_function:"Upgrade your account to use this function.",missing_project_permission:"You don’t have permissions to use this function, please contact your project admins."},"en.messages":{delete_multiple_versions:"<b>Warning!</b> Some projects have multiple versions, all of them will be deleted!",welcome:"Hi :name! Here are your projects",welcome_configure:"Welcome to Slickplan",welcome_configure_description:"We need a few things to get started.",contact_owner_for_permissions:"Please contact your account owner or any administrator in order to grant you the required permission.",no_projects_found:"No projects found",no_invoices_found:"No invoices found",no_users_found:"No users found",reset_filters:"reset filters",create_your_first_project:"Create your first project",create_your_first_project_description:"Build interactive sitemaps, craft user flow diagrams, gather content and share design mockups. Invite your team to streamline and collaborate planning a website or any interactive application.",trial_ends_in:"Your trial expires in <b>:countdown</b>.",payment_date_prepaid:"Account pre-paid, expires :date",payment_date_subscription:"Next invoice on :date for :amount",messages_saved:"New messages saved",api_about_application:"About Your Application",api_update_application:"Update Your Application",api_register_application:"Register Your Application",api_about_application_description:"We show customers this information when we ask them to authorize integration with your application.",api_oauth:"OAuth2 Authorization",api_oauth_description:"When you request API authorization, we ask the user whether to grant or deny access. We redirect back to this predetermined application URL with the user’s response. You can specify more than one URI, each in a new line.",api_oauth_guidance:'See the <a href="http://tools.ietf.org/html/draft-ietf-oauth-v2-05#section-3.6.1" target="_blank" rel="noreferrer noopener">OAuth2 spec</a> for guidance. If you haven’t implemented this in your app yet, enter the URL you expect to use. You can update it later.',api_application_deleted:"Application deleted",password_reset_sent:"An email with instructions has been sent",password_changed_sign_in:"Password changed, you can sign in to your account now",settings_saved:"New settings saved",logo_recommendation:"PNG, JPG or GIF <2 MB",delete_account:"Delete Slickplan Account",delete_account_warning:"Warning! This cannot be undone",delete_account_projects:"All your projects will be deleted",delete_account_links:"All shared links will be inaccessible",delete_account_comments:"All comments and history will be erased",delete_account_users:"Other users won’t have access anymore",downgrade_account:"Downgrade Slickplan Account",downgrade_account_current_plan_expire:"Your current plan has :days days remaining, expiring :date",downgrade_account_confirm:"Are you sure you want to downgrade to Free?",downgrade_account_projects:"All your projects except the last one will be archived",downgrade_account_features:"All features except basic sitemap editing will be limited",downgrade_account_files:"Uploaded files will be removed after :days days of downgrading",confirm_deletion_type:"Are you sure you would like to delete <b>:name</b> :type?",confirm_integration_deletion:"Are you sure you would like to remove <b>:name</b> integration?",integrations_offer:"Slickplan offers you a variety of integrations to speed up your work.",integrations_resource:"Need help? To find out more on how to use our extensions, go to",create_blank_or_template:"Create a new blank project or start with a template",create_project_sitemap:"Utilize and collaborate with our complete tool set including sitemap builder, content gathering, diagram maker and design mockup tools.",create_project_diagram:"Design flowcharts, user flow diagrams, journey paths, and more. Drag and drop quickly from a vast library of diagram shapes.",downgrade_to_free:"Your :old plan expires in :days days to a :new plan",account_downgraded:"Your :old plan has been switched to the :new plan",select_n_projects_to_continue:'You need to select and archive <b class="text-orange">:number</b> projects to continue',select_n_users_to_continue:'Deactivate <b class="text-orange">:number</b> people to continue',select_n_files_to_continue:'Select <b class="text-orange">:bytes</b> of files to delete to continue',continue_to_next_step:"Continue to the next step",plan_updates_complete:"All plan updates are complete",downgrade_to:"Updating to :plan",share_message:"I’ve created a new :type named „:title”: :url",share_message_html:'<p>I&rsquo;ve created a new :type named <strong>:title</strong>:<br><a href=":url">:url</a></p>',user_joined_chat:":name joined group chat",user_left_chat:":name left group chat",import_warning:"Import will overwrite your current :type. See the [help section](https://help.slickplan.com/categories/exporting-importing) for details.",template_delete_warning:"This template is being in use on <b>:pages pages</b>. This action cannot be undone.|These templates are being in use on <b>:pages pages</b>. This action cannot be undone.",error_loading:"Oops! There was an error loading :what, please try again. If errors persist, please contact Slickplan Support.",checkout_success_subscription:"Your account has been changed to the :plan plan. You will be charged :price :interval starting :date.",checkout_success_subscription_update:"Your account has been changed to the :plan plan. You will be charged :price :date and :future_price :interval starting :future_date.",checkout_success_onetime:"Your account has been changed to the :plan plan. You will be charged :price :date.",checkout_success_plan:"Your account has been changed to the :plan plan.",checkout_success_plan_with_interval:"Your account has been changed to the :interval :plan plan.",payment_method_takes_longer:"Your selected payment method takes longer to verify...",payment_method_takes_longer_note:"You can either wait here or close this page; we will notify you via email once the payment process is complete."},"en.inputs":{search_for_projects:"Search for a project...",add_project_member:"Add a Project Member..."},validator:{en:{messages:{required:"This field is required",required_if:"This field is required",email:"This must be a valid email"},attributes:{company_name:r.company_name,subdomain:r.subdomain,username:r.username,email:r.email,password:r.passive,first_name:r.first_name,last_name:r.last_name,name:"Name",cell_id:"Page"}}}}},84744:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(74556),i=n(39212),o=n.n(i),a=n(47928);function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c=null,u=null,d=null,f=!0,p={},m={join:function(){return this},here:function(){return this},joining:function(){return this},leaving:function(){return this},whisper:function(){return this},listenForWhisper:function(){return this}};const h={getEcho:function(){if(!f)return null;if(null===d){var t={"X-CSRF-TOKEN":Slickplan.globalVars.csrf,"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json"},e="/json/helpers/ws";d=new r.default({broadcaster:"pusher",key:"slickplan",host:window.location.hostname,httpHost:window.location.hostname,wsHost:window.location.hostname,wssHost:window.location.hostname,httpPath:"/app",useTLS:!1,forceTLS:!1,encrypted:!1,enableStats:!1,enabledTransports:["ws","wss"],authEndpoint:e,userAuthentication:{endpoint:e,transport:"ajax",headers:t},channelAuthorization:{endpoint:e,transport:"ajax",headers:t},auth:{headers:t}})}return d},getId:function(t){if(!u)return null;var e=Slickplan.helpers.castArray(t);return e.length&&(e=e.filter((function(t){return t}))),e.length&&"project"===e[0]&&(e=e.slice(2)),e.length?["project",c].concat(e).join("."):u},setProjectId:function(t){c=t,u=t?["project",t,"slickplan"].join("."):null},enable:function(t){return f=!!t,this},room:function(t){if(!f)return m;var e=this.getId(t);if(!e||!u)return m;var n=this.getEcho();return n?(p[e]||(p[e]={echo:n.join(e),users:[]},p[e].echo.here((function(t){p[e].users=s(new Set(t.map((function(t){return parseInt(t.id,10)}))))})).joining((function(t){var n=parseInt(t.id,10);p[e].users.includes(n)||p[e].users.push(n)})).leaving((function(t){var n=parseInt(t.id,10);p[e].users.includes(n)&&(p[e].users=p[e].users.filter((function(t){return t!==n})))}))),p[e].echo):m},leaveRoom:function(t){var e=this.getId(t);if(e&&p[e]){var n=this.getEcho();n&&(n.leave(e),p[e]=null,e===u&&this.setProjectId())}},isEmptyRoom:function(t){var e=this.getId(t);return!(p[e]&&p[e].users.length>1)},storeDispatch:function(t,e){var n=a.default.dispatch(t,e);return this.pushSitemap({store:{dispatch:t,payload:e}}),n},storeCommit:function(t,e){a.default.commit(t,e),this.pushSitemap({store:{commit:t,payload:e}})},newComment:function(t,e,n,r){Slickplan.websocket.room(["comments",e||Slickplan.globalVars["".concat(t,"Alias")]]).whisper("comment.add",{user:r||Slickplan.globalVars.userId,data:n})},newNotification:function(t,e,n,r){Slickplan.websocket.room(["notifications",e||Slickplan.globalVars["".concat(t,"Alias")]]).whisper("notified_users",{user:r||Slickplan.globalVars.userId,data:n})},_pushData:{},_defaults:{diagram:{elements:[],connectors:[],itemData:[]},sitemap:{store:[]}},pushDiagram:function(t,e,n){"diagram"!==this._pushData.type&&this._resetData("diagram",e||Slickplan.globalVars.diagramAlias,n||Slickplan.globalVars.userId),this._pushTo(t)},pushSitemap:function(t,e,n){"sitemap"!==this._pushData.type&&this._resetData("sitemap",e||Slickplan.globalVars.sitemapAlias,n||Slickplan.globalVars.userId),this._pushTo(t)},pushContent:function(t,e,n,r){var i=n.key,o=n.id,a=n.data;Slickplan.websocket.room(["content",t,e]).whisper("content.".concat(i),{user:r||Slickplan.globalVars.userId,id:o,data:a})},_resetData:function(t,e,n){this._pushData={data:Slickplan.helpers.objectCloneDeep(this._defaults[t]),roomId:[t,e],type:t,alias:e,user:n,callback:null}},_pushTo:function(t){var e=this;this.isEmptyRoom(this._pushData.roomId)||(Object.keys(this._pushData.data).forEach((function(n){t[n]&&(Array.isArray(t[n])?t[n].length&&(e._pushData.data[n]=t[n]):e._pushData.data[n].push(t[n]))})),this._pushData.callback||(this._pushData.callback=o()((function(){if(e._pushData&&e._pushData.type){if(Object.keys(e._pushData.data).some((function(t){return e._pushData.data[t].length}))){var t=e._pushData,n=t.user,r=t.data;Slickplan.websocket.room(e._pushData.roomId).whisper([e._pushData.type,"update"].join("."),{user:n,data:r})}e._pushData.data=Slickplan.helpers.objectCloneDeep(e._defaults[e._pushData.type])}}),50)),this._pushData.callback())}}},25704:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=s(t),a=o[0],l=o[1],c=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===l&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===l&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(l(t,s,s+a>c?c:s+a));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},59600:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},16:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var r=function t(){var e=[].slice.call(arguments),n=!1;"boolean"==typeof e[0]&&(n=e.shift());var r=e[0];if(i(r))throw new Error("extendee must be an object");for(var o=e.slice(1),a=o.length,s=0;s<a;s++){var l=o[s];for(var c in l)if(Object.prototype.hasOwnProperty.call(l,c)){var u=l[c];if(n&&(f=u,Array.isArray(f)||"[object Object]"=={}.toString.call(f))){var d=Array.isArray(u)?[]:{};r[c]=t(!0,Object.prototype.hasOwnProperty.call(r,c)&&!i(r[c])?r[c]:d,u)}else r[c]=u}}var f;return r};function i(t){return!t||"object"!=typeof t&&"function"!=typeof t}},3651:(t,e,n)=>{var r=n(27892)(n(97188),"DataView");t.exports=r},11276:(t,e,n)=>{var r=n(94212),i=n(62688),o=n(43916),a=n(16952),s=n(51016);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},93040:(t,e,n)=>{var r=n(65968),i=n(23740),o=n(24996),a=n(82600),s=n(7336);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},70420:(t,e,n)=>{var r=n(27892)(n(97188),"Map");t.exports=r},41476:(t,e,n)=>{var r=n(98720),i=n(54760),o=n(50088),a=n(29776),s=n(8619);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},50404:(t,e,n)=>{var r=n(27892)(n(97188),"Promise");t.exports=r},96920:(t,e,n)=>{var r=n(27892)(n(97188),"Set");t.exports=r},86152:(t,e,n)=>{var r=n(41476),i=n(29516),o=n(73504);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},10520:(t,e,n)=>{var r=n(93040),i=n(5643),o=n(43368),a=n(50636),s=n(53012),l=n(73388);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,t.exports=c},27128:(t,e,n)=>{var r=n(97188).Symbol;t.exports=r},99704:(t,e,n)=>{var r=n(97188).Uint8Array;t.exports=r},75200:(t,e,n)=>{var r=n(27892)(n(97188),"WeakMap");t.exports=r},16064:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},58640:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},17640:(t,e,n)=>{var r=n(60736),i=n(70348),o=n(52488),a=n(87684),s=n(51188),l=n(26700),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),u=!n&&i(t),d=!n&&!u&&a(t),f=!n&&!u&&!d&&l(t),p=n||u||d||f,m=p?r(t.length,String):[],h=m.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,h))||m.push(v);return m}},12040:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},21168:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},35600:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},28288:(t,e,n)=>{var r=n(76139),i=n(70864),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},56600:(t,e,n)=>{var r=n(70864);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},76139:(t,e,n)=>{var r=n(97792);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},26032:(t,e,n)=>{var r=n(80316),i=n(59236)(r);t.exports=i},64596:(t,e,n)=>{var r=n(68168)();t.exports=r},80316:(t,e,n)=>{var r=n(64596),i=n(95160);t.exports=function(t,e){return t&&r(t,e,i)}},34240:(t,e,n)=>{var r=n(97736),i=n(7668);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},94668:(t,e,n)=>{var r=n(21168),i=n(52488);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},16944:(t,e,n)=>{var r=n(27128),i=n(5664),o=n(73168),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},77732:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},93432:(t,e,n)=>{var r=n(16944),i=n(22892);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},59184:(t,e,n)=>{var r=n(4840),i=n(22892);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},4840:(t,e,n)=>{var r=n(10520),i=n(19124),o=n(72352),a=n(18608),s=n(43871),l=n(52488),c=n(87684),u=n(26700),d="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,v,b){var y=l(t),g=l(e),_=y?f:s(t),S=g?f:s(e),C=(_=_==d?p:_)==p,k=(S=S==d?p:S)==p,x=_==S;if(x&&c(t)){if(!c(e))return!1;y=!0,C=!1}if(x&&!C)return b||(b=new r),y||u(t)?i(t,e,n,h,v,b):o(t,e,_,n,h,v,b);if(!(1&n)){var w=C&&m.call(t,"__wrapped__"),E=k&&m.call(e,"__wrapped__");if(w||E){var O=w?t.value():t,D=E?e.value():e;return b||(b=new r),v(O,D,n,h,b)}}return!!x&&(b||(b=new r),a(t,e,n,h,v,b))}},57320:(t,e,n)=>{var r=n(10520),i=n(59184);t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],d=t[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in t))return!1}else{var p=new r;if(o)var m=o(d,f,u,t,e,p);if(!(void 0===m?i(f,d,3,o,p):m))return!1}}return!0}},67200:(t,e,n)=>{var r=n(87920),i=n(86084),o=n(8940),a=n(87456),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?f:s).test(a(t))}},87160:(t,e,n)=>{var r=n(16944),i=n(49024),o=n(22892),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},73968:(t,e,n)=>{var r=n(24493),i=n(78056),o=n(10552),a=n(52488),s=n(54860);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},25552:(t,e,n)=>{var r=n(11004),i=n(93320),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},94320:(t,e,n)=>{var r=n(26032),i=n(54900);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},24493:(t,e,n)=>{var r=n(57320),i=n(73640),o=n(12584);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},78056:(t,e,n)=>{var r=n(59184),i=n(19448),o=n(71256),a=n(19640),s=n(53960),l=n(12584),c=n(7668);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},76223:(t,e,n)=>{var r=n(12040),i=n(34240),o=n(73968),a=n(94320),s=n(43416),l=n(89165),c=n(72044),u=n(10552),d=n(52488);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,l(o));var p=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(p,(function(t,e){return c(t,e,n)}))}},94732:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},64184:(t,e,n)=>{var r=n(34240);t.exports=function(t){return function(e){return r(e,t)}}},72904:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},86040:(t,e,n)=>{var r=n(28288),i=n(97736),o=n(51188),a=n(8940),s=n(7668);t.exports=function(t,e,n,l){if(!a(t))return t;for(var c=-1,u=(e=i(e,t)).length,d=u-1,f=t;null!=f&&++c<u;){var p=s(e[c]),m=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=d){var h=f[p];void 0===(m=l?l(h,p,f):void 0)&&(m=a(h)?h:o(e[c+1])?[]:{})}r(f,p,m),f=f[p]}return t}},43416:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},60736:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},46524:(t,e,n)=>{var r=n(27128),i=n(12040),o=n(52488),a=n(77712),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},34428:(t,e,n)=>{var r=n(15608),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},89165:t=>{t.exports=function(t){return function(e){return t(e)}}},30968:t=>{t.exports=function(t,e){return t.has(e)}},59941:(t,e,n)=>{var r=n(10552);t.exports=function(t){return"function"==typeof t?t:r}},97736:(t,e,n)=>{var r=n(52488),i=n(19640),o=n(30976),a=n(71972);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},3228:(t,e,n)=>{var r=n(77712);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,l=null===e,c=e==e,u=r(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&t<e||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},72044:(t,e,n)=>{var r=n(3228);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},55280:(t,e,n)=>{var r=n(97188)["__core-js_shared__"];t.exports=r},59236:(t,e,n)=>{var r=n(54900);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},68168:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}},81180:(t,e,n)=>{var r=n(72904)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});t.exports=r},97792:(t,e,n)=>{var r=n(27892),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},19124:(t,e,n)=>{var r=n(86152),i=n(35600),o=n(30968);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(t),p=l.get(e);if(f&&p)return f==e&&p==t;var m=-1,h=!0,v=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++m<u;){var b=t[m],y=e[m];if(a)var g=c?a(y,b,m,e,t,l):a(b,y,m,t,e,l);if(void 0!==g){if(g)continue;h=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(b===t||s(b,t,n,a,l)))return v.push(e)}))){h=!1;break}}else if(b!==y&&!s(b,y,n,a,l)){h=!1;break}}return l.delete(t),l.delete(e),h}},72352:(t,e,n)=>{var r=n(27128),i=n(99704),o=n(70864),a=n(19124),s=n(73152),l=n(2060),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,d,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=s;case"[object Set]":var m=1&r;if(p||(p=l),t.size!=e.size&&!m)return!1;var h=f.get(t);if(h)return h==e;r|=2,f.set(t,e);var v=a(p(t),p(e),r,c,d,f);return f.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},18608:(t,e,n)=>{var r=n(21096),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in e:i.call(e,f)))return!1}var p=s.get(t),m=s.get(e);if(p&&m)return p==e&&m==t;var h=!0;s.set(t,e),s.set(e,t);for(var v=l;++d<u;){var b=t[f=c[d]],y=e[f];if(o)var g=l?o(y,b,f,e,t,s):o(b,y,f,t,e,s);if(!(void 0===g?b===y||a(b,y,n,o,s):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var _=t.constructor,S=e.constructor;_==S||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(h=!1)}return s.delete(t),s.delete(e),h}},4848:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},21096:(t,e,n)=>{var r=n(94668),i=n(23520),o=n(95160);t.exports=function(t){return r(t,o,i)}},36068:(t,e,n)=>{var r=n(16096);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},73640:(t,e,n)=>{var r=n(53960),i=n(95160);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},27892:(t,e,n)=>{var r=n(67200),i=n(15692);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5664:(t,e,n)=>{var r=n(27128),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},23520:(t,e,n)=>{var r=n(58640),i=n(40872),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},43871:(t,e,n)=>{var r=n(3651),i=n(70420),o=n(50404),a=n(96920),s=n(75200),l=n(16944),c=n(87456),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",h=c(r),v=c(i),b=c(o),y=c(a),g=c(s),_=l;(r&&_(new r(new ArrayBuffer(1)))!=m||i&&_(new i)!=u||o&&_(o.resolve())!=d||a&&_(new a)!=f||s&&_(new s)!=p)&&(_=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case h:return m;case v:return u;case b:return d;case y:return f;case g:return p}return e}),t.exports=_},15692:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},42828:(t,e,n)=>{var r=n(97736),i=n(70348),o=n(52488),a=n(51188),s=n(49024),l=n(7668);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,d=!1;++c<u;){var f=l(e[c]);if(!(d=null!=t&&n(t,f)))break;t=t[f]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&s(u)&&a(f,u)&&(o(t)||i(t))}},94212:(t,e,n)=>{var r=n(45604);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},62688:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},43916:(t,e,n)=>{var r=n(45604),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},16952:(t,e,n)=>{var r=n(45604),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},51016:(t,e,n)=>{var r=n(45604);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},51188:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},19640:(t,e,n)=>{var r=n(52488),i=n(77712),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},16096:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},86084:(t,e,n)=>{var r,i=n(55280),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},11004:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},53960:(t,e,n)=>{var r=n(8940);t.exports=function(t){return t==t&&!r(t)}},65968:t=>{t.exports=function(){this.__data__=[],this.size=0}},23740:(t,e,n)=>{var r=n(56600),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},24996:(t,e,n)=>{var r=n(56600);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},82600:(t,e,n)=>{var r=n(56600);t.exports=function(t){return r(this.__data__,t)>-1}},7336:(t,e,n)=>{var r=n(56600);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},98720:(t,e,n)=>{var r=n(11276),i=n(93040),o=n(70420);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},54760:(t,e,n)=>{var r=n(36068);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},50088:(t,e,n)=>{var r=n(36068);t.exports=function(t){return r(this,t).get(t)}},29776:(t,e,n)=>{var r=n(36068);t.exports=function(t){return r(this,t).has(t)}},8619:(t,e,n)=>{var r=n(36068);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},73152:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},12584:t=>{t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},9032:(t,e,n)=>{var r=n(1576);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},45604:(t,e,n)=>{var r=n(27892)(Object,"create");t.exports=r},93320:(t,e,n)=>{var r=n(21304)(Object.keys,Object);t.exports=r},59180:(t,e,n)=>{t=n.nmd(t);var r=n(4848),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},73168:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},21304:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},97188:(t,e,n)=>{var r=n(4848),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},29516:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},73504:t=>{t.exports=function(t){return this.__data__.has(t)}},2060:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},5643:(t,e,n)=>{var r=n(93040);t.exports=function(){this.__data__=new r,this.size=0}},43368:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},50636:t=>{t.exports=function(t){return this.__data__.get(t)}},53012:t=>{t.exports=function(t){return this.__data__.has(t)}},73388:(t,e,n)=>{var r=n(93040),i=n(70420),o=n(41476);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},30976:(t,e,n)=>{var r=n(9032),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},7668:(t,e,n)=>{var r=n(77712);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},87456:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},15608:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},73336:(t,e,n)=>{var r=n(8940),i=n(19868),o=n(8472),a=Math.max,s=Math.min;t.exports=function(t,e,n){var l,c,u,d,f,p,m=0,h=!1,v=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,r=c;return l=c=void 0,m=e,d=t.apply(r,n)}function g(t){var n=t-p;return void 0===p||n>=e||n<0||v&&t-m>=u}function _(){var t=i();if(g(t))return S(t);f=setTimeout(_,function(t){var n=e-(t-p);return v?s(n,u-(t-m)):n}(t))}function S(t){return f=void 0,b&&l?y(t):(l=c=void 0,d)}function C(){var t=i(),n=g(t);if(l=arguments,c=this,p=t,n){if(void 0===f)return function(t){return m=t,f=setTimeout(_,e),h?y(t):d}(p);if(v)return clearTimeout(f),f=setTimeout(_,e),y(p)}return void 0===f&&(f=setTimeout(_,e)),d}return e=o(e)||0,r(n)&&(h=!!n.leading,u=(v="maxWait"in n)?a(o(n.maxWait)||0,e):u,b="trailing"in n?!!n.trailing:b),C.cancel=function(){void 0!==f&&clearTimeout(f),m=0,l=p=c=f=void 0},C.flush=function(){return void 0===f?d:S(i())},C}},5928:(t,e,n)=>{var r=n(81180),i=n(71972),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,r).replace(a,"")}},70864:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},2376:(t,e,n)=>{var r=n(16064),i=n(26032),o=n(59941),a=n(52488);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},19448:(t,e,n)=>{var r=n(34240);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},71256:(t,e,n)=>{var r=n(77732),i=n(42828);t.exports=function(t,e){return null!=t&&i(t,e,r)}},10552:t=>{t.exports=function(t){return t}},70348:(t,e,n)=>{var r=n(93432),i=n(22892),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},52488:t=>{var e=Array.isArray;t.exports=e},54900:(t,e,n)=>{var r=n(87920),i=n(49024);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},87684:(t,e,n)=>{t=n.nmd(t);var r=n(97188),i=n(16448),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;t.exports=l},90948:(t,e,n)=>{var r=n(59184);t.exports=function(t,e){return r(t,e)}},87920:(t,e,n)=>{var r=n(16944),i=n(8940);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},49024:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},8940:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},22892:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},77712:(t,e,n)=>{var r=n(16944),i=n(22892);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},26700:(t,e,n)=>{var r=n(87160),i=n(89165),o=n(59180),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},95160:(t,e,n)=>{var r=n(17640),i=n(25552),o=n(54900);t.exports=function(t){return o(t)?r(t):i(t)}},1576:(t,e,n)=>{var r=n(41476);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},19868:(t,e,n)=>{var r=n(97188);t.exports=function(){return r.Date.now()}},30952:(t,e,n)=>{var r=n(76223),i=n(52488);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},54860:(t,e,n)=>{var r=n(94732),i=n(64184),o=n(19640),a=n(7668);t.exports=function(t){return o(t)?r(a(t)):i(t)}},32552:(t,e,n)=>{var r=n(86040);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},40872:t=>{t.exports=function(){return[]}},16448:t=>{t.exports=function(){return!1}},39212:(t,e,n)=>{var r=n(73336),i=n(8940);t.exports=function(t,e,n){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:o,maxWait:e,trailing:a})}},8472:(t,e,n)=>{var r=n(34428),i=n(8940),o=n(77712),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},71972:(t,e,n)=>{var r=n(46524);t.exports=function(t){return null==t?"":r(t)}},8436:(t,e,n)=>{"use strict";n.r(e)},82616:(t,e,n)=>{"use strict";n.r(e)},26512:t=>{var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var t=a(d);c=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},24320:(t,e,n)=>{"use strict";t.exports=n(57328)()},57328:(t,e,n)=>{"use strict";var r=n(33296).Buffer;function i(t){return t instanceof r?r.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){return(t=t||{}).circles?function(t){var e=[],n=[];return t.proto?function t(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return r(o,t);if(o instanceof Map)return new Map(r(Array.from(o),t));if(o instanceof Set)return new Set(r(Array.from(o),t));var a={};for(var s in e.push(o),n.push(a),o){var l=o[s];if("object"!=typeof l||null===l)a[s]=l;else if(l instanceof Date)a[s]=new Date(l);else if(l instanceof Map)a[s]=new Map(r(Array.from(l),t));else if(l instanceof Set)a[s]=new Set(r(Array.from(l),t));else if(ArrayBuffer.isView(l))a[s]=i(l);else{var c=e.indexOf(l);a[s]=-1!==c?n[c]:t(l)}}return e.pop(),n.pop(),a}:function t(o){if("object"!=typeof o||null===o)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return r(o,t);if(o instanceof Map)return new Map(r(Array.from(o),t));if(o instanceof Set)return new Set(r(Array.from(o),t));var a={};for(var s in e.push(o),n.push(a),o)if(!1!==Object.hasOwnProperty.call(o,s)){var l=o[s];if("object"!=typeof l||null===l)a[s]=l;else if(l instanceof Date)a[s]=new Date(l);else if(l instanceof Map)a[s]=new Map(r(Array.from(l),t));else if(l instanceof Set)a[s]=new Set(r(Array.from(l),t));else if(ArrayBuffer.isView(l))a[s]=i(l);else{var c=e.indexOf(l);a[s]=-1!==c?n[c]:t(l)}}return e.pop(),n.pop(),a};function r(t,r){for(var o=Object.keys(t),a=new Array(o.length),s=0;s<o.length;s++){var l=o[s],c=t[l];if("object"!=typeof c||null===c)a[l]=c;else if(c instanceof Date)a[l]=new Date(c);else if(ArrayBuffer.isView(c))a[l]=i(c);else{var u=e.indexOf(c);a[l]=-1!==u?n[u]:r(c)}}return a}}(t):t.proto?function t(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return e(n,t);if(n instanceof Map)return new Map(e(Array.from(n),t));if(n instanceof Set)return new Set(e(Array.from(n),t));var r={};for(var o in n){var a=n[o];"object"!=typeof a||null===a?r[o]=a:a instanceof Date?r[o]=new Date(a):a instanceof Map?r[o]=new Map(e(Array.from(a),t)):a instanceof Set?r[o]=new Set(e(Array.from(a),t)):ArrayBuffer.isView(a)?r[o]=i(a):r[o]=t(a)}return r}:function t(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return e(n,t);if(n instanceof Map)return new Map(e(Array.from(n),t));if(n instanceof Set)return new Set(e(Array.from(n),t));var r={};for(var o in n)if(!1!==Object.hasOwnProperty.call(n,o)){var a=n[o];"object"!=typeof a||null===a?r[o]=a:a instanceof Date?r[o]=new Date(a):a instanceof Map?r[o]=new Map(e(Array.from(a),t)):a instanceof Set?r[o]=new Set(e(Array.from(a),t)):ArrayBuffer.isView(a)?r[o]=i(a):r[o]=t(a)}return r};function e(t,e){for(var n=Object.keys(t),r=new Array(n.length),o=0;o<n.length;o++){var a=n[o],s=t[a];"object"!=typeof s||null===s?r[a]=s:s instanceof Date?r[a]=new Date(s):ArrayBuffer.isView(s)?r[a]=i(s):r[a]=e(s)}return r}}},58592:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(53752),i=n(98280),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},69372:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(48412),i=n(86616),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},96392:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(44160),i=n(78888),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},17156:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(42320),i=n(25456),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},81512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(8060),i=n(91824),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},55708:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(61962),i=n(32348),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},93736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(56872),i=n(42200),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},27672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(41744),i=n(5108),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},18088:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(82932),i=n(57428),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},57868:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(43360),i=n(29668),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},52728:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(86492),i=n(65276),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},4048:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(74984),i=n(21712),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},69988:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(69184),i=n(64640),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},9736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(81192),i=n(88411),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},28896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(48140),i=n(32548),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},21424:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(20448),i=n(89880),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},7936:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(64120),i=n(1140),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},56088:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(43216),i=n(68788),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},1e3:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(79376),i=n(73964),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},43136:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(61832),i=n(12312),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},51464:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(54956),i=n(32064),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},44708:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(41640),i=n(64148),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},76772:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(55486),i=n(87980),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},5828:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(76092),i=n(44092),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},35360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(36948),i=n(2552),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},11952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(64648),i=n(20152),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},58384:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(11736),i=n(70843),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},66804:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(42464),i=n(45048),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},33952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(43536),i=n(11964),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},17676:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(88744),i=n(21476),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},12568:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(83924),i=n(92453),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},29804:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(28152),i=n(47896),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},39128:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(17013),i=n(39336),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},7356:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(61592),i=n(12720),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},23076:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(20664),i=n(94168),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},39200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(94832),i=n(3960),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},43688:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(33424),i=n(65472),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},13828:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(21261),i=n(39192),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},21264:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(44452),i=n(79964),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},13504:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(26188),i=n(36317),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},99208:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(64600),i=n(67356),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},42e3:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(33288),i=n(76452),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},3784:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(80488),i=n(57648),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},10916:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(24060),i=n(25336),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},38180:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(13216),i=n(21148),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},90572:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(66784),i=n(56384),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},11720:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(16584),i=n(70976),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},47128:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(88368),i=n(53768),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},99396:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(95972),i=n(97584),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},12988:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(60336),i=n(17284),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},95164:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(30744),i=n(55040),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},67944:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(3400),i=n(44104),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},68540:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(50176),i=n(62692),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},58617:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(38032),i=n(25696),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},91020:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(21872),i=n(23056),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},2156:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(46560),i=n(90384),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},68404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(72040),i=n(49176),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},24832:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(90844),i=n(99428),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},37548:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(17736),i=n(67376),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},90812:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(24208),i=n(46920),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},71360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(56502),i=n(17384),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},28906:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(49352),i=n(89832),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},48448:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(901),i=n(25028),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},47672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(30762),i=n(49876),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},30660:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(70160),i=n(23448),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},93104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(54696),i=n(65680),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},82104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(15560),i=n(30904),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},60200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(35664),i=n(52360),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},13664:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(55440),i=n(66944),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},4768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(14560),i=n(53968),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},64236:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(12392),i=n(60164),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},11608:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(20316),i=n(67499),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},43500:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(47468),i=n(55348),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},26156:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(12172),i=n(29144),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},89148:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(87584),i=n(43432),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},70944:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(10096),i=n(19193),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},7300:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(10088),i=n(52756),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},16200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(6216),i=n(33940),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},58692:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(44456),i=n(57856),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},72140:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(1696),i=n(98088),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},67956:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(79336),i=n(77996),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},78612:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(43616),i=n(85240),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},77138:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(18880),i=n(49664),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},95384:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(38376),i=n(6625),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},40572:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(72256),i=n(97780),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},32968:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(35296),i=n(41408),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},29122:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(24932),i=n(85132),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},3992:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(86688),i=n(53084),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},52012:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(79496),i=n(87400),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},65876:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(38200),i=n(50068),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},31540:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(1584),i=n(13088),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},91308:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(88892),i=n(55152),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},13932:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(5428),i=n(27328),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},66324:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(41040),i=n(28244),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},78856:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(16024),i=n(15524),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},25142:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(21584),i=n(36124),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},60676:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(88068),i=n(34444),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},3280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(67292),i=n(84392),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},69380:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(99530),i=n(18712),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},68876:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(25368),i=n(83252),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},52652:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(64848),i=n(63680),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},46609:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(25308),i=n(76544),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},37662:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(81912),i=n(35452),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},57832:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(76714),i=n(13528),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},36344:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(24268),i=n(93876),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},2499:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(72888),i=n(97556),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},88348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(86064),i=n(21966),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},7420:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(29196),i=n(21992),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},41644:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(6900),i=n(78448),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},70228:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(7328),i=n(32796),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},45136:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(39712),i=n(50260),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},24564:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(2984),i=n(62500),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},7820:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(42560),i=n(41900),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},40216:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(22456),i=n(94352),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},13481:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(77108),i=n(66840),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},93184:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(16268),i=n(99228),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},70660:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(98556),i=n(6472),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},83360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(55066),i=n(95340),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},15716:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(4772),i=n(48532),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},5712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(43821),i=n(35572),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},39312:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(68212),i=n(89344),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},99352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(18664),i=n(53032),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},25204:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(38744),i=n(40376),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},72944:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(49604),i=n(37308),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},99368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(7344),i=n(37208),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},29648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(30776),i=n(82484),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},29056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(27584),i=n(22093),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},4532:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(39508),i=n(13720),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},22916:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(86860),i=n(64920),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},40192:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(77928),i=n(4248),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},63372:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(2480),i=n(9e3),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},20756:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(20568),i=n(2956),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},57768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(56396),i=n(47360),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},62280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(26784),i=n(7940),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},5624:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(57156),i=n(54016),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},46620:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(58948),i=n(62348),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},91344:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(79724),i=n(46216),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},60752:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(71218),i=n(65840),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},71168:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(23920),i=n(73208),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},86108:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(17660),i=n(76020),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},77624:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(63048),i=n(66756),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},85656:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(28872),i=n(50044),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},55640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(44096),i=n(27368),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},9928:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(19026),i=n(97868),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},38426:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(35736),i=n(98416),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},17904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(51120),i=n(36292),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},24896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(54272),i=n(42380),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},13844:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(23500),i=n(23292),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},32388:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(51024),i=n(79880),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},35312:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(69534),i=n(80448),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},84064:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(40728),i=n(80124),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},35276:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(57900),i=n(59016),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},6580:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(236),i=n(35460),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},55792:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(74120),i=n(83608),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},29036:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(13072),i=n(80260),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},40980:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(4056),i=n(19928),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},32980:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(21516),i=n(99712),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},97152:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(32328),i=n(23952),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},42930:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(66272),i=n(68588),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},26536:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(19604),i=n(69676),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},72976:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(56508),i=n(99900),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},15568:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(14232),i=n(75024),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},81584:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(27388),i=n(13904),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},32478:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(72032),i=n(91584),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},46656:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(98132),i=n(4636),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},700:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(31192),i=n(50104),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},22440:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(49232),i=n(73008),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},41952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(83792),i=n(75844),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},48728:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(7312),i=n(32147),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},73884:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(69412),i=n(48652),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},56180:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(70312),i=n(25240),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},78216:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(38570),i=n(19132),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},73496:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(59592),i=n(65720),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},20616:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(61928),i=n(95352),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},2256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(53744),i=n(52664),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},26908:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(68250),i=n(81120),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},75252:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(52832),i=n(57704),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},21608:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(83712),i=n(15720),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},88476:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(2648),i=n(99444),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},49588:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(30680),i=n(79104),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},53156:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(93348),i=n(93179),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},32512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(33064),i=n(49820),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},50764:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(23422),i=n(75980),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},67480:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(90269),i=n(64988),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},21176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(84448),i=n(28076),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},50156:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(37056),i=n(32248),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},2960:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(41556),i=n(47308),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},49998:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(86620),i=n(42340),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},90152:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(4688),i=n(82836),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},78648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(26736),i=n(74656),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},39696:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(13776),i=n(86912),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},4196:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(36096),i=n(12896),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},94220:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(63492),i=n(80604),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},48864:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(8740),i=n(57172),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},51144:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(11104),i=n(41708),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},85188:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(64840),i=n(30512),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},89392:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(62392),i=n(39528),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},64784:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(43856),i=n(90880),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},30972:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(42264),i=n(79120),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},23384:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(8700),i=n(61768),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},71908:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(57484),i=n(49300),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},11584:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(20120),i=n(47141),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},5160:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(91680),i=n(56776),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},21080:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(21368),i=n(6736),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},57716:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(66480),i=n(94992),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},69744:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(2132),i=n(47332),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},46896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(98688),i=n(2180),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},72328:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(41032),i=n(73300),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},72601:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(19772),i=n(76800),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},42292:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(13416),i=n(77072),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},58532:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(8176),i=n(76180),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},8228:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(86440),i=n(66547),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},1020:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(38672),i=n(20208),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},89908:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(81034),i=n(38400),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},73272:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(42180),i=n(17320),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},47324:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(40436),i=n(24760),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},95960:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(36071),i=n(26644),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},48848:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(16668),i=n(59284),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},11938:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(89440),i=n(25892),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},33084:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(44864),i=n(67651),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},77032:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(99392),i=n(61900),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},54048:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(95820),i=n(89761),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},71352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(83728),i=n(5640),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},23962:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(96416),i=n(5860),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},1756:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(22416),i=n(15248),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},65576:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(6508),i=n(81260),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},88136:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(41164),i=n(38064),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},6752:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(72484),i=n(57712),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},80680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(11012),i=n(61236),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},96424:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(74936),i=n(15216),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},62200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(2948),i=n(752),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},82552:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(71700),i=n(32540),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},44884:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(79432),i=n(2488),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},9780:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(34580),i=n(52536),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},85440:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(77e3),i=n(45333),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},51042:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(48608),i=n(55344),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},68044:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(8628),i=n(13924),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},61412:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(83200),i=n(720),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},66512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(20604),i=n(9371),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},11072:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(14476),i=n(24020),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},2388:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(87832),i=n(82628),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},92764:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(89408),i=n(332),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},59828:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(94600),i=n(35992),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},80244:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(11304),i=n(51672),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},14004:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(77240),i=n(82520),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},32920:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(2710),i=n(31672),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},1368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(2896),i=n(7875),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},31904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(46480),i=n(22460),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},15104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(29108),i=n(26952),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},12886:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(79024),i=n(18628),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},80860:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(88152),i=n(85492),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},53916:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(53588),i=n(26492),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},5540:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(60836),i=n(89820),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},15020:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(78232),i=n(62268),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},17344:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(65812),i=n(24520),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},87372:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(20672),i=n(35420),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},51800:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(62002),i=n(21484),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},40946:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(86444),i=n(82260),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},63056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(6064),i=n(27664),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},6820:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(46268),i=n(50996),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},12360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(60572),i=n(91408),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},19992:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(59680),i=n(14747),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},63864:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(77664),i=n(12252),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},29352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(85320),i=n(52936),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},85984:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(75676),i=n(84516),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},90504:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(54756),i=n(64064),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},33229:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(25772),i=n(4),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},38020:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(38128),i=n(10256),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},45780:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(31960),i=n(19280),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},23908:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(25196),i=n(92920),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},87446:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(83680),i=n(59624),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},17206:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(80780),i=n(72532),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},11216:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(64304),i=n(39032),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},5416:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(53170),i=n(19104),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},98708:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(87184),i=n(97364),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},86804:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(98848),i=n(14892),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},42524:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(37212),i=n(904),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},8548:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(39892),i=n(71288),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},22572:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(39488),i=n(86248),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},67260:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(17394),i=n(21400),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},99460:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(96688),i=n(11580),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},67448:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(1660),i=n(42640),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},38960:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(78552),i=n(14680),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},41112:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(82388),i=n(7812),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},81936:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(77384),i=n(42792),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},29024:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(86466),i=n(46504),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},52744:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(49956),i=n(71348),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},82496:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(28296),i=n(45788),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},97592:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(81344),i=n(26748),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!0,null,null,null).exports},11308:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(34228),i=n(45484),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!0,null,null,null).exports},85356:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(12104),i=n(11812),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!0,null,null,null).exports},38764:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(5218),i=n(19544),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);const a=(0,n(1456).default)(i.default,r.render,r.staticRenderFns,!1,null,null,null).exports},98280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(4952),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},86616:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(60968),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},78888:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(89124),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},25456:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(56200),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},91824:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(32660),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},32348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(10752),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},42200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(17316),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},5108:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(64680),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},57428:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(82312),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},29668:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(87428),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},65276:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(34737),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},21712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(6456),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},64640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(66988),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},88411:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(80576),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},32548:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(89536),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},89880:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(66868),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},1140:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(96184),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},68788:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(7132),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},73964:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(7056),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},12312:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(23288),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},32064:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(35972),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},64148:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(65105),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},87980:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(840),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},44092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(51499),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},2552:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(61224),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},20152:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(90424),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},70843:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(73764),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},45048:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(62012),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},11964:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(73680),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},21476:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(12536),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},92453:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(54404),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},47896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(73672),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},39336:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(22276),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},12720:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(88520),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},94168:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(93460),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},3960:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(77364),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},65472:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(34660),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},39192:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(3828),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},79964:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(20040),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},36317:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(5256),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},67356:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(68083),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},76452:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(60024),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},57648:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(15648),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},25336:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(46704),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},21148:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(40932),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},56384:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(96888),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},70976:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(94608),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},53768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(52292),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},97584:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(18191),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},17284:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(95580),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},55040:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(85147),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},44104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(54908),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},62692:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(64572),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},25696:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(1004),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},23056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(48328),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},90384:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(91952),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},49176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(12180),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},99428:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(92384),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},67376:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(49296),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},46920:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9996),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},17384:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(57776),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},89832:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(54708),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},25028:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(48176),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},49876:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(98316),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},23448:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(10472),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},65680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(98987),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},30904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(84488),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},52360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(10448),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},66944:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(14464),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},53968:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(60920),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},60164:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(12083),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},67499:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(65880),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},55348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(47392),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},29144:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(62540),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},43432:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(92636),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},19193:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(4520),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},52756:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(38704),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},33940:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(85092),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},57856:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(6428),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},98088:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(4700),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},77996:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(94688),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},85240:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(11816),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},49664:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(23864),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},6625:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(73320),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},97780:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(66004),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},41408:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(21192),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},85132:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(42928),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},53084:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(99584),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},87400:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(68516),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},50068:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(2420),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},13088:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(52484),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},55152:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(69784),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},27328:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(23820),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},28244:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(27536),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},15524:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(34344),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},36124:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(4460),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},34444:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(4808),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},84392:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(32470),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},18712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(73664),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},83252:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(95776),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},63680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(44080),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},76544:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(23188),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},35452:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(23472),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},13528:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(71136),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},93876:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(8868),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},97556:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(36028),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},21966:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(88376),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},21992:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(47648),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},78448:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(71176),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},32796:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(13752),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},50260:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(84504),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},62500:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(78588),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},41900:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(17336),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},94352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(75904),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},66840:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(164),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},99228:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(95592),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},6472:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(97568),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},95340:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(5400),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},48532:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(81532),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},35572:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(28796),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},89344:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(97088),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},53032:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(80968),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},40376:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(29489),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},37308:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(1492),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},37208:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(58452),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},82484:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(65928),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},22093:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(15144),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},13720:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(34484),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},64920:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(35288),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},4248:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(75800),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},9e3:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(53236),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},2956:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(48584),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},47360:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(61144),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},7940:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(82459),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},54016:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(90928),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},62348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(61552),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},46216:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(85140),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},65840:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(81812),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},73208:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(1200),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},76020:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(68408),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},66756:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(58484),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},50044:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(51408),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},27368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(8480),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},97868:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(64140),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},98416:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(63412),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},36292:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(20184),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},42380:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(13124),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},23292:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(41432),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},79880:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(84952),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},80448:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(69280),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},80124:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(41224),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},59016:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(78116),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},35460:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9512),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},83608:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(92736),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},80260:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9376),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},19928:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(40616),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},99712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(79776),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},23952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(27008),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},68588:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(30396),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},69676:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(82120),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},99900:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(67708),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},75024:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(93296),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},13904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(28668),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},91584:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(44208),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},4636:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(740),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},50104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(15308),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},73008:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(51700),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},75844:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(62596),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},32147:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(58e3),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},48652:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(38212),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},25240:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(55528),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},19132:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(38096),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},65720:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(45968),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},95352:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(80348),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},52664:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(99824),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},81120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(92832),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},57704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(61352),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},15720:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(55260),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},99444:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(24e3),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},79104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(42952),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},93179:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(89132),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},49820:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(10952),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},75980:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(27608),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},64988:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(3352),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},28076:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(35104),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},32248:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(19588),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},47308:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(45128),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},42340:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(45176),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},82836:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(34464),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},74656:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(55576),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},86912:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(41620),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},12896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(27480),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},80604:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(33200),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},57172:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(88652),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},41708:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(92648),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},30512:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(45168),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},39528:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(97784),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},90880:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(56236),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},79120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(77600),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},61768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(94112),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},49300:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(95608),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},47141:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(22012),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},56776:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(2328),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},6736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(93300),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},94992:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(42072),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},47332:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(83768),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},2180:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(93552),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},73300:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(35720),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},76800:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(40016),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},77072:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(24240),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},76180:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(84048),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},66547:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(40680),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},20208:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(86296),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},38400:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(21452),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},17320:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(70784),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},24760:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(39812),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},26644:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(90628),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},59284:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(5224),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},25892:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(98908),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},67651:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(58380),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},61900:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(28904),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},89761:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(44648),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},5640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(73996),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},5860:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(60352),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},15248:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(69760),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},81260:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(58372),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},38064:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(86456),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},57712:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(4544),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},61236:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(83672),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},15216:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(43044),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},752:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(18292),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},32540:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(67344),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},2488:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(78404),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},52536:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(42080),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},45333:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(65568),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},55344:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(62832),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},13924:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(24856),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},720:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(29340),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},9371:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(61664),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},24020:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(28120),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},82628:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(42564),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},332:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(12520),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},35992:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(37100),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},51672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(34984),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},82520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(91528),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},31672:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(99256),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},7875:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(93668),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},22460:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(43256),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},26952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(81496),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},18628:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(71704),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},85492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(56512),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},26492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(49028),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},89820:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(40416),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},62268:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(26724),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},24520:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(72796),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},35420:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(16264),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},21484:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(30940),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},82260:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(39572),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},27664:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(65800),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},50996:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(39296),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},91408:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(38380),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},14747:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(72384),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},12252:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(2688),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},52936:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(91671),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},84516:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(86476),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},64064:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(97724),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},4:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(11664),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},10256:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(93404),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},19280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(23240),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},92920:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(78624),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},59624:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(72408),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},72532:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(47640),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},39032:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(21064),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},19104:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(59060),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},97364:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(78736),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},14892:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(85136),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(94812),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},71288:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(84719),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},86248:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(40040),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},21400:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(79788),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},11580:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(47584),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},42640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(30960),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},14680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(78332),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},7812:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(7552),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},42792:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(95360),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},46504:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(10144),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},71348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(75313),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},45788:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(75704),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},26748:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(60264),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},45484:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9177),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},11812:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(45100),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},19544:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(53124),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);const o=r.default},53752:(t,e,n)=>{"use strict";n.r(e);var r=n(56620),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},48412:(t,e,n)=>{"use strict";n.r(e);var r=n(39160),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},44160:(t,e,n)=>{"use strict";n.r(e);var r=n(17376),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},42320:(t,e,n)=>{"use strict";n.r(e);var r=n(38520),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},8060:(t,e,n)=>{"use strict";n.r(e);var r=n(46324),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},61962:(t,e,n)=>{"use strict";n.r(e);var r=n(42088),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},56872:(t,e,n)=>{"use strict";n.r(e);var r=n(78172),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},41744:(t,e,n)=>{"use strict";n.r(e);var r=n(24580),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},82932:(t,e,n)=>{"use strict";n.r(e);var r=n(43212),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},43360:(t,e,n)=>{"use strict";n.r(e);var r=n(32978),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},86492:(t,e,n)=>{"use strict";n.r(e);var r=n(96836),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},74984:(t,e,n)=>{"use strict";n.r(e);var r=n(84944),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},69184:(t,e,n)=>{"use strict";n.r(e);var r=n(31056),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},81192:(t,e,n)=>{"use strict";n.r(e);var r=n(34076),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},48140:(t,e,n)=>{"use strict";n.r(e);var r=n(90707),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},20448:(t,e,n)=>{"use strict";n.r(e);var r=n(64392),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},64120:(t,e,n)=>{"use strict";n.r(e);var r=n(41252),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},43216:(t,e,n)=>{"use strict";n.r(e);var r=n(45232),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},79376:(t,e,n)=>{"use strict";n.r(e);var r=n(81364),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},61832:(t,e,n)=>{"use strict";n.r(e);var r=n(49104),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},54956:(t,e,n)=>{"use strict";n.r(e);var r=n(92304),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},41640:(t,e,n)=>{"use strict";n.r(e);var r=n(16704),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},55486:(t,e,n)=>{"use strict";n.r(e);var r=n(88326),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},76092:(t,e,n)=>{"use strict";n.r(e);var r=n(44652),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},36948:(t,e,n)=>{"use strict";n.r(e);var r=n(46368),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},64648:(t,e,n)=>{"use strict";n.r(e);var r=n(45208),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},11736:(t,e,n)=>{"use strict";n.r(e);var r=n(70624),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},42464:(t,e,n)=>{"use strict";n.r(e);var r=n(89436),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},43536:(t,e,n)=>{"use strict";n.r(e);var r=n(84390),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},88744:(t,e,n)=>{"use strict";n.r(e);var r=n(62520),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},83924:(t,e,n)=>{"use strict";n.r(e);var r=n(39792),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},28152:(t,e,n)=>{"use strict";n.r(e);var r=n(73395),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},17013:(t,e,n)=>{"use strict";n.r(e);var r=n(41745),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},61592:(t,e,n)=>{"use strict";n.r(e);var r=n(55922),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},20664:(t,e,n)=>{"use strict";n.r(e);var r=n(260),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},94832:(t,e,n)=>{"use strict";n.r(e);var r=n(87692),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},33424:(t,e,n)=>{"use strict";n.r(e);var r=n(24528),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},21261:(t,e,n)=>{"use strict";n.r(e);var r=n(32427),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},44452:(t,e,n)=>{"use strict";n.r(e);var r=n(26104),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},26188:(t,e,n)=>{"use strict";n.r(e);var r=n(16092),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},64600:(t,e,n)=>{"use strict";n.r(e);var r=n(548),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},33288:(t,e,n)=>{"use strict";n.r(e);var r=n(40272),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},80488:(t,e,n)=>{"use strict";n.r(e);var r=n(53839),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},24060:(t,e,n)=>{"use strict";n.r(e);var r=n(58540),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},13216:(t,e,n)=>{"use strict";n.r(e);var r=n(13992),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},66784:(t,e,n)=>{"use strict";n.r(e);var r=n(91048),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},16584:(t,e,n)=>{"use strict";n.r(e);var r=n(58524),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},88368:(t,e,n)=>{"use strict";n.r(e);var r=n(26556),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},95972:(t,e,n)=>{"use strict";n.r(e);var r=n(19616),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},60336:(t,e,n)=>{"use strict";n.r(e);var r=n(6692),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},30744:(t,e,n)=>{"use strict";n.r(e);var r=n(63512),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},3400:(t,e,n)=>{"use strict";n.r(e);var r=n(61404),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},50176:(t,e,n)=>{"use strict";n.r(e);var r=n(41988),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},38032:(t,e,n)=>{"use strict";n.r(e);var r=n(20852),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},21872:(t,e,n)=>{"use strict";n.r(e);var r=n(26924),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},46560:(t,e,n)=>{"use strict";n.r(e);var r=n(88336),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},72040:(t,e,n)=>{"use strict";n.r(e);var r=n(52904),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},90844:(t,e,n)=>{"use strict";n.r(e);var r=n(66920),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},17736:(t,e,n)=>{"use strict";n.r(e);var r=n(80818),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},24208:(t,e,n)=>{"use strict";n.r(e);var r=n(41092),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},56502:(t,e,n)=>{"use strict";n.r(e);var r=n(38560),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},49352:(t,e,n)=>{"use strict";n.r(e);var r=n(29872),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},901:(t,e,n)=>{"use strict";n.r(e);var r=n(91964),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},30762:(t,e,n)=>{"use strict";n.r(e);var r=n(34800),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},70160:(t,e,n)=>{"use strict";n.r(e);var r=n(54536),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},54696:(t,e,n)=>{"use strict";n.r(e);var r=n(45564),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},15560:(t,e,n)=>{"use strict";n.r(e);var r=n(19064),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},35664:(t,e,n)=>{"use strict";n.r(e);var r=n(75776),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},55440:(t,e,n)=>{"use strict";n.r(e);var r=n(21056),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},14560:(t,e,n)=>{"use strict";n.r(e);var r=n(75660),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},12392:(t,e,n)=>{"use strict";n.r(e);var r=n(14318),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},20316:(t,e,n)=>{"use strict";n.r(e);var r=n(63940),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},47468:(t,e,n)=>{"use strict";n.r(e);var r=n(6356),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},12172:(t,e,n)=>{"use strict";n.r(e);var r=n(63972),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},87584:(t,e,n)=>{"use strict";n.r(e);var r=n(32480),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},10096:(t,e,n)=>{"use strict";n.r(e);var r=n(38692),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},10088:(t,e,n)=>{"use strict";n.r(e);var r=n(44314),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},6216:(t,e,n)=>{"use strict";n.r(e);var r=n(86192),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},44456:(t,e,n)=>{"use strict";n.r(e);var r=n(8776),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},1696:(t,e,n)=>{"use strict";n.r(e);var r=n(80040),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},79336:(t,e,n)=>{"use strict";n.r(e);var r=n(60368),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},43616:(t,e,n)=>{"use strict";n.r(e);var r=n(59932),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},18880:(t,e,n)=>{"use strict";n.r(e);var r=n(17912),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},38376:(t,e,n)=>{"use strict";n.r(e);var r=n(41724),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},72256:(t,e,n)=>{"use strict";n.r(e);var r=n(60824),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},35296:(t,e,n)=>{"use strict";n.r(e);var r=n(29084),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},24932:(t,e,n)=>{"use strict";n.r(e);var r=n(49172),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},86688:(t,e,n)=>{"use strict";n.r(e);var r=n(79340),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},79496:(t,e,n)=>{"use strict";n.r(e);var r=n(81352),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},38200:(t,e,n)=>{"use strict";n.r(e);var r=n(2448),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},1584:(t,e,n)=>{"use strict";n.r(e);var r=n(51040),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},88892:(t,e,n)=>{"use strict";n.r(e);var r=n(1067),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},5428:(t,e,n)=>{"use strict";n.r(e);var r=n(27640),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},41040:(t,e,n)=>{"use strict";n.r(e);var r=n(90464),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},16024:(t,e,n)=>{"use strict";n.r(e);var r=n(20696),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},21584:(t,e,n)=>{"use strict";n.r(e);var r=n(92690),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},88068:(t,e,n)=>{"use strict";n.r(e);var r=n(22936),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},67292:(t,e,n)=>{"use strict";n.r(e);var r=n(77652),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},99530:(t,e,n)=>{"use strict";n.r(e);var r=n(62807),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},25368:(t,e,n)=>{"use strict";n.r(e);var r=n(22944),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},64848:(t,e,n)=>{"use strict";n.r(e);var r=n(58164),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},25308:(t,e,n)=>{"use strict";n.r(e);var r=n(1036),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},81912:(t,e,n)=>{"use strict";n.r(e);var r=n(46235),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},76714:(t,e,n)=>{"use strict";n.r(e);var r=n(28736),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},24268:(t,e,n)=>{"use strict";n.r(e);var r=n(55228),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},72888:(t,e,n)=>{"use strict";n.r(e);var r=n(91712),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},86064:(t,e,n)=>{"use strict";n.r(e);var r=n(66048),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},29196:(t,e,n)=>{"use strict";n.r(e);var r=n(46976),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},6900:(t,e,n)=>{"use strict";n.r(e);var r=n(18768),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},7328:(t,e,n)=>{"use strict";n.r(e);var r=n(67964),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},39712:(t,e,n)=>{"use strict";n.r(e);var r=n(61248),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},2984:(t,e,n)=>{"use strict";n.r(e);var r=n(94712),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},42560:(t,e,n)=>{"use strict";n.r(e);var r=n(20774),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},22456:(t,e,n)=>{"use strict";n.r(e);var r=n(45984),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},77108:(t,e,n)=>{"use strict";n.r(e);var r=n(84204),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},16268:(t,e,n)=>{"use strict";n.r(e);var r=n(9672),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},98556:(t,e,n)=>{"use strict";n.r(e);var r=n(58240),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},55066:(t,e,n)=>{"use strict";n.r(e);var r=n(68656),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},4772:(t,e,n)=>{"use strict";n.r(e);var r=n(36636),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},43821:(t,e,n)=>{"use strict";n.r(e);var r=n(38760),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},68212:(t,e,n)=>{"use strict";n.r(e);var r=n(52540),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},18664:(t,e,n)=>{"use strict";n.r(e);var r=n(89376),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},38744:(t,e,n)=>{"use strict";n.r(e);var r=n(62756),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},49604:(t,e,n)=>{"use strict";n.r(e);var r=n(93188),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},7344:(t,e,n)=>{"use strict";n.r(e);var r=n(65864),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},30776:(t,e,n)=>{"use strict";n.r(e);var r=n(10944),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},27584:(t,e,n)=>{"use strict";n.r(e);var r=n(71648),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},39508:(t,e,n)=>{"use strict";n.r(e);var r=n(50640),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},86860:(t,e,n)=>{"use strict";n.r(e);var r=n(28560),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},77928:(t,e,n)=>{"use strict";n.r(e);var r=n(10628),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},2480:(t,e,n)=>{"use strict";n.r(e);var r=n(46092),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},20568:(t,e,n)=>{"use strict";n.r(e);var r=n(7055),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},56396:(t,e,n)=>{"use strict";n.r(e);var r=n(98184),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},26784:(t,e,n)=>{"use strict";n.r(e);var r=n(9808),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},57156:(t,e,n)=>{"use strict";n.r(e);var r=n(82280),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},58948:(t,e,n)=>{"use strict";n.r(e);var r=n(93068),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},79724:(t,e,n)=>{"use strict";n.r(e);var r=n(56556),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},71218:(t,e,n)=>{"use strict";n.r(e);var r=n(79984),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},23920:(t,e,n)=>{"use strict";n.r(e);var r=n(46488),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},17660:(t,e,n)=>{"use strict";n.r(e);var r=n(77132),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},63048:(t,e,n)=>{"use strict";n.r(e);var r=n(45764),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},28872:(t,e,n)=>{"use strict";n.r(e);var r=n(99436),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},44096:(t,e,n)=>{"use strict";n.r(e);var r=n(85472),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},19026:(t,e,n)=>{"use strict";n.r(e);var r=n(26152),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},35736:(t,e,n)=>{"use strict";n.r(e);var r=n(30956),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},51120:(t,e,n)=>{"use strict";n.r(e);var r=n(56520),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},54272:(t,e,n)=>{"use strict";n.r(e);var r=n(79914),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},23500:(t,e,n)=>{"use strict";n.r(e);var r=n(52144),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},51024:(t,e,n)=>{"use strict";n.r(e);var r=n(45884),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},69534:(t,e,n)=>{"use strict";n.r(e);var r=n(23204),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},40728:(t,e,n)=>{"use strict";n.r(e);var r=n(88704),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},57900:(t,e,n)=>{"use strict";n.r(e);var r=n(48504),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},236:(t,e,n)=>{"use strict";n.r(e);var r=n(46180),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},74120:(t,e,n)=>{"use strict";n.r(e);var r=n(71120),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},13072:(t,e,n)=>{"use strict";n.r(e);var r=n(58280),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},4056:(t,e,n)=>{"use strict";n.r(e);var r=n(46456),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},21516:(t,e,n)=>{"use strict";n.r(e);var r=n(97368),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},32328:(t,e,n)=>{"use strict";n.r(e);var r=n(63964),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},66272:(t,e,n)=>{"use strict";n.r(e);var r=n(43862),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},19604:(t,e,n)=>{"use strict";n.r(e);var r=n(35328),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},56508:(t,e,n)=>{"use strict";n.r(e);var r=n(87432),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},14232:(t,e,n)=>{"use strict";n.r(e);var r=n(15044),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},27388:(t,e,n)=>{"use strict";n.r(e);var r=n(55020),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},72032:(t,e,n)=>{"use strict";n.r(e);var r=n(376),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},98132:(t,e,n)=>{"use strict";n.r(e);var r=n(48580),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},31192:(t,e,n)=>{"use strict";n.r(e);var r=n(66612),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},49232:(t,e,n)=>{"use strict";n.r(e);var r=n(52524),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},83792:(t,e,n)=>{"use strict";n.r(e);var r=n(42360),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},7312:(t,e,n)=>{"use strict";n.r(e);var r=n(79652),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},69412:(t,e,n)=>{"use strict";n.r(e);var r=n(30176),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},70312:(t,e,n)=>{"use strict";n.r(e);var r=n(8864),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},38570:(t,e,n)=>{"use strict";n.r(e);var r=n(25904),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},59592:(t,e,n)=>{"use strict";n.r(e);var r=n(68616),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},61928:(t,e,n)=>{"use strict";n.r(e);var r=n(44060),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},53744:(t,e,n)=>{"use strict";n.r(e);var r=n(57800),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},68250:(t,e,n)=>{"use strict";n.r(e);var r=n(69516),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},52832:(t,e,n)=>{"use strict";n.r(e);var r=n(44264),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},83712:(t,e,n)=>{"use strict";n.r(e);var r=n(28348),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},2648:(t,e,n)=>{"use strict";n.r(e);var r=n(85080),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},30680:(t,e,n)=>{"use strict";n.r(e);var r=n(39768),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},93348:(t,e,n)=>{"use strict";n.r(e);var r=n(30292),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},33064:(t,e,n)=>{"use strict";n.r(e);var r=n(81736),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},23422:(t,e,n)=>{"use strict";n.r(e);var r=n(38862),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},90269:(t,e,n)=>{"use strict";n.r(e);var r=n(3648),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},84448:(t,e,n)=>{"use strict";n.r(e);var r=n(8460),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},37056:(t,e,n)=>{"use strict";n.r(e);var r=n(81764),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},41556:(t,e,n)=>{"use strict";n.r(e);var r=n(38396),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},86620:(t,e,n)=>{"use strict";n.r(e);var r=n(17876),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},4688:(t,e,n)=>{"use strict";n.r(e);var r=n(59912),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},26736:(t,e,n)=>{"use strict";n.r(e);var r=n(32672),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},13776:(t,e,n)=>{"use strict";n.r(e);var r=n(4256),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},36096:(t,e,n)=>{"use strict";n.r(e);var r=n(202),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},63492:(t,e,n)=>{"use strict";n.r(e);var r=n(76288),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},8740:(t,e,n)=>{"use strict";n.r(e);var r=n(63860),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},11104:(t,e,n)=>{"use strict";n.r(e);var r=n(5556),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},64840:(t,e,n)=>{"use strict";n.r(e);var r=n(88432),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},62392:(t,e,n)=>{"use strict";n.r(e);var r=n(3680),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},43856:(t,e,n)=>{"use strict";n.r(e);var r=n(19348),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},42264:(t,e,n)=>{"use strict";n.r(e);var r=n(18836),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},8700:(t,e,n)=>{"use strict";n.r(e);var r=n(96276),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},57484:(t,e,n)=>{"use strict";n.r(e);var r=n(90992),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},20120:(t,e,n)=>{"use strict";n.r(e);var r=n(24674),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},91680:(t,e,n)=>{"use strict";n.r(e);var r=n(8016),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},21368:(t,e,n)=>{"use strict";n.r(e);var r=n(15250),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},66480:(t,e,n)=>{"use strict";n.r(e);var r=n(3056),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},2132:(t,e,n)=>{"use strict";n.r(e);var r=n(8156),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},98688:(t,e,n)=>{"use strict";n.r(e);var r=n(76280),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},41032:(t,e,n)=>{"use strict";n.r(e);var r=n(57228),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},19772:(t,e,n)=>{"use strict";n.r(e);var r=n(26796),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},13416:(t,e,n)=>{"use strict";n.r(e);var r=n(7488),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},8176:(t,e,n)=>{"use strict";n.r(e);var r=n(39120),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},86440:(t,e,n)=>{"use strict";n.r(e);var r=n(94368),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},38672:(t,e,n)=>{"use strict";n.r(e);var r=n(9072),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},81034:(t,e,n)=>{"use strict";n.r(e);var r=n(90700),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},42180:(t,e,n)=>{"use strict";n.r(e);var r=n(28699),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},40436:(t,e,n)=>{"use strict";n.r(e);var r=n(96048),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},36071:(t,e,n)=>{"use strict";n.r(e);var r=n(81940),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},16668:(t,e,n)=>{"use strict";n.r(e);var r=n(46648),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},89440:(t,e,n)=>{"use strict";n.r(e);var r=n(22784),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},44864:(t,e,n)=>{"use strict";n.r(e);var r=n(10532),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},99392:(t,e,n)=>{"use strict";n.r(e);var r=n(10360),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},95820:(t,e,n)=>{"use strict";n.r(e);var r=n(58044),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},83728:(t,e,n)=>{"use strict";n.r(e);var r=n(46437),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},96416:(t,e,n)=>{"use strict";n.r(e);var r=n(42232),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},22416:(t,e,n)=>{"use strict";n.r(e);var r=n(59112),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},6508:(t,e,n)=>{"use strict";n.r(e);var r=n(39668),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},41164:(t,e,n)=>{"use strict";n.r(e);var r=n(86852),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},72484:(t,e,n)=>{"use strict";n.r(e);var r=n(15960),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},11012:(t,e,n)=>{"use strict";n.r(e);var r=n(64724),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},74936:(t,e,n)=>{"use strict";n.r(e);var r=n(192),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},2948:(t,e,n)=>{"use strict";n.r(e);var r=n(86056),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},71700:(t,e,n)=>{"use strict";n.r(e);var r=n(56632),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},79432:(t,e,n)=>{"use strict";n.r(e);var r=n(99560),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},34580:(t,e,n)=>{"use strict";n.r(e);var r=n(32728),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},77e3:(t,e,n)=>{"use strict";n.r(e);var r=n(49544),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},48608:(t,e,n)=>{"use strict";n.r(e);var r=n(53674),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},8628:(t,e,n)=>{"use strict";n.r(e);var r=n(17800),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},83200:(t,e,n)=>{"use strict";n.r(e);var r=n(98312),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},20604:(t,e,n)=>{"use strict";n.r(e);var r=n(73088),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},14476:(t,e,n)=>{"use strict";n.r(e);var r=n(66520),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},87832:(t,e,n)=>{"use strict";n.r(e);var r=n(66240),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},89408:(t,e,n)=>{"use strict";n.r(e);var r=n(69848),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},94600:(t,e,n)=>{"use strict";n.r(e);var r=n(37184),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},11304:(t,e,n)=>{"use strict";n.r(e);var r=n(49404),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},77240:(t,e,n)=>{"use strict";n.r(e);var r=n(56232),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},2710:(t,e,n)=>{"use strict";n.r(e);var r=n(15164),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},2896:(t,e,n)=>{"use strict";n.r(e);var r=n(62786),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},46480:(t,e,n)=>{"use strict";n.r(e);var r=n(83444),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},29108:(t,e,n)=>{"use strict";n.r(e);var r=n(22425),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},79024:(t,e,n)=>{"use strict";n.r(e);var r=n(11904),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},88152:(t,e,n)=>{"use strict";n.r(e);var r=n(20072),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},53588:(t,e,n)=>{"use strict";n.r(e);var r=n(51512),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},60836:(t,e,n)=>{"use strict";n.r(e);var r=n(57504),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},78232:(t,e,n)=>{"use strict";n.r(e);var r=n(7788),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},65812:(t,e,n)=>{"use strict";n.r(e);var r=n(69468),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},20672:(t,e,n)=>{"use strict";n.r(e);var r=n(71350),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},62002:(t,e,n)=>{"use strict";n.r(e);var r=n(33024),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},86444:(t,e,n)=>{"use strict";n.r(e);var r=n(76576),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},6064:(t,e,n)=>{"use strict";n.r(e);var r=n(75760),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},46268:(t,e,n)=>{"use strict";n.r(e);var r=n(27300),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},60572:(t,e,n)=>{"use strict";n.r(e);var r=n(30604),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},59680:(t,e,n)=>{"use strict";n.r(e);var r=n(95072),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},77664:(t,e,n)=>{"use strict";n.r(e);var r=n(96912),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},85320:(t,e,n)=>{"use strict";n.r(e);var r=n(99254),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},75676:(t,e,n)=>{"use strict";n.r(e);var r=n(56476),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},54756:(t,e,n)=>{"use strict";n.r(e);var r=n(31880),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},25772:(t,e,n)=>{"use strict";n.r(e);var r=n(14648),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},38128:(t,e,n)=>{"use strict";n.r(e);var r=n(98424),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},31960:(t,e,n)=>{"use strict";n.r(e);var r=n(37701),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},25196:(t,e,n)=>{"use strict";n.r(e);var r=n(13840),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},83680:(t,e,n)=>{"use strict";n.r(e);var r=n(89200),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},80780:(t,e,n)=>{"use strict";n.r(e);var r=n(66936),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},64304:(t,e,n)=>{"use strict";n.r(e);var r=n(54986),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},53170:(t,e,n)=>{"use strict";n.r(e);var r=n(79080),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},87184:(t,e,n)=>{"use strict";n.r(e);var r=n(44280),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},98848:(t,e,n)=>{"use strict";n.r(e);var r=n(9036),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},37212:(t,e,n)=>{"use strict";n.r(e);var r=n(35024),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},39892:(t,e,n)=>{"use strict";n.r(e);var r=n(46548),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},39488:(t,e,n)=>{"use strict";n.r(e);var r=n(34324),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},17394:(t,e,n)=>{"use strict";n.r(e);var r=n(1322),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},96688:(t,e,n)=>{"use strict";n.r(e);var r=n(27488),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},1660:(t,e,n)=>{"use strict";n.r(e);var r=n(98168),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},78552:(t,e,n)=>{"use strict";n.r(e);var r=n(72248),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},82388:(t,e,n)=>{"use strict";n.r(e);var r=n(89328),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},77384:(t,e,n)=>{"use strict";n.r(e);var r=n(79440),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},86466:(t,e,n)=>{"use strict";n.r(e);var r=n(54e3),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},49956:(t,e,n)=>{"use strict";n.r(e);var r=n(33544),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},28296:(t,e,n)=>{"use strict";n.r(e);var r=n(52356),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},81344:(t,e,n)=>{"use strict";n.r(e);var r=n(82460),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},34228:(t,e,n)=>{"use strict";n.r(e);var r=n(5932),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},12104:(t,e,n)=>{"use strict";n.r(e);var r=n(93132),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},5218:(t,e,n)=>{"use strict";n.r(e);var r=n(61280),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},1456:(t,e,n)=>{"use strict";function r(t,e,n,r,i,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.r(e),n.d(e,{default:()=>r})},73424:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Emit:()=>a});var r=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=/\B([A-Z])/g,o=function(t){return t.replace(i,"-$1").toLowerCase()};function a(t){return function(e,n,i){var a=o(n),s=i.value;i.value=function(){for(var e=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o,l=function(i){var o=t||a;void 0===i?0===n.length?e.$emit(o):1===n.length?e.$emit(o,n[0]):e.$emit.apply(e,r([o],n)):(n.unshift(i),e.$emit.apply(e,r([o],n)))},c=s.apply(this,n);return(o=c)instanceof Promise||o&&"function"==typeof o.then?c.then(l):l(c),c}}}},33789:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Inject:()=>i});var r=n(29992);function i(t){return(0,r.createDecorator)((function(e,n){void 0===e.inject&&(e.inject={}),Array.isArray(e.inject)||(e.inject[n]=t||n)}))}},95204:(t,e,n)=>{"use strict";n.r(e),n.d(e,{InjectReactive:()=>o});var r=n(29992),i=n(88312);function o(t){return(0,r.createDecorator)((function(e,n){if(void 0===e.inject&&(e.inject={}),!Array.isArray(e.inject)){var r=t?t.from||t:n,o=!!t&&t.default||void 0;e.computed||(e.computed={}),e.computed[n]=function(){var t=this[i.reactiveInjectKey];return t?t[r]:o},e.inject[i.reactiveInjectKey]=i.reactiveInjectKey}}))}},55432:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Model:()=>o});var r=n(29992),i=n(8056);function o(t,e){return void 0===e&&(e={}),function(n,o){(0,i.applyMetadata)(e,n,o),(0,r.createDecorator)((function(n,r){(n.props||(n.props={}))[r]=e,n.model={prop:r,event:t||r}}))(n,o)}}},12632:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ModelSync:()=>o});var r=n(29992),i=n(8056);function o(t,e,n){return void 0===n&&(n={}),function(o,a){(0,i.applyMetadata)(n,o,a),(0,r.createDecorator)((function(r,i){(r.props||(r.props={}))[t]=n,r.model={prop:t,event:e||i},(r.computed||(r.computed={}))[i]={get:function(){return this[t]},set:function(t){this.$emit(e,t)}}}))(o,a)}}},2768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Prop:()=>o});var r=n(29992),i=n(8056);function o(t){return void 0===t&&(t={}),function(e,n){(0,i.applyMetadata)(t,e,n),(0,r.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}},94440:(t,e,n)=>{"use strict";n.r(e),n.d(e,{PropSync:()=>o});var r=n(29992),i=n(8056);function o(t,e){return void 0===e&&(e={}),function(n,o){(0,i.applyMetadata)(e,n,o),(0,r.createDecorator)((function(n,r){(n.props||(n.props={}))[t]=e,(n.computed||(n.computed={}))[r]={get:function(){return this[t]},set:function(e){this.$emit("update:"+t,e)}}}))(n,o)}}},91652:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Provide:()=>o});var r=n(29992),i=n(88312);function o(t){return(0,r.createDecorator)((function(e,n){var r=e.provide;(0,i.inheritInjected)(e),(0,i.needToProduceProvide)(r)&&(r=e.provide=(0,i.produceProvide)(r)),r.managed[n]=t||n}))}},1252:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ProvideReactive:()=>o});var r=n(29992),i=n(88312);function o(t){return(0,r.createDecorator)((function(e,n){var r=e.provide;(0,i.inheritInjected)(e),(0,i.needToProduceProvide)(r)&&(r=e.provide=(0,i.produceProvide)(r)),r.managedReactive[n]=t||n}))}},57148:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Ref:()=>i});var r=n(29992);function i(t){return(0,r.createDecorator)((function(e,n){e.computed=e.computed||{},e.computed[n]={cache:!1,get:function(){return this.$refs[t||n]}}}))}},30556:(t,e,n)=>{"use strict";n.r(e),n.d(e,{VModel:()=>i});var r=n(29992);function i(t){void 0===t&&(t={});var e="value";return(0,r.createDecorator)((function(n,r){(n.props||(n.props={}))[e]=t,(n.computed||(n.computed={}))[r]={get:function(){return this[e]},set:function(t){this.$emit("input",t)}}}))}},59952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Watch:()=>i});var r=n(29992);function i(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,o=e.immediate,a=void 0!==o&&o;return(0,r.createDecorator)((function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!=typeof r[t]||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:a})}))}},8056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{applyMetadata:()=>i});var r="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function i(t,e,n){if(r&&!Array.isArray(t)&&"function"!=typeof t&&!t.hasOwnProperty("type")&&void 0===t.type){var i=Reflect.getMetadata("design:type",e,n);i!==Object&&(t.type=i)}}},88312:(t,e,n)=>{"use strict";function r(t){return"function"!=typeof t||!t.managed&&!t.managedReactive}function i(t){var e=function(){var n=this,r="function"==typeof t?t.call(this):t;for(var i in(r=Object.create(r||null))[o]=Object.create(this[o]||{}),e.managed)r[e.managed[i]]=this[i];var a=function(t){r[e.managedReactive[t]]=s[t],Object.defineProperty(r[o],e.managedReactive[t],{enumerable:!0,configurable:!0,get:function(){return n[t]}})},s=this;for(var i in e.managedReactive)a(i);return r};return e.managed={},e.managedReactive={},e}n.r(e),n.d(e,{inheritInjected:()=>a,needToProduceProvide:()=>r,produceProvide:()=>i,reactiveInjectKey:()=>o});var o="__reactiveInject__";function a(t){Array.isArray(t.inject)||(t.inject=t.inject||{},t.inject[o]={from:o,default:{}})}},94848:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Component:()=>i.default,Emit:()=>o.Emit,Inject:()=>a.Inject,InjectReactive:()=>s.InjectReactive,Mixins:()=>i.mixins,Model:()=>l.Model,ModelSync:()=>c.ModelSync,Prop:()=>u.Prop,PropSync:()=>d.PropSync,Provide:()=>f.Provide,ProvideReactive:()=>p.ProvideReactive,Ref:()=>m.Ref,VModel:()=>h.VModel,Vue:()=>r.default,Watch:()=>v.Watch});var r=n(99016),i=n(29992),o=n(73424),a=n(33789),s=n(95204),l=n(55432),c=n(12632),u=n(2768),d=n(94440),f=n(91652),p=n(1252),m=n(57148),h=n(30556),v=n(59952)},21788:(t,e,n)=>{var r={"./cells-design":40192,"./cells-design.vue":40192,"./collapsable":63372,"./collapsable.vue":63372,"./connected-users":20756,"./connected-users.vue":20756,"./content":62280,"./content-page":57768,"./content-page.vue":57768,"./content.vue":62280,"./diagram-comments":5624,"./diagram-comments.vue":5624,"./diagram-elements":46620,"./diagram-elements.vue":46620,"./diagram-grid":91344,"./diagram-grid.vue":91344,"./diagram-status":60752,"./diagram-status.vue":60752,"./orientations":71168,"./orientations.vue":71168,"./revisions":86108,"./revisions.vue":86108,"./search":77624,"./search.vue":77624,"./shared-comments":85656,"./shared-comments.vue":85656,"./tools":55640,"./tools.vue":55640,"./zoom":9928,"./zoom.vue":9928};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=21788}},t=>{var e=e=>t(t.s=e);t.O(0,[724,364,104],(()=>(e(82176),e(8436),e(82616))));t.O()}]);