PageSourceSearch

https://nordsaltenkraft.no/dist/all/chunks/2160-f82051bafdde16322203.js

js nordsaltenkraft.no collected 2026-09-24 10:18:31 UTC 4,699 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[2160,2775,14680,20641,25156,33582,37061,43022,47537,58013,59442,69918,80394,92299],{"1273649ce0b7b3ac"(e,t,a){a.r(t),a.d(t,{default:()=>V});var l=a("b641633d6c906d19"),d=a("99c472be6da17922"),o=a("82d8eefb58430341"),n=a("a9bcaf22dee96965"),s=a("1c8d042d141caf99"),i=a("d726c0e27ef7cff9");const r={class:"container"},u=["value"],p=["textContent"],c=["textContent"],m={class:"add-condition"},h=["textContent"],y=["textContent"],b=["name","value"],v={inheritAttrs:!1,props:{name:String,contextId:String,conditions:Array},mounted(){this.resetAddForm()},methods:{async removeCondition(e){const t=[...this.localConditionsList];t.splice(e,1),this.localConditionsList=t},operatorValueForType(e){if("urlHashParameter"==e.type)switch(e.operator){case"exists":return this.$t("URL #{name} exists",e);case"equals":return this.$t("URL #{name}={value}",e)}return this.$t("{type} {name} {operator} {value}",e)},async addCondition(){const e={type:this.addType,name:this.addName,operator:this.addOperator,value:this.addValue,inverted:this.addInverted};this.localConditionsList=[...this.localConditionsList,e],this.resetAddForm()},resetAddForm(){this.addType=Object.keys(this.conditionTypes)[0],this.addName="",this.addOperator=Object.keys(this.operators)[0],this.addValue="",this.addInverted=!1}},computed:{showWarning(){return"userState"==this.addType},warningText(){if(this.addType??"userState")return this.$t("WARNING! This will not provide any security for the block, and should not be used to hide blocks a non-user shouldnt normally be able to see!")},typeRequireParameters(){return"userState"!=this.addType},operatorHasValue(){return"exists"!=this.addOperator&&"userState"!=this.addType},conditionTypes(){return{urlHashParameter:this.$t("Url #hash parameter"),userState:this.$t("User state")}},operators(){return"userState"==this.addType?{loggedin:this.$t("Logged in")}:{exists:this.$t("Exists"),equals:this.$t("Equals")}}},data(){return{addType:null,addName:"",addOperator:"exists",addValue:"",addInverted:!1,localConditionsList:this.conditions??[],localName:this.name??""}}},C=(0,l.pM)({...v,__name:"Admin",setup:e=>(t,a)=>((0,l.uX)(),(0,l.CE)("div",r,[(0,l.Lk)("div",null,[(0,l.bF)(n.default,{type:"text",modelValue:t.localName,"onUpdate:modelValue":a[0]||(a[0]=e=>t.localName=e),name:"name",label:t.$t("Name")},null,8,["modelValue","label"]),(0,l.Lk)("input",{type:"hidden",name:"contextId",value:e.contextId},null,8,u)]),(0,l.bF)(s.A,null,{default:(0,l.k6)(()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(t.localConditionsList,(e,a)=>((0,l.uX)(),(0,l.Wv)(i.A,{onClose:e=>t.removeCondition(a),key:a},{default:(0,l.k6)(()=>[e.inverted?((0,l.uX)(),(0,l.CE)("span",{key:0,class:"condition-title condition-title-not",textContent:(0,d.v_)(t.$t("not:"))},null,8,p)):(0,l.Q3)("",!0),(0,l.Lk)("span",{class:"condition-title",textContent:(0,d.v_)(t.operatorValueForType(e))},null,8,c)]),_:2},1032,["onClose"]))),128))]),_:1}),(0,l.Lk)("div",m,[(0,l.Lk)("h4",{textContent:(0,d.v_)(t.$t("Add condition"))},null,8,h),(0,l.bF)(n.default,{type:"select",options:t.conditionTypes,label:t.$t("Condition type"),modelValue:t.addType,"onUpdate:modelValue":a[1]||(a[1]=e=>t.addType=e)},null,8,["options","label","modelValue"]),t.typeRequireParameters?((0,l.uX)(),(0,l.Wv)(n.default,{key:0,type:"text",label:t.$t("Parameter name"),modelValue:t.addName,"onUpdate:modelValue":a[2]||(a[2]=e=>t.addName=e)},null,8,["label","modelValue"])):(0,l.Q3)("",!0),(0,l.bF)(n.default,{type:"select",options:t.operators,label:t.$t("Operator"),modelValue:t.addOperator,"onUpdate:modelValue":a[3]||(a[3]=e=>t.addOperator=e)},null,8,["options","label","modelValue"]),t.operatorHasValue?((0,l.uX)(),(0,l.Wv)(n.default,{key:1,type:"text",label:t.$t("Parameter value"),modelValue:t.addValue,"onUpdate:modelValue":a[4]||(a[4]=e=>t.addValue=e)},null,8,["label","modelValue"])):(0,l.Q3)("",!0),(0,l.bF)(n.default,{type:"checkbox",label:t.$t("Inverted"),modelValue:t.addInverted,"onUpdate:modelValue":a[5]||(a[5]=e=>t.addInverted=e)},null,8,["label","modelValue"]),t.showWarning?((0,l.uX)(),(0,l.CE)("p",{key:2,textContent:(0,d.v_)(t.warningText)},null,8,y)):(0,l.Q3)("",!0),(0,l.bF)(n.default,{type:"button","model-value":t.$t("Add condition"),onClick:(0,o.D$)(t.addCondition,["stop","prevent"])},null,8,["model-value","onClick"])]),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(t.localConditionsList,(e,t)=>((0,l.uX)(),(0,l.CE)(l.FK,null,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e,(e,a)=>((0,l.uX)(),(0,l.CE)("input",{type:"hidden",name:"conditions["+t+"]["+a+"]",value:e},null,8,b))),256))],64))),256))]))}),V=(0,a("461bee8a7784aa7f").A)(C,[["__scopeId","data-v-0b19e045"]])}}]);

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.