1"use strict";(globalThis["webpackChunkcenter_local"]=globalThis["webpackChunkcenter_local"]||[]).push([[5375,8041],{40422(e,t,o){o.r(t),o.d(t,{default:()=>c});var s=o(16684),a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"info-box",class:{"info-box--transparent":e.transparent}},[t(s.A,{staticClass:"mr-2",attrs:{color:e.iconColor,size:"17.5"}},[e._v(" "+e._s(e.icon)+" ")]),t("div",[e.isHtml?t("span",{domProps:{innerHTML:e._s(e.text)}}):t("span",{style:{fontWeight:e.fontWeight}},[e._v(" "+e._s(e.text)+" ")]),e.moreInfoLink?t("a",{attrs:{href:e.moreInfoLink,target:"_blank"}},[e._v(e._s(e.$t("message.common.moreInformations")))]):e._e()])],1)},n=[];const i={name:"InfoBox",props:{icon:{type:String,default:"mdi-information"},iconColor:{type:String,default:"accent"},isHtml:{type:Boolean,default:!1},text:{type:String,required:!0},moreInfoLink:{type:String,default:""},transparent:{type:Boolean,default:!1},fontWeight:{type:String,default:"normal"}}},r=i;var l=o(81656),d=(0,l.A)(r,a,n,!1,null,"22e2202c",null);const c=d.exports},51579(e,t,o){o.d(t,{A:()=>c});var s=o(1231),a=function(){var e=this,t=e._self._c;return t(s.A,{staticClass:"d-flex flex-row justify-space-between align-center",attrs:{cols:"12"}},[t("h2",[e._v(" "+e._s(e.title)+" ")]),e._t("default")],2)},n=[];const i={name:"ViewHeader",props:{title:{type:[String,Object],default:""}}},r=i;var l=o(81656),d=(0,l.A)(r,a,n,!1,null,"dc590c72",null);const c=d.exports},35375(e,t,o){o.r(t),o.d(t,{default:()=>W});var s=o(30089),a=o(1231),n=o(70793),i=o(22369),r=function(){var e=this,t=e._self._c;return t(n.A,[t(i.A,{attrs:{justify:"center"}},[t("ViewHeader",{attrs:{title:e.$t("message.companyProfile.monitoredKeywords.title")}}),t(a.A,{attrs:{cols:"12"}},[t(s.A,{staticClass:"container",class:{"container--center":!e.failitiesAdded}},[e.loading?[t("SectionLoader",{attrs:{status:e.loading}})]:[e.failitiesAdded?t("MonitoredKeywords"):t("div",[t(i.A,{staticClass:"no-data",attrs:{justify:"center","align-content":"center"}},[t(a.A,{staticClass:"text-center",attrs:{sm:"6"}},[t("h3",{staticClass:"mb-3"},[e._v(" "+e._s(e.$t("message.common.addMonitoredKeywords"))+" ")]),t("p",[e._v(" "+e._s(e.$t("message.visibility.summary.noKeywordsInfo"))+" ")]),t("div",{staticClass:"d-flex flex-column mt-8"},[t("ui-button",{staticClass:"mb-2 mx-auto",staticStyle:{"max-width":"250px",width:"100%"},attrs:{color:"primary",icon:"icon-google",to:{name:"profile-gmb-accounts"}}},[e._v(" "+e._s(e.$t("message.common.importFacilities"))+" ")])],1)])],1)],1)]],2)],1)],1)],1)},l=[],d=o(51579),c=o(15137),y=o(16684),m=o(34636),w=o(84551),u=function(){var e=this,t=e._self._c;return t(i.A,[t(a.A,{attrs:{cols:"12"}},[t("div",{staticClass:"d-flex align-center"},[t("h3",{staticClass:"pl-2"},[e._v(" "+e._s(e.$t("message.companyProfile.monitoredKeywords.subtitle"))+" ")]),t(w.A,{attrs:{top:"","max-width":360},scopedSlots:e._u([{key:"activator",fn:function({on:o}){return[t(y.A,e._g({staticClass:"ml-3",attrs:{small:"",color:"accent"}},o),[e._v(" mdi-information ")])]}}])},[t("span",[e._v(" "+e._s(e.$t("message.companyProfile.monitoredKeywords.subtitleTooltip"))+" ")])])],1),t(i.A,[t(a.A,{attrs:{cols:"12",lg:e.center?12:8}},[t("section",{staticClass:"section"},[t("div",{staticClass:"d-flex align-center"},[t(m.A,{staticClass:"mt-4 mb-4",attrs:{label:e.$t("message.companyProfile.monitoredKeywords.keywordsSection.keywordInputPlaceholder"),clearable:"","data-cy":"word-input","hide-details":!0},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addKeyword.apply(null,arguments)}},model:{value:e.newKeyword,callback:function(t){e.newKeyword=t},expression:"newKeyword"}}),t("ui-button",{staticClass:"ml-3 min-w-130",attrs:{color:"primary","data-cy":"word-submit",disabled:!e.newKeyword},on:{click:e.addKeyword}},[e._v(e._s(e.$t("message.common.add")))])],1),t("InfoBox",{staticClass:"my-2",attrs:{text:e.$t("message.companyProfile.monitoredKeywords.keywordsSection.infoBoxContent")}}),e.loaded&&e.keywords&&e.keywords.length>0?t("div",{staticClass:"d-flex flex-wrap",attrs:{"data-cy":"word-container"}},e._l(e.keywords,function(o,s){return t(c.A,{key:`${o}_${s}`,staticClass:"mr-2 my-1",attrs:{outlined:""}},[e._v(" "+e._s(o.keyword.name)+" "),t(y.A,{staticClass:"ml-2 mr--1",attrs:{color:"grey"},on:{click:function(t){return e.handleDeleteKeywordClick(o)}}},[e._v(" icon-close ")])],1)}),1):e.loaded&&e.keywords&&0===e.keywords.length?t("div",{staticClass:"no-keywords"},[t("img",{attrs:{src:o(58001),alt:e.$t("message.companyProfile.monitoredKeywords.keywordsSection.noKeywordsAlt")}}),t("p",[e._v(" "+e._s(e.$t("message.companyProfile.monitoredKeywords.keywordsSection.noKeywords"))+" ")])]):e._e(
1)],1)])],1),t("SectionLoader",{attrs:{status:e.loading,opacity:.75}})],1),t("DeleteKeywordDialog",{attrs:{isOpen:e.dialog.deleteKeyword},on:{cancel:e.cancelDeletingKeyword,delete:e.deleteKeyword}})],1)},p=[],f=o(92872),h=function(){var e=this,t=e._self._c;return t(f.A,{attrs:{persistent:"","max-width":"500"},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t(s.A,{staticClass:"pa-6"},[t("p",{staticClass:"mt-3 mb-8 text-center"},[e._v(" "+e._s(e.$t("message.companyProfile.monitoredKeywords.deleteDialogLabel"))+" ")]),t("div",{staticClass:"d-flex flex-column flex-sm-row flex-wrap justify-center"},[t("ui-button",{staticClass:"mb-2 mx-1 min-w-130",attrs:{color:"primary",outlined:""},on:{click:e.cancelDeletingKeyword}},[e._v(" "+e._s(e.$t("message.common.cancel"))+" ")]),t("ui-button",{staticClass:"mb-2 mx-1 min-w-130",attrs:{color:"primary"},on:{click:e.deleteKeyword}},[e._v(" "+e._s(e.$t("message.common.delete"))+" ")])],1)])],1)},g=[];const _={name:"DeleteKeywordDialog",props:{isOpen:{type:Boolean,required:!0}},methods:{cancelDeletingKeyword(){this.$emit("cancel")},deleteKeyword(){this.$emit("delete")}}},k=_;var K=o(81656),v=(0,K.A)(k,h,g,!1,null,"e30c0410",null);const C=v.exports;var x=o(40422),A=o(8889),D=(o(74423),o(44114),o(95353)),b=o(94956);const $={data(){return{viewTitle:this.$t("message.companyProfile.tab.termsInBrowsers"),loading:!1,loaded:!1,dialog:{deleteKeyword:!1},newKeyword:"",keywordToDelete:null}},computed:{...(0,D.aH)({keywords:e=>e.keywords.keywords,keywordsScope:e=>e.keywords.scope,company:e=>e.company.company})},async created(){this.loading=!0,this.$route.query.keyword&&(this.newKeyword=this.$route.query.keyword),await this.getKeywords(),this.loading=!1,this.loaded=!0},beforeRouteLeave(e,t,o){["wizard-step-2","visibility-business-addresses"].includes(e.name)||this.$gtm.trackCustomEvent({event:b.ID.WIZARD_COMPLETE,action:"abandoned",last_step:3}),o()},methods:{async getKeywords(){this.loading=!0,await this.$store.dispatch("keywords/fetchKeywords"),this.loading=!1},getKeywordPayload(e){const t={event:b.ID.WIZARD_KEYWORD_ADD,input_type:"company",keyword:e||null};return this.$gtm.trackCustomEvent(t),{keyword:{name:e}}},async addKeyword(){this.newKeyword&&(this.loading=!0,await this.$store.dispatch("keywords/addKeyword",this.getKeywordPayload(this.newKeyword)),this.newKeyword="",this.loading=!1)},handleDeleteKeywordClick(e){this.keywordToDelete=e,this.dialog.deleteKeyword=!0},cancelDeletingKeyword(){this.keywordToDelete=null,this.dialog.deleteKeyword=!1},async deleteKeyword(){if(!this.keywordToDelete)return;this.dialog.deleteKeyword=!1,this.loading=!0;const e={event:b.ID.WIZARD_KEYWORD_REMOVE,input_type:"company",keyword:this.keywordToDelete&&this.keywordToDelete.keyword?this.keywordToDelete.keyword.name:null};this.$gtm.trackCustomEvent(e),await this.$store.dispatch("keywords/deleteKeyword",this.keywordToDelete.id),this.$notify({group:"default",type:"success",text:this.$t("message.companyProfile.monitoredKeywords.chosenKeywordDeleted")}),this.keywordToDelete=null,this.loading=!1},async setWizardComplete(){await this.$store.dispatch("company/setWizardCompletionStatus",!0),this.$gtm.trackCustomEvent({event:b.ID.WIZARD_STEP_3_KEYWORDS_ACTION,num_keywords:this.keywords.length}),this.$gtm.trackCustomEvent({event:b.ID.WIZARD_COMPLETE,action:"finished",last_step:3}),this.$router.push({name:"order-details"})}}},I={name:"MonitoredKeywords",mixins:[$],props:{center:{type:Boolean,default:!1}},components:{DeleteKeywordDialog:C,InfoBox:x["default"],SectionLoader:A["default"]}},S=I;var T=(0,K.A)(S,u,p,!1,null,"17dfd220",null);const E=T.exports,P={name:"ProfileCompanyInWeb",components:{ViewHeader:d.A,MonitoredKeywords:E,SectionLoader:A["default"]},data(){return{failitiesAdded:!1}},computed:{...(0,D.aH)({loading:e=>e.company.loading})},async created(){await this.$store.commit("company/SET_LOADING",!0),this.failitiesAdded=this.$store.state.company.company.facilities_count>0,await this.$store.commit("company/SET_LOADING",!1)}},O=P;var L=(0,K.A)(O,r,l,!1,null,"c8558156",null);const W=L.exports},58001(e,t,o){e.exports=o.p+"img/noKeywords.59fb6472.png"}}]); 2//# sourceMappingURL=5375.e4e66a70.js.map
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.