\n{% endblock %}\n\n'}),Shopware.Service("cmsService").registerCmsElement({name:"campaigns",label:"sw-cms.elements.campaigns.label",component:"sw-cms-el-campaigns",configComponent:"sw-cms-el-config-campaigns",previewComponent:"sw-cms-el-preview-campaigns",defaultConfig:{advisorCampaignName:{value:"",source:"static"},feedbackCampaignLabel:{value:"",source:"static"},feedbackCampaignFlag:{value:"",source:"static"},enableFeedbackCampaign:{value:!1,source:"static"},enableAdvisorCampaign:{value:!1,source:"static"},enableRedirectCampaign:{value:!1,source:"static"},enablePushedProducts:{value:!1,source:"static"},pushedProductsFlag:{value:"",source:"static"},pushedProductsName:{value:"",source:"static"}}}),t(700),t(288);let{Component:l,Mixin:c}=Shopware;l.register("ui-feed-export-form",{template:'{% block factfinder_module_ui_feed_export %}\n \n\n \n \n \n \n\n \n \n\n \n \n \n\n \n \n\n {{ $tc(\'ui-feed-export.component.export_form.button.title\') }}\n \n \n \n{% endblock %}\n',inject:["systemConfigApiService"],data(){return{salesChannelValue:null,salesChannelLanguageValue:null,exportTypeValue:null,typeSelectOptions:[],isCacheDisable:!1,isLoadingCache:!1,isLoadingExport:!1}},mixins:[c.getByName("notification")],mounted(){this.getPluginConfig(),this.getExportTypeValues()},filters:{capitalize:function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""}},methods:{async getPluginConfig(){let e=await this.systemConfigApiService.getValues("OmikronFactFinder.config");this.isCacheDisable=e["OmikronFactFinder.config.enableExportCache"]},getExportTypeValues(){let e=Shopware.Service("syncService").httpClient,n={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};e.get("_action/fact-finder/get-export-type-options",{headers:n}).then(e=>{200===e.status&&(this.typeSelectOptions=e.data)})},successFeedGenerationWindow(){this.createNotificationSuccess({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.alert_success.text")})},errorFeedGenerationWindow(){this.createNotificationError({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.alert_error.text")})},errorNotValidParams(){this.createNotificationError({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.alert_not_valid_params.text")})},successRefreshCacheWindow(){this.createNotificationSuccess({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.refresh_cache_success.text")})},errorRefreshCacheWindow(){this.createNotificationError({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.refresh_cache_error.text")})},validateParams(e){return null!==e.salesChannelValue&&null!==e.salesChannelLanguageValue&&null!==e.exportTypeValue},getFeedExportFile(e){let n={salesChannelValue:this.salesChannelValue,salesChannelLanguageValue:this.salesChannelLanguageValue,exportTypeValue:this.exportTypeValue};if(!this.validateParams(n)){this.errorNotValidParams();return}this.isLoadingExport=!0;let t=Shopware.Service("syncService").httpClient,i={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};t.get(e,{headers:i,params:n}).then(e=>{200===e.status?this.successFeedGenerationWindow():this.errorFeedGenerationWindow(),this.isLoadingExport=!1})},refreshExportCache(e){this.isLoadingCache=!0;let n=Shopware.Service("syncService").httpClient,t={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"},i={salesChannelValue:this.salesChannelValue,salesChannelLanguageValue:this.salesChannelLanguageValue};n.get(e,{headers:t,params:i}).then(e=>{200===e.status?this.successRefreshCacheWindow():this.errorRefreshCacheWindow(),this.isLoadingCache=!1})}}});let{Component:r}=Shopware;r.register("ui-feed-export-index",{template:'{% block factfinder_ui_feed_export_index %}\n \n \n \n \n \n{% endblock %}\n',metaInfo(){return{title:this.$createTitle()}}});var d=JSON.parse('{"ui-feed-export":{"title":"FACT-Finder\xae Feed-Export","component":{"export_form":{"sales_channel":{"label":"Verkaufskanal"},"sales_channel_language":{"label":"Sprache"},"button":{"title":"Export erstellen"},"cache_button":{"title":"Cache-Export aktualisieren"},"alert_success":{"text":"Der Export wurde generiert"},"alert_error":{"text":"W\xe4hrend des Integrationsprozesses ist ein Fehler aufgetreten"},"export_type":{"label":"W\xe4hlen Sie den Exporttyp aus"},"alert_not_valid_params":{"text":"Bitte w\xe4hlen Sie Exportparameter aus"},"refresh_cache_success":{"text":"Der Export-Cache wurde aktualisiert"},"refresh_cache_error":{"text":"Beim Aktualisieren des Exportcaches ist ein Fehler aufgetreten"}}}}}'),p=JSON.parse('{"ui-feed-export":{"title":"FACT-Finder\xae Feed Export","component":{"export_form":{"sales_channel":{"label":"Sales Channel"},"sales_channel_language":{"label":"Language"},"button":{"title":"Create Export"},"cache_button":{"title":"Refresh cache Export"},"alert_success":{"text":"Export has been generated"},"alert_error":{"text":"An error occurred during integration process"},"export_type":{"label":"Select export type"},"alert_not_valid_params":{"text":"Please choose export parameters"},"refresh_cache_success":{"text":"Export cache has been refreshed"},"refresh_cache_error":{"text":"An error occurred during refresh export cache"}}}}}');let{Module:m}=Shopware;m.register("ui-feed-export",{color:"#ff3d58",icon:"default-shopping-paper-bag-product",title:"ui-feed-export.title",description:"",snippets:{"de-DE":d,"en-GB":p},routes:{index:{component:"ui-feed-export-index",path:"index"}},navigation:[{label:"ui-feed-export.title",path:"ui.feed.export.index",position:100,parent:"sw-extension"}]});let{Component:f,Mixin:u}=Shopware;f.register("update-field-roles",{template:'\n {{ $tc(\'configuration.updateFieldRoles.update\') }}\n\n',inject:["fieldRolesService"],mixins:[u.getByName("notification"),u.getByName("sw-inline-snippet")],data(){return{isLoading:!1,isSaveSuccessful:!1}},methods:{async onClick(){this.isLoading=!0,await this.fieldRolesService.sendUpdateFieldRoles(),this.isSaveSuccessful=!0,this.isLoading=!1,this.createNotificationSuccess({message:Shopware.Snippet.tc("configuration.updateFieldRoles.update")})}}}),t(259);let{Component:g,Mixin:h}=Shopware;g.register("test-api-connection",{template:'\n {{ $tc(\'configuration.testApiConnection.testConnection\') }}\n\n',mixins:[h.getByName("notification"),h.getByName("sw-inline-snippet")],data(){return{isLoading:!1,isSaveSuccessful:!1}},methods:{async onClick(){this.isLoading=!0;let e=Shopware.Service("syncService").httpClient,n={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};e.get("_action/test-connection/api",{headers:n}).then(e=>{200===e.status?this.createNotificationSuccess({message:Shopware.Snippet.tc("configuration.testConnection.success")}):this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).catch(()=>{this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).finally(()=>{this.isSaveSuccessful=!0,this.isLoading=!1})}}}),t(262);let{Component:w,Mixin:v}=Shopware;w.register("test-ftp-connection",{template:'\n {{ $tc(\'configuration.testFtpConnection.testConnection\') }}\n\n',mixins:[v.getByName("notification"),v.getByName("sw-inline-snippet")],data(){return{isLoading:!1,isSaveSuccessful:!1}},methods:{async onClick(){this.isLoading=!0;let e=Shopware.Service("syncService").httpClient,n={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};e.get("_action/test-connection/ftp",{headers:n}).then(e=>{200===e.status?this.createNotificationSuccess({message:Shopware.Snippet.tc("configuration.testConnection.success")}):this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).catch(()=>{this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).finally(()=>{this.isSaveSuccessful=!0,this.isLoading=!1})}}});let b=Shopware.Classes.ApiService;var C=class extends b{constructor(e,n){super(e,n,null,"application/json"),this.name="fieldRolesServiceApi"}sendUpdateFieldRoles(){let e=this.getBasicHeaders();return this.httpClient.get("_action/field-roles/update",{headers:e}).then(e=>b.handleResponse(e))}};Shopware.Service().register("fieldRolesService",()=>new C(Shopware.Application.getContainer("init").httpClient,Shopware.Service("loginService")));var S=JSON.parse('{"sw-cms":{"blocks":{"commerce":{"factfinderWebComponentsListing":{"label":"Typische Sammlung von Webkomponenten, die eine Suchergebnisseite implementiert"},"factfinderWebComponentsCampaigns":{"label":"FACT-Finder\xae Web Components Kampagnen"},"factfinderWebComponentsFilters":{"label":"FACT-Finder\xae Web Components Filter"},"factfinderWebComponentsRecordList":{"label":"FACT-Finder\xae Web Components Rekordliste"}}},"elements":{"recordList":{"label":"FACT-Finder\xae Web Components ff-record-list element","config":{"callbackArg":"Name des Arguments, das im Callback-Bereich verf\xfcgbar sein wird","callback":"R\xfcckruf zum abonnierten Thema. Es wird empfohlen, nur einen R\xfcckruf pro Thema und Seite durchzuf\xfchren.","domUpdated":"Listener f\xfcr das dom-update-Ereignis dieses Elements","id":"Der Wert wird als „id“-Attribut an das Element \xfcbergeben. Wenn nicht angegeben, wird die Standard-CMS-Element-ID verwendet"}},"asn":{"asn":{"label":"FACT-Finder\xae Web Components ff-asn element","config":{"callbackArg":"Name des Arguments, das im Callback-Bereich verf\xfcgbar sein wird","callback":"R\xfcckruf zum abonnierten Thema. Es wird empfohlen, nur einen R\xfcckruf pro Thema und Seite durchzuf\xfchren.","domUpdated":"Listener f\xfcr das dom-update-Ereignis dieses Elements.","id":"Der Wert wird als „id“-Attribut an das Element \xfcbergeben. Wenn nicht angegeben, wird die Standard-CMS-Element-ID verwendet","topic":"Wenn Sie dieses Feld leer lassen, abonniert das Element sein Standardthema (ASN).","vertical":"Durch die Einstellung „true“ wird die zus\xe4tzliche CSS-Klasse „btn-block“ zu „ff-asn-group“ und „
\n{% endblock %}\n\n'}),Shopware.Service("cmsService").registerCmsElement({name:"campaigns",label:"sw-cms.elements.campaigns.label",component:"sw-cms-el-campaigns",configComponent:"sw-cms-el-config-campaigns",previewComponent:"sw-cms-el-preview-campaigns",defaultConfig:{advisorCampaignName:{value:"",source:"static"},feedbackCampaignLabel:{value:"",source:"static"},feedbackCampaignFlag:{value:"",source:"static"},enableFeedbackCampaign:{value:!1,source:"static"},enableAdvisorCampaign:{value:!1,source:"static"},enableRedirectCampaign:{value:!1,source:"static"},enablePushedProducts:{value:!1,source:"static"},pushedProductsFlag:{value:"",source:"static"},pushedProductsName:{value:"",source:"static"}}}),t(700),t(288);let{Component:l,Mixin:c}=Shopware;l.register("ui-feed-export-form",{template:'{% block factfinder_module_ui_feed_export %}\n \n\n \n \n \n \n\n \n \n\n \n \n \n\n \n \n\n {{ $tc(\'ui-feed-export.component.export_form.button.title\') }}\n \n \n \n{% endblock %}\n',inject:["systemConfigApiService"],data(){return{salesChannelValue:null,salesChannelLanguageValue:null,exportTypeValue:null,typeSelectOptions:[],isCacheDisable:!1,isLoadingCache:!1,isLoadingExport:!1}},mixins:[c.getByName("notification")],mounted(){this.getPluginConfig(),this.getExportTypeValues()},filters:{capitalize:function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""}},methods:{async getPluginConfig(){let e=await this.systemConfigApiService.getValues("OmikronFactFinder.config");this.isCacheDisable=e["OmikronFactFinder.config.enableExportCache"]},getExportTypeValues(){let e=Shopware.Service("syncService").httpClient,n={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};e.get("_action/fact-finder/get-export-type-options",{headers:n}).then(e=>{200===e.status&&(this.typeSelectOptions=e.data)})},successFeedGenerationWindow(){this.createNotificationSuccess({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.alert_success.text")})},errorFeedGenerationWindow(){this.createNotificationError({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.alert_error.text")})},errorNotValidParams(){this.createNotificationError({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.alert_not_valid_params.text")})},successRefreshCacheWindow(){this.createNotificationSuccess({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.refresh_cache_success.text")})},errorRefreshCacheWindow(){this.createNotificationError({message:Shopware.Snippet.tc("ui-feed-export.component.export_form.refresh_cache_error.text")})},validateParams(e){return null!==e.salesChannelValue&&null!==e.salesChannelLanguageValue&&null!==e.exportTypeValue},getFeedExportFile(e){let n={salesChannelValue:this.salesChannelValue,salesChannelLanguageValue:this.salesChannelLanguageValue,exportTypeValue:this.exportTypeValue};if(!this.validateParams(n)){this.errorNotValidParams();return}this.isLoadingExport=!0;let t=Shopware.Service("syncService").httpClient,i={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};t.get(e,{headers:i,params:n}).then(e=>{200===e.status?this.successFeedGenerationWindow():this.errorFeedGenerationWindow(),this.isLoadingExport=!1})},refreshExportCache(e){this.isLoadingCache=!0;let n=Shopware.Service("syncService").httpClient,t={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"},i={salesChannelValue:this.salesChannelValue,salesChannelLanguageValue:this.salesChannelLanguageValue};n.get(e,{headers:t,params:i}).then(e=>{200===e.status?this.successRefreshCacheWindow():this.errorRefreshCacheWindow(),this.isLoadingCache=!1})}}});let{Component:r}=Shopware;r.register("ui-feed-export-index",{template:'{% block factfinder_ui_feed_export_index %}\n \n \n \n \n \n{% endblock %}\n',metaInfo(){return{title:this.$createTitle()}}});var d=JSON.parse('{"ui-feed-export":{"title":"FACT-Finder\xae Feed-Export","component":{"export_form":{"sales_channel":{"label":"Verkaufskanal"},"sales_channel_language":{"label":"Sprache"},"button":{"title":"Export erstellen"},"cache_button":{"title":"Cache-Export aktualisieren"},"alert_success":{"text":"Der Export wurde generiert"},"alert_error":{"text":"W\xe4hrend des Integrationsprozesses ist ein Fehler aufgetreten"},"export_type":{"label":"W\xe4hlen Sie den Exporttyp aus"},"alert_not_valid_params":{"text":"Bitte w\xe4hlen Sie Exportparameter aus"},"refresh_cache_success":{"text":"Der Export-Cache wurde aktualisiert"},"refresh_cache_error":{"text":"Beim Aktualisieren des Exportcaches ist ein Fehler aufgetreten"}}}}}'),p=JSON.parse('{"ui-feed-export":{"title":"FACT-Finder\xae Feed Export","component":{"export_form":{"sales_channel":{"label":"Sales Channel"},"sales_channel_language":{"label":"Language"},"button":{"title":"Create Export"},"cache_button":{"title":"Refresh cache Export"},"alert_success":{"text":"Export has been generated"},"alert_error":{"text":"An error occurred during integration process"},"export_type":{"label":"Select export type"},"alert_not_valid_params":{"text":"Please choose export parameters"},"refresh_cache_success":{"text":"Export cache has been refreshed"},"refresh_cache_error":{"text":"An error occurred during refresh export cache"}}}}}');let{Module:m}=Shopware;m.register("ui-feed-export",{color:"#ff3d58",icon:"default-shopping-paper-bag-product",title:"ui-feed-export.title",description:"",snippets:{"de-DE":d,"en-GB":p},routes:{index:{component:"ui-feed-export-index",path:"index"}},navigation:[{label:"ui-feed-export.title",path:"ui.feed.export.index",position:100,parent:"sw-extension"}]});let{Component:u,Mixin:f}=Shopware;u.register("update-field-roles",{template:'\n {{ $tc(\'configuration.updateFieldRoles.update\') }}\n\n',inject:["fieldRolesService"],mixins:[f.getByName("notification"),f.getByName("sw-inline-snippet")],data(){return{isLoading:!1,isSaveSuccessful:!1}},methods:{async onClick(){this.isLoading=!0,await this.fieldRolesService.sendUpdateFieldRoles(),this.isSaveSuccessful=!0,this.isLoading=!1,this.createNotificationSuccess({message:Shopware.Snippet.tc("configuration.updateFieldRoles.update")})}}}),t(259);let{Component:g,Mixin:h}=Shopware;g.register("test-api-connection",{template:'\n {{ $tc(\'configuration.testApiConnection.testConnection\') }}\n\n',mixins:[h.getByName("notification"),h.getByName("sw-inline-snippet")],data(){return{isLoading:!1,isSaveSuccessful:!1}},methods:{async onClick(){this.isLoading=!0;let e=Shopware.Service("syncService").httpClient,n={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};e.get("_action/test-connection/api",{headers:n}).then(e=>{200===e.status?this.createNotificationSuccess({message:Shopware.Snippet.tc("configuration.testConnection.success")}):this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).catch(()=>{this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).finally(()=>{this.isSaveSuccessful=!0,this.isLoading=!1})}}}),t(262);let{Component:w,Mixin:v}=Shopware;w.register("test-ftp-connection",{template:'\n {{ $tc(\'configuration.testFtpConnection.testConnection\') }}\n\n',mixins:[v.getByName("notification"),v.getByName("sw-inline-snippet")],data(){return{isLoading:!1,isSaveSuccessful:!1}},methods:{async onClick(){this.isLoading=!0;let e=Shopware.Service("syncService").httpClient,n={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};e.get("_action/test-connection/ftp",{headers:n}).then(e=>{200===e.status?this.createNotificationSuccess({message:Shopware.Snippet.tc("configuration.testConnection.success")}):this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).catch(()=>{this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).finally(()=>{this.isSaveSuccessful=!0,this.isLoading=!1})}}});let{Component:b,Mixin:C}=Shopware;b.register("test-push-import-connection",{template:'\n {{ $tc(\'configuration.testApiConnection.testConnection\') }}\n\n',mixins:[C.getByName("notification"),C.getByName("sw-inline-snippet")],data(){return{isLoading:!1,isSaveSuccessful:!1}},methods:{async onClick(){this.isLoading=!0;let e=Shopware.Service("syncService").httpClient,n={Authorization:`Bearer ${Shopware.Context.api.authToken.access}`,"Content-Type":"application/json"};e.get("_action/test-connection/push-import",{headers:n}).then(e=>{200===e.status?this.createNotificationSuccess({message:Shopware.Snippet.tc("configuration.testConnection.success")}):this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).catch(()=>{this.createNotificationError({title:Shopware.Snippet.tc("configuration.testConnection.fail"),message:Shopware.Snippet.tc("configuration.testConnection.helpText")})}).finally(()=>{this.isSaveSuccessful=!0,this.isLoading=!1})}}});let S=Shopware.Classes.ApiService;var x=class extends S{constructor(e,n){super(e,n,null,"application/json"),this.name="fieldRolesServiceApi"}sendUpdateFieldRoles(){let e=this.getBasicHeaders();return this.httpClient.get("_action/field-roles/update",{headers:e}).then(e=>S.handleResponse(e))}};Shopware.Service().register("fieldRolesService",()=>new x(Shopware.Application.getContainer("init").httpClient,Shopware.Service("loginService")));var _=JSON.parse('{"sw-cms":{"blocks":{"commerce":{"factfinderWebComponentsListing":{"label":"Typische Sammlung von Webkomponenten, die eine Suchergebnisseite implementiert"},"factfinderWebComponentsCampaigns":{"label":"FACT-Finder\xae Web Components Kampagnen"},"factfinderWebComponentsFilters":{"label":"FACT-Finder\xae Web Components Filter"},"factfinderWebComponentsRecordList":{"label":"FACT-Finder\xae Web Components Rekordliste"}}},"elements":{"recordList":{"label":"FACT-Finder\xae Web Components ff-record-list element","config":{"callbackArg":"Name des Arguments, das im Callback-Bereich verf\xfcgbar sein wird","callback":"R\xfcckruf zum abonnierten Thema. Es wird empfohlen, nur einen R\xfcckruf pro Thema und Seite durchzuf\xfchren.","domUpdated":"Listener f\xfcr das dom-update-Ereignis dieses Elements","id":"Der Wert wird als „id“-Attribut an das Element \xfcbergeben. Wenn nicht angegeben, wird die Standard-CMS-Element-ID verwendet"}},"asn":{"asn":{"label":"FACT-Finder\xae Web Components ff-asn element","config":{"callbackArg":"Name des Arguments, das im Callback-Bereich verf\xfcgbar sein wird","callback":"R\xfcckruf zum abonnierten Thema. Es wird empfohlen, nur einen R\xfcckruf pro Thema und Seite durchzuf\xfchren.","domUpdated":"Listener f\xfcr das dom-update-Ereignis dieses Elements.","id":"Der Wert wird als „id“-Attribut an das Element \xfcbergeben. Wenn nicht angegeben, wird die Standard-CMS-Element-ID verwendet","topic":"Wenn Sie dieses Feld leer lassen, abonniert das Element sein Standardthema (ASN).","vertical":"Durch die Einstellung „true“ wird die zus\xe4tzliche CSS-Klasse „btn-block“ zu „ff-asn-group“ und „