1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8542],{97179:(e,t,n)=>{function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{e:()=>i});var i={data:function(){return{langObject:{},langAppPageObject:{},langObjectSecond:{},langObjectThird:{}}},methods:{getAvailableLanguages:function(){return[{lang:"en",show:"en"},{lang:"da",show:"dk"},{lang:"ru",show:"ru"},{lang:"sv",show:"sw"},{lang:"fr",show:"fr"},{lang:"de",show:"de"},{lang:"no",show:"no"},{lang:"nl",show:"nl"},{lang:"es",show:"es"}]},getAvailableLanguagesWithTranslations:function(){return[{name:localLangs.main.english,lang:"en"},{name:localLangs.main.danish,lang:"da"},{name:localLangs.main.russian,lang:"ru"},{name:localLangs.main.swedish,lang:"sv"},{name:localLangs.main.french,lang:"fr"},{name:localLangs.main.deutsch,lang:"de"},{name:localLangs.main.norwegian,lang:"no"},{name:localLangs.main.dutch,lang:"nl"},{name:localLangs.main.spanish,lang:"es"}]},clickLanguage:function(e,t,n){var a,i=this,s={},r={},l={},u={},d={},g={},b={},p={};t.forEach((function(t){switch(n){case"en":s=o(o({},s),{},c({},t,e[t])),i.langObject.en=s;break;case"da":r=o(o({},r),{},c({},t,e[t])),i.langObject.da=r;break;case"ru":l=o(o({},l),{},c({},t,e[t])),i.langObject.ru=l;break;case"sv":u=o(o({},u),{},c({},t,e[t])),i.langObject.sv=u;break;case"fr":d=o(o({},d),{},c({},t,e[t])),d=o(o({},d),{},c({},t,e[t])),i.langObject.fr=d;break;case"de":a=o(o({},a),{},c({},t,e[t])),i.langObject.de=a;break;case"no":g=o(o({},g),{},c({},t,e[t])),i.langObject.no=g;break;case"nl":b=o(o({},b),{},c({},t,e[t])),i.langObject.nl=b;break;case"es":p=o(o({},p),{},c({},t,e[t])),i.langObject.es=p}}))},clickLanguageSingle:function(e,t,n){var a=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={},l={},u={},d={},g={},b={},p={},h={},f={};t.forEach((function(t){switch(n){case"en":r=o(o({},r),{},c({},t,e)),i||s?i?a.langObjectSecond.en=r:s&&(a.langObjectThird.en=r):a.langObject.en=r;break;case"da":l=o(o({},l),{},c({},t,e)),i||s?i?a.langObjectSecond.da=l:s&&(a.langObjectThird.da=l):a.langObject.da=l;break;case"ru":u=o(o({},u),{},c({},t,e)),i||s?i?a.langObjectSecond.ru=u:s&&(a.langObjectThird.ru=u):a.langObject.ru=u;break;case"sv":d=o(o({},d),{},c({},t,e)),i||s?i?a.langObjectSecond.sv=d:s&&(a.langObjectThird.sv=d):a.langObject.sv=d;break;case"fr":g=o(o({},g),{},c({},t,e)),i||s?i?a.langObjectSecond.fr=g:s&&(a.langObjectThird.fr=g):a.langObject.fr=g;break;case"de":b=o(o({},b),{},c({},t,e)),i||s?i?a.langObjectSecond.de=b:s&&(a.langObjectThird.de=b):a.langObject.de=b;break;case"no":p=o(o({},p),{},c({},t,e)),i||s?i?a.langObjectSecond.no=p:s&&(a.langObjectThird.no=p):a.langObject.no=p;break;case"nl":h=o(o({},h),{},c({},t,e)),i||s?i?a.langObjectSecond.nl=h:s&&(a.langObjectThird.nl=h):a.langObject.nl=h;break;case"es":f=o(o({},f),{},c({},t,e)),i||s?i?a.langObjectSecond.es=f:s&&(a.langObjectThird.es=f):a.langObject.es=f}}))},generateAppPageLanguages:function(e,t,n){var a,i=this,s={},r={},l={},u={},d={},g={},b={},p={};t.forEach((function(t){switch(n){case"en":s=o(o({},s),{},c({},t,e[t])),i.langAppPageObject.en=s;break;case"da":r=o(o({},r),{},c({},t,e[t])),i.langAppPageObject.da=r;break;case"ru":l=o(o({},l),{},c({},t,e[t])),i.langAppPageObject.ru=l;break;case"sv":u=o(o({},u),{},c({},t,e[t])),i.langAppPageObject.sv=u;break;case"fr":d=o(o({},d),{},c({},t,e[t])),d=o(o({},d),{},c({},t,e[t])),i.langAppPageObject.fr=d;break;case"de":a=o(o({},a),{},c({},t,e[t])),i.langAppPageObject.de=a;break;case"no":g=o(o({},g),{},c({},t,e[t])),i.langAppPageObject.no=g;break;case"nl":b=o(o({},b),{},c({},t,e[t])),i.langAppPageObject.no=b;break;case"es":p=o(o({},p),{},c({},t,e[t])),i.langAppPageObject.no=p}}))}}}},8542:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={name:"section-content",mixins:[n(97179).e],components:{columnFields:function(){return n.e(13990).then(n.bind(n,13990))},imagesFields:function(){return n.e(15018).then(n.bind(n,15018))},textImageFields:function(){return n.e(12652).then(n.bind(n,12652))},buttonsFields:function(){return n.e(36724).then(n.bind(n,36724))},headlineFields:function(){return n.e(94858).then(n.bind(n,94858))},usersFields:function(){return n.e(45625).then(n.bind(n,45625))}},data:function(){return{content:{group_custom_section_id:null,icon:"",icon_show:!0,headline:"",color:"",headline_show:!0,button_show:!1,content:"",shadow:!1,shape:"circular",size:"quarter",image_scaling:"cover",image:"",new_window:0,title:"",url:"",position:0,additional_buttons:[],user_ids:[],languages:{},header:""},edit:!1,sectionType:"",buttonsType:"button",usersSection:[],typeLng:"",typeLangs:""}},computed:{initData:function(){return store.state.layout.initData},typeLang:{get:function(){return this.typeLng||store.state.laravel.appLocale},set:function(e){this.typeLng=e}}},methods:{deleteContent:function(){store.dispatch("customSections/deleteSectionContent",{content:this.content,groupId:this.initData.group.id}),this.$bvModal.hide("customSectionContentModal")},clickLang:function(){var e=this,t=this;return new Promise((function(n,a){if(t.typeLang&&(t.content.headline||t.content.content||t.content.title||t.content.header||t.content.user_ids.length)){var o=["headline","content","title","header"];["leftImageText","rightImageText"].includes(e.sectionType)&&o.push("additional_buttons"),t.clickLanguage(t.content,o,t.typeLang),n()}}))},changeTypeLang:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]||(this.content.headline="",this.content.content="",this.content.title="",this.content.header="",this.content.additional_buttons=this.content.additional_buttons.map((function(e){return c(c({},e),{},{title:""})}))),Object.keys(this.langObject).forEach((function(t){var n,a;t===e.typeLang&&(e.content.headline=e.langObject[t].headline,e.content.content=e.langObject[t].content,e.content.title=e.langObject[t].title,e.content.header=e.langObject[t].header,e.content.additional_buttons=null!==(n=null===(a=e.langObject[t])||void 0===a?void 0:a.additional_buttons)&&void 0!==n?n:e.content.additional_buttons)}))}},created:function(){var e=this,t=this;alert.$on("createSectionContent",(function(t){Object.assign(e.$data,e.$options.data()),e.langObject={},e.typeLangs.length||(e.typeLangs=e.getAvailableLanguagesWithTranslations()),e.content.group_custom_section_id=t.sectionId,e.content.color="#2F363D",e.sectionType=t.sectionType,e.edit=!1,e.buttonsType=t.typeModal,e.usersSection=[],alert.$emit("clear_images")})),alert.$on("editSectionContent",(function(t){if(e.langObject={},e.typeLangs.length||(e.typeLangs=e.getAvailableLanguagesWithTranslations()),e.sectionType=t.section.type,e.content=c({},t.item),Object.keys(e.content.languages).length){var n={};Object.values(e.content.languages).forEach((function(e){n[e.lang]||(n[e.lang]=JSON.parse(e.translation))})),e.langObject=n}e.edit=!0,e.buttonsType=t.typeModal,e.usersSection=t.users,e.content.color=t.item.color,e.changeTypeLang(!0),alert.$emit("clear_images")})),alert.$on("validate_complite",(function(e){"object"==a(e)&&!e[0]||"boolean"==typeof e&&!e||t.clickLang().then((function(){return new Promise((function(e,n){t.content.languages=t.langObject,e()})).then((function(){t.content.additional_buttons=t.content.additional_buttons?JSON.stringify(t.content.additional_buttons):null,t.edit?store.dispatch("customSections/editSectionContent",{content:t.content,groupId:t.initData.group.id}):store.dispatch("customSections/createSectionContent",{content:t.content,groupId:t.initData.group.id}
1),alert.$emit("clear_images"),t.langObject={},("object"!=a(e)||"object"==a(e)&&!e[1])&&t.$bvModal.hide("customSectionContentModal")}))}))})),alert.$on("delete_content",(function(){e.deleteContent()}))}};const r=(0,n(14486).A)(s,(function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{id:"customSectionContentModal","modal-class":"modal-design","hide-footer":"","hide-header":"","body-class":"border-radius-medium"}},[t("div",[t("div",{staticClass:"modal-content"},[t("div",{staticClass:"flex justify-content-between align-items-center padding-modal border-radius-big-top",class:"column1"==e.sectionType?"background-white":"background-lighter-grey"},[t("div",{staticClass:"modal-title"},[t("p",{staticClass:"text-black"},[e._v(e._s(e.localLangs.customSection.update_section))]),e._v(" "),t("p",[e._v(e._s(e.edit?e.localLangs.customSection.edit_point:e.localLangs.customSection.add_point))])]),e._v(" "),t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.typeLang,expression:"typeLang"}],staticClass:"bg-transparent text-uppercase mr-3 font-14 border-none",on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.typeLang=t.target.multiple?n:n[0]},function(t){return e.changeTypeLang()}],focus:e.clickLang,click:e.clickLang}},e._l(e.typeLangs,(function(n){return t("option",{domProps:{value:n.lang}},[e._v(e._s(n.lang))])})),0),e._v(" "),t("span",{staticClass:"fa fa-times pointer color-light-blue",on:{click:function(t){return e.$bvModal.hide("customSectionContentModal")}}})])]),e._v(" "),["column","column1"].includes(e.sectionType)&&e.buttonsType===e.sectionType?[t("columnFields",{attrs:{edit:e.edit,sectionType:e.sectionType,content:e.content}})]:["leftImageText","rightImageText"].includes(e.sectionType)&&e.buttonsType===e.sectionType?[t("textImageFields",{attrs:{edit:e.edit,sectionType:e.sectionType,content:e.content}})]:"images"==e.sectionType&&e.buttonsType===e.sectionType?[t("imagesFields",{attrs:{edit:e.edit,sectionType:e.sectionType,content:e.content}})]:"users"==e.sectionType&&e.buttonsType===e.sectionType?[t("usersFields",{attrs:{edit:e.edit,content:e.content,sectionType:e.sectionType,sectionUsers:e.usersSection}})]:"buttons"==e.sectionType?["button"==e.buttonsType?t("buttonsFields",{attrs:{edit:e.edit,sectionType:e.sectionType,content:e.content}}):t("headlineFields",{attrs:{edit:e.edit,content:e.content,sectionType:e.sectionType}})]:[t("headlineFields",{attrs:{edit:e.edit,content:e.content,sectionType:e.sectionType,columnsHeadline:!0}})]],2)])])}),[],!1,null,null,null).exports},14486:(e,t,n)=>{function a(e,t,n,a,o,c,i,s){var r,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),a&&(l.functional=!0),c&&(l._scopeId="data-v-"+c),i?(r=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=r):o&&(r=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),r)if(l.functional){l._injectStyles=r;var u=l.render;l.render=function(e,t){return r.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,r):[r]}return{exports:e,options:l}}n.d(t,{A:()=>a})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.