PageSourceSearch

https://www.urtegaarden.dk/js/dist/4942.js?id=3b863c4b04dc99e9

js urtegaarden.dk collected 2026-10-02 13:22:50 UTC 15,783 bytes, 2 lines download raw bytes

1(globalThis["webpackChunkwebsite_js"]=globalThis["webpackChunkwebsite_js"]||[]).push([[4942],{3648(t,e,i){"use strict";i.d(e,{A:()=>r});var l=i(15215),s=i(18039),o=i(32800);let n=class extends s.hw{constructor(){super(...arguments),this.pagingWasClicked=!1}get PAGING_WAS_CLICKED(){return this.pagingWasClicked}SET_PAGING_WAS_CLICKED(t){this.pagingWasClicked=t}};(0,l.Cg)([s.sM],n.prototype,"SET_PAGING_WAS_CLICKED",null),n=(0,l.Cg)([(0,s.nV)({store:o.A,dynamic:!0,name:"event",namespaced:!0})],n);const r=(0,s.f_)(n)},11679(t,e,i){var l=i(48217);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[t.id,l,""]]),l.locals&&(t.exports=l.locals);var s=i(99548).A;s("1c892b5d",l,!0,{sourceMap:!1,shadowMode:!1})},16274(t,e,i){"use strict";i.d(e,{A:()=>d});var l=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"product-list-filter-button",class:{active:t.active}},[e("div",{staticClass:"product-list-filter-button-label"},[t._v(" "+t._s(t.label)+" "),t.activeCount>0?e("span",{staticClass:"value-count"},[t._v(t._s(t.activeCount))]):null!=t.activeMin||null!=t.activeMax?e("span",{staticClass:"value-count"},[t._v(" "+t._s(t.activeMin)+"-"+t._s(t.activeMax)+" ")]):t._e()]),e("span",{staticClass:"product-list-filter-button-icon",attrs:{"uk-icon":`icon: ${t.active?t.icon_active:t.icon}; ratio: .6`}})])},s=[],o=i(15215),n=i(71886);let r=class extends n.lD{};(0,o.Cg)([(0,n.kv)({type:String,required:!0})],r.prototype,"label",void 0),(0,o.Cg)([(0,n.kv)({type:String,required:!0})],r.prototype,"icon",void 0),(0,o.Cg)([(0,n.kv)({type:String,required:!0})],r.prototype,"icon_active",void 0),(0,o.Cg)([(0,n.kv)({type:Boolean,required:!0})],r.prototype,"active",void 0),(0,o.Cg)([(0,n.kv)({type:Number,required:!1})],r.prototype,"activeCount",void 0),(0,o.Cg)([(0,n.kv)({type:Number,required:!1})],r.prototype,"activeMin",void 0),(0,o.Cg)([(0,n.kv)({type:Number,required:!1})],r.prototype,"activeMax",void 0),r=(0,o.Cg)([(0,n.uA)({name:"ProductListFilterButton"})],r);const a=r,c=a;var p=i(81656),u=(0,p.A)(c,l,s,!1,null,null,null);const d=u.exports},26841(t,e,i){"use strict";i.d(e,{A:()=>_});var l=function(){var t=this,e=t._self._c;t._self._setupProxy;return t.total>0?e("div",{staticClass:"cbx-pagination"},[t.numberOfPages>1?e("div",{staticClass:"cbx-pagination-buttons"},[e("button",{attrs:{disabled:1===t.current,"aria-label":t.$t("general.previous-page",["Previous page"])},on:{click:function(e){return t.changePage(t.current-1)}}},[e("span",{attrs:{"uk-icon":"chevron-left"}}),e("span",{staticClass:"uk-visible@m"},[t._v(" "+t._s(t.$t("general.previous-page",["Previous page"]))+" ")])]),e("div",{staticClass:"cbx-pagination-buttons-number-buttons"},t._l(t.pagesInRange,function(i,l){return e("button",{key:l,class:{active:i.value===t.current,disabled:!i.clickable},attrs:{disabled:!i.clickable},on:{click:function(e){return t.changePage(i.value)}}},[t._v(" "+t._s(i.value)+" ")])}),0),e("button",{attrs:{disabled:t.current===t.numberOfPages,"aria-label":t.$t("general.next-page",["Next page"])},on:{click:function(e){return t.changePage(t.current+1)}}},[e("span",{staticClass:"uk-visible@m"},[t._v(" "+t._s(t.$t("general.next-page",["Next page"]))+" ")]),e("span",{attrs:{"uk-icon":"chevron-right"}})])]):t._e(),e("div",{staticClass:"cbx-pagination-meta"},[t._v(" "+t._s(t.$t("general.displaying",["Displaying"]))+" "+t._s(t.currentStart)+" "+t._s(t.$t("general.to",["to"]))+" "+t._s(t.currentEnd)+" "+t._s(t.$t("general.of",["of"]))+" "+t._s(t.total)+" "),t._t("default")],2)]):t._e()},s=[],o=i(15215),n=i(71886),r=i(3648);let a=class extends n.lD{get current(){return this.offset/this.limit+1}get currentStart(){return this.current*this.limit-this.limit+1}get currentEnd(){return this.current*this.limit>=this.total?this.total:this.current*this.limit}get numberOfPages(){return Math.ceil(this.total/this.limit)}get pagesInRange(){const t=[],e=this.current,i=this.numberOfPages,l=3,s=e-l,o=e+l+1,n=[];let r;for(let a=1;a<=i;a++)(1==a||a==i||a>=s&&a<o)&&n.push(a);for(const a of n)r&&(a-r===2?t.push({value:r+1,clickable:!0}):a-r!==1&&t.push({clickable:!1,value:"..."})),t.push({value:a,clickable:!0}),r=a;return t}changePage(t){this.$emit("change-page",{offset:(t-1)*this.limit,limit:this.limit,pageNumber:t}),r.A.SET_PAGING_WAS_CLICKED(!0)}};(0,o.Cg)([(0,n.kv)({type:Number,required:!0})],a.prototype,"total",void 0),(0,o.Cg)([(0,n.kv)({type:Number,required:!0})],a.prototype,"limit",void 0),(0,o.Cg)([(0,n.kv)({type:Number,required:!0})],a.prototype,"offset",void 0),a=(0,o.Cg)([(0,n.uA)({name:"CbxPagination"})],a);const c=a,p=c;var u=i(81656),d=(0,u.A)(p,l,s,!1,null,null,null);const _=d.exports},32606(t,e,i){"use strict";i.d(e,{A:()=>d});var l=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"apply-cancel-footer"},[t.cancelText?e("button",{staticClass:"uk-button uk-button-danger",on:{click:function(e){return t.$emit("cancel")}}},[t._v(" "+t._s(t.cancelLabel)+" ")]):t._e(),e("button",{staticClass:"uk-button uk-button-primary",on:{click:function(e){return t.$emit("apply")}}},[t._v(" "+t._s(t.applyLabel)+" ")])])},s=[],o=i(15215),n=i(71886);
1let r=class extends n.lD{get applyLabel(){return this.$t(`filter.action-${this.applyText.toLowerCase().replace(/\s/gi,"-")}`,[this.applyText])}get cancelLabel(){return this.$t(`filter.action-${this.cancelText.toLowerCase().replace(/\s/gi,"-")}`,[this.cancelText])}};(0,o.Cg)([(0,n.kv)({type:String,required:!1,default:"Apply"})],r.prototype,"applyText",void 0),(0,o.Cg)([(0,n.kv)({type:String,required:!1})],r.prototype,"cancelText",void 0),r=(0,o.Cg)([(0,n.uA)({name:"ApplyCancelFooter"})],r);const a=r,c=a;i(11679);var p=i(81656),u=(0,p.A)(c,l,s,!1,null,null,null);const d=u.exports},47555(t,e,i){"use strict";i.d(e,{A:()=>S});var l=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.handleClickAway,expression:"handleClickAway"}],staticClass:"product-list-filter-dropdown",class:{inline:t.inline},on:{click:t.toggleExpand}},[e("ProductListFilterButton",{attrs:{label:t.selectedLabel,icon:"chevron-down",icon_active:"chevron-up",active:t.expanded}}),e("div",{staticClass:"product-list-filter-dropdown-options",class:{expanded:t.expanded}},[t.label?e("div",{staticClass:"product-list-filter-dropdown-options-label"},[t._v(" "+t._s(t.label)+" ")]):t._e(),t._l(t.options,function(i){return e("div",{key:i.value,on:{click:function(e){return e.stopPropagation(),t.toggleOption(i)}}},[e("ProductListFilterDropdownItem",{attrs:{option:i,selectedValues:t.model,multiple:t.multiple}})],1)}),t.multiple?e("ApplyCancelFooter",{on:{apply:t.apply}}):t._e()],2)],1)},s=[],o=(i(83725),i(35019),i(51339),i(52598),i(70282),i(30959),i(15215)),n=i(71886),r=i(16274),a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"product-list-filter-dropdown-item",class:{selected:t.selected}},[e("span",{staticClass:"checkbox",attrs:{"uk-icon":`icon: ${t.icon}; ratio: ${t.selected?".9":".7"}`}}),t._v(" "+t._s(t.option.label)+" ")])},c=[];let p=class extends n.lD{get icon(){return this.multiple?this.selected?"fas-check-square":"fal-square":this.selected?"fas-circle-dot":"far-circle"}get selected(){return this.selectedValues.indexOf(this.option.value)>-1}};(0,o.Cg)([(0,n.kv)({type:Object,required:!0})],p.prototype,"option",void 0),(0,o.Cg)([(0,n.kv)({type:Array})],p.prototype,"selectedValues",void 0),(0,o.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!0})],p.prototype,"multiple",void 0),p=(0,o.Cg)([(0,n.uA)({name:"ProductListFilterDropdownItem"})],p);const u=p,d=u;var _=i(81656),E=(0,_.A)(d,a,c,!1,null,null,null);const g=E.exports;var h=i(32606),f=i(99499);let T=class extends n.lD{constructor(){super(...arguments),this.expanded=!1,this.model=null}get selectedOptions(){return this.options.filter(t=>this.model.indexOf(t.value)>-1)}get selectedLabel(){let t="";return t=this.model.length?this.multiple?this.selectedOptions.map(t=>{const e=this.options.find(e=>e.value===t.value);return e.label}).join(", "):this.selectedOptions[0].label:this.label??"No value",t.length>20&&(t=`${t.substr(0,20)}...`),this.selectedOptions.length>1&&(t=`(${this.selectedOptions.length}) ${t}`),t}created(){this.model=JSON.parse(JSON.stringify(this.value))}toggleOption(t){const e=this.model.indexOf(t.value);this.multiple?e>-1?this.model.splice(e,1):this.model.push(t.value):(this.toggleExpand(),this.model=[t.value]),this.$emit("input",this.model)}apply(){this.$emit("input",this.model)}toggleExpand(){this.expanded=!this.expanded}handleClickAway(t){this.$el.contains(t.relatedTarget)||(this.expanded=!1)}};(0,o.Cg)([(0,n.kv)()],T.prototype,"value",void 0),(0,o.Cg)([(0,n.kv)({type:String,required:!1})],T.prototype,"label",void 0),(0,o.Cg)([(0,n.kv)({type:Array,required:!0})],T.prototype,"options",void 0),(0,o.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],T.prototype,"multiple",void 0),(0,o.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],T.prototype,"inline",void 0),T=(0,o.Cg)([(0,n.uA)({name:"ProductListFilterDropdown",components:{ApplyCancelFooter:h.A,ProductListFilterButton:r.A,ProductListFilterDropdownItem:g},mixins:[f.co]})],T);const v=T,L=v;var C=(0,_.A)(L,l,s,!1,null,null,null);const S=C.exports},48217(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>a});var l=i(31601),s=i.n(l),o=i(76314),n=i.n(o),r=n()(s());r.push([t.id,".apply-cancel-footer{background:#fff;display:flex;justify-content:flex-end;border-top:1px solid #0000001a;padding:10px}.apply-cancel-footer button{margin-left:10px}",""]);const a=r},64617(t,e,i){"use strict";i.d(e,{A:()=>u});i(83725),i(52598),i(35019),i(51339);var l=i(15215),s=i(18039),o=i(32800),n=i(73337),r=i(98098),a=i(30362),c=i(22163);let p=class extends s.hw{constructor(){super(...arguments),this.svc=new n.A,this.mns=new r.A,this.productService=new c.A,this.filterModel={rootcategory:null,categories:a.Z.VARIABLES.currentCategoryId.length?[a.Z.VARIABLES.currentCategoryId]:[],fields:[],hits:[],selections:[],searchphrase:"",count:20,offset:0,hitcount:0,sortoptions:[],restrictdoctypes:["PRODUCT"],includedescendantcategories:!1,usecontentrelationsasselection:!1,contentrelationnodeid:""},this.displayMobile=!1,this.expandedField=null,this.productListOptions={sortoptions:[],selectedsortoption:"",pagelimitoptions:[],selectedpagelimitoption:0},this.isLoading=!1}get IS_LOADING(){return this.isLoading}get FILTER_MODEL(){return this.filterModel}get DISPLAY_MOBILE(){return this.displayMobile}get EXPANDED_FIELD(){return this.expandedField}get PRODUCT_LIST_OPTIONS(){return a.Z.VARIABLES.productListOptions}async GET_FILTER_RESULT(){return this.setLoading(!0),await this.svc.getFilterResult({...this.filterModel})}SET_FILTER_RESULT(t){this.filterModel.fields=t.fields,this.filterModel.preselections=t.preselections,this.filterModel.totalcount=t.totalcount,this.filterModel.hitcount=t.hitcount,this.filterModel.hits=t.hits,this.filterModel.translations=t.translations,this.isLoading=!1}SET_FILTER_PRESELECTION(t){this.filterModel.preselections=t}SET_FILTER_SELECTION(t){this.filterModel.selections=t}SET_FILTER_FIELDS(t){this.filterModel.fields=t}SET_FILTER_CATEGORIES(t){this.filterModel.categories=t}SET_FILTER_ROOT_CATEGORY(t){this.filterModel.rootcategory=t}SET_FILTER_INCLUDE_DESCENDANT_CATEGORIES(t){this.filterModel.includedescendantcategories=t}SET_FILTER_USE_CONTENT_RELATIONS(t){this.filterModel.usecontentrelationsasselection=!0,this.filterModel.contentrelationnodeid=t}SET_FILTER_SEARCH_PHRASE(t){this.filterModel.searchphrase=t}SET_FILTER_OFFSET(t){this.filterModel.offset=t}SET_FILTER_COUNT(t){this.filterModel.count=t}SET_FILTER_SORT_OPTIONS(t){this.filterModel.sortoptions=t}REMOVE_SELECTION_VALUE(t){const{fieldPath:e,fieldValue:i}=t,l=this.filterModel.selections.find(t=>t.path===e),s=l.values.filter(t=>t!==i);0===s.length?this.filterModel={...this.filterModel,selections:this.filterModel.selections.filter(t=>t.path!==e)}:this.filterModel={...this.filterModel,selections:this.filterModel.selections.map(t=>(t.path===e&&(t.values=s),t))}}REMOVE_SELECTION_GROUP(t){this.filterModel.selections=this.filterModel.selections.filter(e=>e.path!==t)}TOGGLE_MOBILE_FILTER_DISPLAY(){return this.mns.handleBodyOverflow(this.displayMobile),this.displayMobile}SET_MOBILE_FILTER_DISPLAY(t){this.displayMobile=!t}async CLEAR_FILTERS(t=!0){return t}SET_CLEAR_FILTERS(t=!0){this.filterModel.selections=[],t&&(this.filterModel.searchphrase="")}async EXPAND_FIELD(t){return t}SET_EXPANDED_FIELD(t){this.expandedField=t}async setLoading(t){return t}SET_LOADING(t){this.isLoading=t}};(0,l.Cg)([(0,s.rc)({commit:"SET_FILTER_RESULT"})],p.prototype,"GET_FILTER_RESULT",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_RESULT",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_PRESELECTION",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_SELECTION",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_FIELDS",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_CATEGORIES",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_ROOT_CATEGORY",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_INCLUDE_DESCENDANT_CATEGORIES",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_USE_CONTENT_RELATIONS",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_SEARCH_PHRASE",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_OFFSET",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_COUNT",null),(0,l.Cg)([s.sM],p.prototype,"SET_FILTER_SORT_OPTIONS",null),(0,l.Cg)([s.sM],p.prototype,"REMOVE_SELECTION_VALUE",null),(0,l.Cg)([s.sM],p.prototype,"REMOVE_SELECTION_GROUP",null),(0,l.Cg)([(0,s.rc)({commit:"SET_MOBILE_FILTER_DISPLAY"})],p.prototype,"TOGGLE_MOBILE_FILTER_DISPLAY",null),(0,l.Cg)([s.sM],p.prototype,"SET_MOBILE_FILTER_DISPLAY",null),(0,l.Cg)([(0,s.rc)({commit:"SET_CLEAR_FILTERS"})],p.prototype,"CLEAR_FILTERS",null),(0,l.Cg)([s.sM],p.prototype,"SET_CLEAR_FILTERS",null),(0,l.Cg)([(0,s.rc)({commit:"SET_EXPANDED_FIELD"})],p.prototype,"EXPAND_FIELD",null),(0,l.Cg)([s.sM],p.prototype,"SET_EXPANDED_FIELD",null),(0,l.Cg)([(0,s.rc)({commit:"SET_LOADING"})],p.prototype,"setLoading",null),(0,l.Cg)([s.sM],p.prototype,"SET_LOADING",null),p=(0,l.Cg)([(0,s.nV)({store:o.A,dynamic:!0,name:"productListFilter",namespaced:!0})],p);const u=(0,s.f_)(p)},64942(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>g});var l=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"product-list-filter-pagination"},[e("CbxPagination",{attrs:{limit:t.filterLimit,offset:t.filterOffset,total:t.total},on:{"change-page":t.changePage}},[!t.hidePerPageOptions&&t.filterLimitOptions.length>0?e("ProductListFilterDropdown",{attrs:{options:t.filterLimitOptions,multiple:!1,inline:!0,label:t.$t("general.per-page",["Per page"])},model:{value:t.limitOption,callback:function(e){t.limitOption=e},expression:"limitOption"}}):t._e()],1)],1)}
1,s=[],o=(i(51339),i(15215)),n=i(64617),r=i(71886),a=i(26841),c=i(47555);let p=class extends r.lD{get total(){return n.A.FILTER_MODEL.hitcount??0}get filterLimitOptions(){return n.A.PRODUCT_LIST_OPTIONS.pagelimitoptions.map(t=>({value:String(t),label:String(t)}))}get filterLimit(){return n.A.FILTER_MODEL.count}set filterLimit(t){n.A.SET_FILTER_OFFSET(0),n.A.SET_FILTER_COUNT(t)}get limitOption(){return[String(this.filterLimit)]}set limitOption(t){const e=parseInt(t[0]);isNaN(e)||(n.A.SET_FILTER_OFFSET(0),n.A.SET_FILTER_COUNT(e))}get filterOffset(){return n.A.FILTER_MODEL.offset}set filterOffset(t){n.A.SET_FILTER_OFFSET(t)}changePage(t){this.filterLimit=t.limit,this.filterOffset=t.offset}};(0,o.Cg)([(0,r.kv)({default:!1})],p.prototype,"hidePerPageOptions",void 0),p=(0,o.Cg)([(0,r.uA)({name:"ProductListFilterPagination",components:{CbxPagination:a.A,ProductListFilterDropdown:c.A}})],p);const u=p,d=u;var _=i(81656),E=(0,_.A)(d,l,s,!1,null,null,null);const g=E.exports}}]);
2//# sourceMappingURL=4942.js.map?id=3b863c4b04dc99e9

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.