PageSourceSearch

https://saltstraumen.info/dist/all/chunks/9385-05ca9da6ac2284385811.js

js saltstraumen.info collected 2026-09-25 07:13:35 UTC 17,696 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[2775,9385,14680,20641,25156,33582,37061,43022,47537,58013,59442,69918,80394,92299],{d8934952573330a4(e,t,l){l.r(t),l.d(t,{default:()=>j}),l("6bcf20aa1369abd3"),l("1519ef9f27f54b60"),l("27e0a48d3d4d9aab");var i=l("b641633d6c906d19"),a=l("82d8eefb58430341"),s=l("a54fa6d0a722ba3f"),n=l("99c472be6da17922"),o=l("0a7bbc22bb49fa90"),d=l("ba3785355cfb5e6b"),c=l("66c091bfb75025da"),r=l("7b8d379d3286a699"),u=l("fc32e747a2e978da"),v=l("388ad1c32495da5d"),p=l("d13e3f325c7ab8e3"),m=l("db7fc61db8da52af"),g=l("a9bcaf22dee96965"),b=l("edce56f4b3afa74f"),y=l("92c490e8e5efe9cd"),f=l("eb0d7dd6674ec63a");const h={class:"tab-inner-content"},C={class:"privacy-policy-urls"},S={class:"tab-inner-content"},k={class:"tab-inner-content"},D={key:0,class:"custom-services-list"},V={key:0,class:"custom-services-table"},U=["textContent"],F=["textContent"],$=["textContent"],w=["textContent"],L={class:"custom-services-actions"},x=["textContent"],M={key:1,class:"custom-service-form"},E={class:"custom-consent-text-field"},_={class:"custom-service-form-buttons"},A={class:"tab-inner-content"},X={class:"tab-inner-content"},P={class:"custom-consent-text-field"},T={class:"custom-consent-text-field"},R={class:"custom-consent-text-field"},K={class:"custom-consent-text-field"},H={class:"custom-consent-text-field"},O={data:()=>({availableServices:null,enabledServices:null,selectedMode:null,privacyPolicyUrls:{},hasReadConfig:!1,gdprConsentDialogLogo:"",skipOverviewMode:!0,hideServicesList:!1,hideHeaders:!1,gdprConsentDialogDisplayMode:"automatic-until-answer",customHeader:{},customConfigureDescription:{},requiredServicesDescription:{},featureServicesDescription:{},analyticsServicesDescription:{},customServices:[],editingService:null}),async mounted(){this.readConfig(),this.readAvailableServices(),this.readEnabledServices(),this.readCustomServices()},methods:{setPrivacyPolicyUrl(e,t){Object.keys(this.privacyPolicyUrls).includes(e)&&(this.privacyPolicyUrls={...this.privacyPolicyUrls,[e]:t})},setCustomConsentText(e,t,l){Object.keys(this[e]).includes(t)&&(this[e]={...this[e],[t]:l})},async saveAndClose(){const e=fetch("/Api/v2/gdpr-config/config",{method:"put",headers:{"content-type":"application/json"},body:JSON.stringify(this.getConfig())}),t="gdpr"==this.selectedMode?fetch("/Api/v2/gdpr-config/services/enabled",{method:"put",headers:{"content-type":"application/json"},body:JSON.stringify(this.enabledServices)}):Promise.resolve();await e,await t,await this.readConfig(),await this.readEnabledServices(),b.A.returnDialogBox(!0)},cancelDialog(){b.A.returnDialogBox(!1)},setEnabled(e,t){this.enabledState={...this.enabledState,[e]:t}},async readConfig(){const e=await fetch("/Api/v2/gdpr-config/config",{cache:"no-cache"});if(!e.ok)return;const t=await e.json();this.selectedMode=t?.mode??"",this.privacyPolicyUrls=t?.privacyPolicyUrls??{},this.gdprConsentDialogLogo=t?.gdprConsentDialogLogo??"",this.skipOverviewMode=t?.gdprConsentCustomConsentSettings?.skipOverviewMode??!1,this.hideServicesList=t?.gdprConsentCustomConsentSettings?.hideServicesList??!1,this.gdprConsentDialogDisplayMode=t?.gdprConsentDialogDisplayMode??null,this.hideHeaders=t?.gdprConsentCustomConsentSettings?.hideHeaders??!1,this.customHeader=t?.gdprConsentCustomConsentSettings?.customHeader??{},this.customConfigureDescription=t?.gdprConsentCustomConsentSettings?.customConfigureDescription??{},this.requiredServicesDescription=t?.gdprConsentCustomConsentSettings?.requiredServicesDescription??{},this.featureServicesDescription=t?.gdprConsentCustomConsentSettings?.featureServicesDescription??{},this.analyticsServicesDescription=t?.gdprConsentCustomConsentSettings?.analyticsServicesDescription??{},this.hasReadConfig=!0},getConfig(){return this.hasReadConfig?{mode:this.selectedMode,privacyPolicyUrls:this.privacyPolicyUrls,gdprConsentDialogLogo:this.gdprConsentDialogLogo,gdprConsentDialogDisplayMode:this.gdprConsentDialogDisplayMode,skipOverviewMode:this.skipOverviewMode,hideHeaders:this.hideHeaders,hideServicesList:this.hideServicesList,customHeader:this.customHeader,customConfigureDescription:this.customConfigureDescription,requiredServicesDescription:this.requiredServicesDescription,featureServicesDescription:this.featureServicesDescription,analyticsServicesDescription:this.analyticsServicesDescription}:null},async readAvailableServices(){const e=await fetch("/Api/v2/gdpr-config/services/available",{cache:"no-cache"});e.ok&&(this.availableServices=await e.json())},async readEnabledServices(){const e=await fetch("/Api/v2/gdpr-config/services/enabled",{cache:"no-cache"});e.ok&&(this.enabledServices=await e.json())},async readCustomServices(){const e=await fetch("/Api/v2/gdpr-config/services/custom",{cache:"no-cache"});e.ok&&(this.customServices=await e.json())},startNewService(){const e={};for(const t of Object.keys(this.privacyPolicyUrls))e[t]="";
1this.editingService={id:null,slug:"",serviceType:"feature",dataUsageKeys:[],titles:e}},startEditService(e){const t={};for(const l of Object.keys(this.privacyPolicyUrls))t[l]=e.titles?.[l]??"";this.editingService={id:e.id,slug:e.slug,serviceType:e.serviceType,dataUsageKeys:[...e.dataUsageKeys??[]],titles:t}},cancelEditService(){this.editingService=null},setEditingServiceTitle(e,t){this.editingService={...this.editingService,titles:{...this.editingService.titles,[e]:t}}},toggleDataUsageKey(e,t){const l=[...this.editingService.dataUsageKeys];if(t&&!l.includes(e))l.push(e);else if(!t){const t=l.indexOf(e);t>=0&&l.splice(t,1)}this.editingService={...this.editingService,dataUsageKeys:l}},async saveCustomService(){const e=!this.editingService.id,t=e?"/Api/v2/gdpr-config/services/custom":"/Api/v2/gdpr-config/services/custom/"+this.editingService.id,l=await fetch(t,{method:e?"POST":"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(this.editingService)});if(!l.ok){const e=await l.json().catch(()=>null);return void alert(e?.error??"Failed to save custom service")}this.editingService=null,await this.readCustomServices(),await this.readAvailableServices()},async deleteCustomService(e){confirm(this.$t("Are you sure you want to delete this custom service?"))&&((await fetch("/Api/v2/gdpr-config/services/custom/"+e.id,{method:"DELETE"})).ok?(await this.readCustomServices(),await this.readAvailableServices()):alert("Failed to delete custom service"))}},computed:{...(0,f.aH)(y.x,["isSuperAdministrator"]),enabledState:{get(){return Object.fromEntries(this.availableServices.map(e=>[e.name,this.enabledServices.map(e=>e.name).includes(e.name)]))},set(e){this.enabledServices=this.availableServices.filter(t=>!!e[t.name])}},builtInDataUsageKeys:()=>["anonymous-statistics","ad-measurement","personalized-ads","personalized-content","store-selected-items","verify-identity-to-reduce-abuse","browser-statistics","customer-support"],isReady(){return null!==this.availableServices&&null!==this.enabledServices},tabsList(){return[{title:this.$t("Settings"),id:"settings"},..."gdpr"==this.selectedMode?[{title:this.$t("GDPR data services"),id:"gdpr-services"},{title:this.$t("Custom services"),id:"custom-services"},{title:this.$t("GDPR consent dialog settings"),id:"gdpr-consent-dialog-settings"}]:[],..."gdpr"==this.selectedMode&&this.isSuperAdministrator?[{title:this.$t("Consent text-settings"),id:"gdpr-superadmin-settings"}]:[],..."legacy"==this.selectedMode?[{title:this.$t("Legacy configuration"),id:"legacy-configuration"}]:[]]}}},q=(0,i.pM)({...O,__name:"GpdrConsentManager",setup:e=>(e,t)=>((0,i.uX)(),(0,i.Wv)(o.default,{title:e.$t("GDPR consent manager"),width:1020},{default:(0,i.k6)(()=>[(0,i.bo)((0,i.Lk)("form",{action:"",method:"post",onSubmit:t[14]||(t[14]=(0,a.D$)((...t)=>e.saveAndClose&&e.saveAndClose(...t),["stop","prevent"]))},[(0,i.bo)((0,i.bF)(d.default,{title:e.$t("GDPR consent manager")},{buttons:(0,i.k6)(()=>[(0,i.bF)(u.default,{label:e.$t("Save"),type:"submit",highlighted:""},null,8,["label"]),(0,i.bF)(u.default,{label:e.$t("Cancel"),onClick:e.cancelDialog},null,8,["label","onClick"])]),default:(0,i.k6)(()=>[e.isReady?((0,i.uX)(),(0,i.Wv)((0,s.R1)(c.S),{key:0,tabs:e.tabsList},{settings:(0,i.k6)(()=>[(0,i.Lk)("div",h,[(0,i.bF)(m.default,{label:e.$t("Mode"),segment:""},{default:(0,i.k6)(()=>[(0,i.bF)(g.default,{type:"radio",label:e.$t("None"),name:"mode","checked-value":"",modelValue:e.selectedMode,"onUpdate:modelValue":t[0]||(t[0]=t=>e.selectedMode=t)},null,8,["label","modelValue"]),(0,i.bF)(g.default,{type:"radio",label:e.$t("Use legacy cookie consent banner"),name:"mode","checked-value":"legacy",modelValue:e.selectedMode,"onUpdate:modelValue":t[1]||(t[1]=t=>e.selectedMode=t)},null,8,["label","modelValue"]),(0,i.bF)(g.default,{type:"radio",label:e.$t("Use GDPR data consent dialog"),name:"mode","checked-value":"gdpr",modelValue:e.selectedMode,"onUpdate:modelValue":t[2]||(t[2]=t=>e.selectedMode=t)},null,8,["label","modelValue"])]),_:1},8,["label"]),(0,i.bF)(m.default,{label:e.$t("Privacy policy URLs"),segment:""},{default:(0,i.k6)(()=>[(0,i.Lk)("div",C,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.privacyPolicyUrls,(t,l)=>((0,i.uX)(),(0,i.Wv)(g.default,{type:"url",label:l,"model-value":t,"onUpdate:modelValue":t=>e.setPrivacyPolicyUrl(l,t),key:l},null,8,["label","model-value","onUpdate:modelValue"]))),128))])]),_:1},8,["label"])])]),"gdpr-services":(0,i.k6)(()=>[(0,i.Lk)("div",S,[(0,i.bF)(p.A,null,{default:(0,i.k6)(()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.availableServices,t=>((0,i.uX)(),(0,i.Wv)((0,s.R1)(r.f),{label:t.name,key:t.name,"model-value":e.enabledState[t.name],"onUpdate:modelValue":l=>e.setEnabled(t.name,l)},null,8,["label","model-value","onUpdate:modelValue"]))),128))]),_:1})])]),"custom-services":(0,i.k6)(()=>[(0,i.Lk)("div",k,[e.editingService?((0,i.uX)(),(0,i.CE)("div",M,[(0,i.bF)(g.default,{type:"text",label:e.$t("Service slug"),modelValue:e.editingService.slug,"onUpdate:modelValue":t[3]||(t[3]=t=>e.editingService.slug=t),disabled:!!e.editingService.id},null,8,["label","modelValue","disabled"]),(0,i.bF)(m.default,{label:e.$t("Service type"),segment:""},{default:(0,i.k6)(()=>[(0,i.bF)(g.default,{type:"radio",label:"Required",name:"custom-service-type","checked-value":"required",modelValue:e.editingService.serviceType,"onUpdate:modelValue":t[4]||(t[4]=t=>e.editingService.serviceType=t)},null,8,["modelValue"]),(0,i.bF)(g.default,{type:"radio",label:"Feature",name:"custom-service-type","checked-value":"feature",modelValue:e.editingService.serviceType,"onUpdate:modelValue":t[5]||(t[5]=t=>e.editingService.serviceType=t)},null,8,["modelValue"]),(0,i.bF)(g.default,{type:"radio",label:"Analytics",name:"custom-service-type","checked-value":"analytics",modelValue:e.editingService.serviceType,"onUpdate:modelValue":t[6]||(t[6]=t=>e.editingService.serviceType=t)},null,8,["modelValue"])]),_:1},8,["label"]),(0,i.bF)(m.default,{label:e.$t("Data usage"),segment:""},{default:(0,i.k6)(()=>[(0,i.bF)(p.A,null,{default:(0,i.k6)(()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.builtInDataUsageKeys,t=>((0,i.uX)(),(0,i.Wv)((0,s.R1)(r.f),{key:t,label:t,"model-value":e.editingService.dataUsageKeys.includes(t),"onUpdate:modelValue":l=>e.toggleDataUsageKey(t,l)},null,8,["label","model-value","onUpdate:modelValue"]))),128))]),_:1})]),_:1},8,["label"]),(0,i.bF)(m.default,{label:e.$t("Display name"),segment:""},{default:(0,i.k6)(()=>[(0,i.Lk)("div",E,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.editingService.titles,(t,l)=>((0,i.uX)(),(0,i.Wv)(g.default,{type:"text",label:l,"model-value":t,"onUpdate:modelValue":t=>e.setEditingServiceTitle(l,t),key:l},null,8,["label","model-value","onUpdate:modelValue"]))),128))])]),_:1},8,["label"]),(0,i.Lk)("div",_,[(0,i.bF)(v.default,{label:e.$t("Save"),type:"button","button-style":["filled"],onClick:e.saveCustomService},null,8,["label","onClick"]),(0,i.bF)(v.default,{label:e.$t("Cancel"),type:"button","button-style":["outlined"],onClick:e.cancelEditService},null,8,["label","onClick"])])])):((0,i.uX)(),(0,i.CE)("div",D,[e.customServices.length?((0,i.uX)(),(0,i.CE)("table",V,[(0,i.Lk)("thead",null,[(0,i.Lk)("tr",null,[(0,i.Lk)("th",{textContent:(0,n.v_)(e.$t("Service slug"))},null,8,U),(0,i.Lk)("th",{textContent:(0,n.v_)(e.$t("Service type"))},null,8,F),t[15]||(t[15]=(0,i.Lk)("th",null,null,-1))])]),(0,i.Lk)("tbody",null,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.customServices,t=>((0,i.uX)(),(0,i.CE)("tr",{key:t.id},[(0,i.Lk)("td",{textContent:(0,n.v_)(t.slug)},null,8,$),(0,i.Lk)("td",{textContent:(0,n.v_)(t.serviceType)},null,8,w),(0,i.Lk)("td",L,[(0,i.bF)(v.default,{label:e.$t("Edit"),type:"button","button-style":["outlined"],onClick:l=>e.startEditService(t)},null,8,["label","onClick"]),(0,i.bF)(v.default,{label:e.$t("Delete"),type:"button","button-style":["outlined"],onClick:l=>e.deleteCustomService(t)},null,8,["label","onClick"])])]))),128))])])):((0,i.uX)(),(0,i.CE)("p",{key:1,textContent:(0,n.v_)(e.$t("No custom services defined"))},null,8,x)),(0,i.bF)(v.default,{label:e.$t("Add custom service"),type:"button","button-style":["filled"],onClick:e.startNewService},null,8,["label","onClick"])]))])]),"gdpr-consent-dialog-settings":(0,i.k6)(()=>[(0,i.Lk)("div",A,[(0,i.bF)(m.default,null,{default:(0,i.k6)(()=>[(0,i.bF)(g.default,{type:"image",name:"consent-dialog-logo",label:e.$t("Consent dialog logo"),modelValue:e.gdprConsentDialogLogo,"onUpdate:modelValue":t[7]||(t[7]=t=>e.gdprConsentDialogLogo=t),"allow-graphic":""},null,8,["label","modelValue"])]),_:1}),(0,i.bF)(m.default,{label:e.$t("Dialog diplay trigger"),segment:"",class:"radio-list-group"},{default:(0,i.k6)(()=>[(0,i.bF)(g.default,{modelValue:e.gdprConsentDialogDisplayMode,"onUpdate:modelValue":t[8]||(t[8]=t=>e.gdprConsentDialogDisplayMode=t),type:"radio",name:"dialog-display-mode","checked-value":"automatic-until-answer",label:e.$t("Always when answer has not been given yet (default)")},null,8,["modelValue","label"]),(0,i.bF)(g.default,{modelValue:e.gdprConsentDialogDisplayMode,"onUpdate:modelValue":t[9]||(t[9]=t=>e.gdprConsentDialogDisplayMode=t),type:"radio",name:"dialog-display-mode","checked-value":"automatic-when-required",label:e.$t("When requested by content on current page")},null,8,["modelValue","label"]),(0,i.bF)(g.default,{modelValue:e.gdprConsentDialogDisplayMode,"onUpdate:modelValue":t[10]||(t[10]=t=>e.gdprConsentDialogDisplayMode=t),type:"radio",name:"dialog-display-mode","checked-value":"only-on-explicit-request",label:e.$t("Only on explicit user request")},null,8,["modelValue","label"])]),_:1},8,["label"])])]),"gdpr-superadmin-settings":(0,i.k6)(()=>[(0,i.Lk)("div",X,[(0,i.bF)(m.default,{label:e.$t("Hide elements"),segment:""},{default:(0,i.k6)(()=>[(0,i.bF)(p.A,{class:"custom-consent-text-field"},{default:(0,i.k6)(()=>[(0,i.bF)((0,s.R1)(r.f),{label:e.$t("Skip overview page (show consent settings directly)"),modelValue:e.skipOverviewMode,"onUpdate:modelValue":t[11]||(t[11]=t=>e.skipOverviewMode=t)},null,8,["label","modelValue"]),(0,i.bF)((0,s.R1)(r.f),{label:e.$t("Hide services list?"),name:"hide-services-list",modelValue:e.hideServicesList,"onUpdate:modelValue":t[12]||(t[12]=t=>e.hideServicesList=t)},null,8,["label","modelValue"]),(0,i.bF)((0,s.R1)(r.f),{label:e.$t("Hide headers?"),name:"hide-headers",modelValue:e.hideHeaders,"onUpdate:modelValue":t[13]||(t[13]=t=>e.hideHeaders=t)},null,8,["label","modelValue"])]),_:1})]),_:1},8,["label"]),(0,i.bF)(m.default,{label:e.$t("Custom header"),segment:""},{default:(0,i.k6)(()=>[(0,i.Lk)("div",P,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.customHeader,(t,l)=>((0,i.uX)(),(0,i.Wv)(g.default,{type:"text",label:l,"model-value":t,"onUpdate:modelValue":t=>e.setCustomConsentText("customHeader",l,t),key:l},null,8,["label","model-value","onUpdate:modelValue"]))),128))])]),_:1},8,["label"]),(0,i.bF)(m.default,{label:e.$t("Custom configure description"),segment:""},{default:(0,i.k6)(()=>[(0,i.Lk)("div",T,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.customConfigureDescription,(t,l)=>((0,i.uX)(),(0,i.Wv)(g.default,{type:"text",label:l,"model-value":t,"onUpdate:modelValue":t=>e.setCustomConsentText("customConfigureDescription",l,t),key:l},null,8,["label","model-value","onUpdate:modelValue"]))),128))])]),_:1},8,["label"]),(0,i.bF)(m.default,{label:e.$t("Required services description"),segment:""},{default:(0,i.k6)(()=>[(0,i.Lk)("div",R,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.requiredServicesDescription,(t,l)=>((0,i.uX)(),(0,i.Wv)(g.default,{type:"text",label:l,"model-value":t,"onUpdate:modelValue":t=>e.setCustomConsentText("requiredServicesDescription",l,t),key:l},null,8,["label","model-value","onUpdate:modelValue"]))),128))])]),_:1},8,["label"]),(0,i.bF)(m.default,{label:e.$t("Feature services description"),segment:""},{default:(0,i.k6)(()=>[(0,i.Lk)("div",K,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.featureServicesDescription,(t,l)=>((0,i.uX)(),(0,i.Wv)(g.default,{type:"text",label:l,"model-value":t,"onUpdate:modelValue":t=>e.setCustomConsentText("featureServicesDescription",l,t),key:l},null,8,["label","model-value","onUpdate:modelValue"]))),128))])]),_:1},8,["label"]),(0,i.bF)(m.default,{label:e.$t("Analytics services description"),segment:""},{default:(0,i.k6)(()=>[(0,i.Lk)("div",H,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.analyticsServicesDescription,(t,l)=>((0,i.uX)(),(0,i.Wv)(g.default,{type:"text",label:l,"model-value":t,"onUpdate:modelValue":t=>e.setCustomConsentText("analyticsServicesDescription",l,t),key:l},null,8,["label","model-value","onUpdate:modelValue"]))),128))])]),_:1},8,["label"])])]),_:1},8,["tabs"])):(0,i.Q3)("",!0)]),_:1},8,["title"]),[[a.aG,e.isReady]])],544),[[a.aG,e.hasReadConfig]])]),_:1},8,["title"]))}),j=(0,l("461bee8a7784aa7f").A)(q,[["__scopeId","data-v-459ff8d9"]])}}]);

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.