{"version":3,"sources":["webpack:///./src/feature/hero-slider/hero-slider.js","webpack:///./node_modules/core-js/internals/inherit-if-required.js","webpack:///./node_modules/core-js/modules/es.number.constructor.js"],"names":["HeroSlider","element","el","viewport","querySelector","next","prev","pagination","heroItems","querySelectorAll","autoplaySlideString","getAttribute","autoplaySlideMs","Number","config","keyboard","enabled","onlyInViewport","navigation","nextEl","prevEl","a11y","prevSlideMessage","nextSlideMessage","autoplay","delay","speed","length","clickable","grabCursor","slidesPerView","loop","init","this","swiper","Swiper","classList","add","BaseFeature","isCallable","isObject","setPrototypeOf","module","exports","$this","dummy","Wrapper","NewTarget","NewTargetPrototype","constructor","prototype","DESCRIPTORS","global","isForced","redefine","has","classof","inheritIfRequired","isSymbol","toPrimitive","fails","create","getOwnPropertyNames","f","getOwnPropertyDescriptor","defineProperty","trim","NativeNumber","NumberPrototype","BROKEN_CLASSOF","toNumber","argument","TypeError","first","third","radix","maxCode","digits","index","code","it","charCodeAt","NaN","slice","parseInt","key","NumberWrapper","value","arguments","valueOf","call","keys","split","j"],"mappings":"0+CAGMA,E,sQACL,WAAYC,GAAS,a,4FAAA,UACpB,cAAMA,IAEDC,GAAKD,EACV,EAAKE,SAAW,EAAKD,GAAGE,cAAc,sCACtC,EAAKC,KAAO,EAAKH,GAAGE,cAAc,kCAClC,EAAKE,KAAO,EAAKJ,GAAGE,cAAc,kCAClC,EAAKG,WAAa,EAAKL,GAAGE,cAAc,wCACxC,EAAKI,UAAY,EAAKN,GAAGO,iBAAiB,kCAC1C,EAAKC,oBAAsB,EAAKR,GAAGS,aAAa,uBAChD,EAAKC,gBAAqD,IAAnCC,OAAO,EAAKH,qBAEnC,EAAKI,OAAS,CACbC,SAAU,CACTC,SAAS,EACTC,gBAAgB,GAEjBC,WAAY,CACXC,OAAQ,EAAKd,KACbe,OAAQ,EAAKd,MAEde,KAAM,CACLC,iBAAkB,QAClBC,iBAAkB,WAEnBC,SAAU,CACTR,SAAS,EACTS,MAAO,EAAKf,oBAAsB,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,EAAgBnB,YAAcqC,EAC9BhC,EAASF,EA/DE,SA+DckC","file":"39-0c621c17.pkg.js","sourcesContent":["import Swiper from 'swiper';\r\nimport BaseFeature from '../../foundation/base/base';\r\n\r\nclass HeroSlider extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\r\n\t\tthis.el = element;\r\n\t\tthis.viewport = this.el.querySelector('[data-ref=\"hero-slider__viewport\"]');\r\n\t\tthis.next = this.el.querySelector('[data-ref=\"hero-slider__next\"]');\r\n\t\tthis.prev = this.el.querySelector('[data-ref=\"hero-slider__prev\"]');\r\n\t\tthis.pagination = this.el.querySelector('[data-ref=\"hero-slider__pagination\"]');\r\n\t\tthis.heroItems = this.el.querySelectorAll('[data-ref=\"hero-slider__item\"]');\r\n\t\tthis.autoplaySlideString = this.el.getAttribute('data-autoplay-slide');\r\n\t\tthis.autoplaySlideMs = Number(this.autoplaySlideString) * 1000;\r\n\r\n\t\tthis.config = {\r\n\t\t\tkeyboard: {\r\n\t\t\t\tenabled: true,\r\n\t\t\t\tonlyInViewport: false,\r\n\t\t\t},\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: this.next,\r\n\t\t\t\tprevEl: this.prev,\r\n\t\t\t},\r\n\t\t\ta11y: {\r\n\t\t\t\tprevSlideMessage: 'Næste',\r\n\t\t\t\tnextSlideMessage: 'Forrige',\r\n\t\t\t},\r\n\t\t\tautoplay: {\r\n\t\t\t\tenabled: true,\r\n\t\t\t\tdelay: this.autoplaySlideString ? this.autoplaySlideMs : 10000,\r\n\t\t\t},\r\n\t\t\tspeed: 2500,\r\n\t\t\tpagination: {\r\n\t\t\t\tel: this.heroItems.length > 1 ? this.pagination : false,\r\n\t\t\t\tclickable: true,\r\n\t\t\t},\r\n\t\t\tgrabCursor: true,\r\n\t\t\tslidesPerView: 1,\r\n\t\t\tloop: this.heroItems.length > 1,\r\n\t\t};\r\n\t\tthis.init();\r\n\t}\r\n\r\n\tinit() {\r\n\t\tthis.swiper = new Swiper(this.viewport, this.config);\r\n\t\tif (this.heroItems.length <= 1) {\r\n\t\t\tthis.next.classList.add('o-hero-slider__button--none');\r\n\t\t\tthis.prev.classList.add('o-hero-slider__button--none');\r\n\t\t\tthis.pagination.classList.add('o-hero-slider__pagination--none');\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport default HeroSlider;\r\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar redefine = require('../internals/redefine');\nvar has = require('../internals/has');\nvar classof = require('../internals/classof-raw');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar create = require('../internals/object-create');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\n\n// Opera ~12 has broken Object#toString\nvar BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n if (isSymbol(argument)) throw TypeError('Cannot convert a Symbol value to a number');\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = it.charCodeAt(0);\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = it.slice(2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = digits.charCodeAt(index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nif (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {\n var NumberWrapper = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var dummy = this;\n return dummy instanceof NumberWrapper\n // check on 1..constructor(foo) case\n && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)\n ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);\n };\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {\n defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));\n }\n }\n NumberWrapper.prototype = NumberPrototype;\n NumberPrototype.constructor = NumberWrapper;\n redefine(global, NUMBER, NumberWrapper);\n}\n"],"sourceRoot":""}