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tC,IAJA,IAGI3G,EAAcgE,EAHdF,EAAWhH,KAAKgH,SAChBgE,EAAYhL,KAAKgL,UACjBhC,EAAOhJ,KAAKgJ,OAEH,CAGX,GAFA9F,EAAS4D,EAASgB,EAAKkB,EAAMhC,IACtBhH,KAAKoH,OAASlE,EAAOkE,KAClB,OAEV,GADAF,EAAQhE,EAAOgE,MACX4C,EAA6B9C,EAAUgE,EAAW,CAAC9D,EAAOlH,KAAKyJ,YAAY,GAAO,OAAOvC,CAC/F,CACF,IAIA8C,EAAE,CAAE1C,OAAQ,WAAY+C,OAAO,EAAMY,MAAM,GAAQ,CACjDC,OAAQ,SAAgBF,GAGtB,OAFAlE,EAAS9G,MACT2J,EAAUqB,GACH,IAAIzB,EAAcK,EAAkB5J,MAAO,CAChDgL,UAAWA,GAEf,G,wBC/BF,IAAIhB,EAAI,EAAQ,OACZmB,EAAU,EAAQ,OAClBxB,EAAY,EAAQ,OACpB7C,EAAW,EAAQ,OACnB8C,EAAoB,EAAQ,OAIhCI,EAAE,CAAE1C,OAAQ,WAAY+C,OAAO,EAAMY,MAAM,GAAQ,CACjDnL,KAAM,SAAckL,GAClBlE,EAAS9G,MACT2J,EAAUqB,GACV,IAAIxB,EAASI,EAAkB5J,MAC3ByJ,EAAU,EACd,OAAO0B,EAAQ3B,GAAQ,SAAUtC,EAAOkE,GACtC,GAAIJ,EAAU9D,EAAOuC,KAAY,OAAO2B,EAAKlE,EAC/C,GAAG,CAAEmE,WAAW,EAAMC,aAAa,IAAQpI,MAC7C,G,wBClBM,EAAQ,MAKhB8G,CAAE,CAAE1C,OAAQ,WAAY+C,OAAO,EAAMY,MAAM,GAAQ,CACjDM,IALQ,EAAQ,Q","sources":["webpack://@whistleout/webui/./Areas/MobilePhones/js/Phone.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/internals/array-set-length.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/internals/call-with-safe-iteration-closing.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/internals/create-iter-result-object.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/internals/define-built-ins.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/internals/is-array.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/internals/iterator-create-proxy.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/internals/iterator-map.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/modules/es.array.push.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/modules/esnext.iterator.filter.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/modules/esnext.iterator.find.js","webpack://@whistleout/webui/../node_modules/.pnpm/core-js@3.31.1/node_modules/core-js/modules/esnext.iterator.map.js"],"sourcesContent":["(function () {\n 'use strict';\n\n function main() {\n\n var page = wo$('#phone');\n if (!page.length) return;\n\n var phoneController = {\n\n init: function () {\n\n phoneController.registerNotifications();\n phoneController.initHistoryTracker();\n phoneController.loadSearchModal();\n phoneController.bindByod();\n phoneController.bindPlanSummary();\n WhistleOut.getAds('MobilePhones');\n\n page.find('[data-gallery]').each(function () {\n wo$(this).magnificPopup({\n delegate: 'a[data-gallery-item]',\n type: 'image',\n zoom: {\n enabled: true,\n duration: 400\n },\n gallery: {\n enabled: true\n }\n });\n });\n\n page.find('a[data-gallery-opener]').click(function () {\n wo$(this).parents('[data-gallery]').find('a[data-gallery-item]').last().click();\n });\n\n page.find('#whistleout-review-article img').one('load', function () {\n phoneController.fixArticleImage(wo$(this));\n }).each(function () {\n if (this.complete) {\n phoneController.fixArticleImage(wo$(this));\n }\n });\n\n page.find('#also-viewed').change(function () {\n var phone = wo$(this).val();\n location.href = phone;\n });\n },\n\n registerNotifications: function () {\n WhistleOut.notifications.add(function (notification, data) {\n\n if (data && data.criteria && data.type !== 'Page') {\n data.criteria.page = 1;\n }\n\n if (notification === 'FilterChanged') {\n wo$('[data-enable-when-ready]').attr('disabled', 'disabled');\n var isAjax = data.type === 'Sort'\n || data.type === 'Page'\n || data.type === 'Data'\n || data.type === 'Minutes'\n || data.type === 'Calls'\n || data.type === 'Messages'\n || data.type === 'MaxUpfront'\n || data.type === 'PlanSummary'\n || data.type === 'FeaturedResults';\n phoneController.updateFilters(data.criteria, !isAjax);\n } else if (notification === 'TabChanged') {\n phoneController.loadSearchModal();\n } else if (notification === 'SearchResultsRendered') {\n phoneController.loadSearchModal();\n wo$(window).resize();\n }\n });\n },\n\n bindByod: function() {\n page.find('*[data-show-byo-phone-modal]').off().on('click', function() {\n var source = wo$(this);\n\n var manufacturerShortUrl = source.data('brand-short-url');\n var phoneShortUrl = source.data('phone-short-url');\n\n var byoModalContainer = wo$('#byo-modal-container');\n if (byoModalContainer && byoModalContainer.length > 0) {\n //ToDo move to shared function\n WhistleOut.byoPhonePickerController.show(function(selectedModel) {\n var criteria = WhistleOut.readLookupData(wo$('[data-search-criteria]'));\n criteria.lines[0].phone = null;\n if (selectedModel) {\n criteria.lines[0].byoPhoneModelId = selectedModel.selectedModelId;\n }\n criteria.lines[0].simOnly = true;\n WhistleOut.notifications.fire('FilterChanged', { type: 'Phone', criteria: criteria });\n }, manufacturerShortUrl, phoneShortUrl);\n } else {\n var siteConfiguration = WhistleOut.getSiteConfiguration();\n wo$.ajax({\n url: siteConfiguration.byoPhonePickerModalUrl,\n type: 'GET',\n success: function(result) {\n if (result !== '') {\n if (!byoModalContainer || byoModalContainer.length < 1) {\n wo$('body').append('
');\n byoModalContainer = wo$('#byo-modal-container');\n }\n byoModalContainer.html(result);\n //ToDo move to shared function\n WhistleOut.byoPhonePickerController.show(function(selectedModel) {\n var criteria = WhistleOut.readLookupData(wo$('[data-search-criteria]'));\n criteria.lines[0].phone = null;\n if (selectedModel) {\n criteria.lines[0].byoPhoneModelId = selectedModel.selectedModelId;\n }\n criteria.lines[0].simOnly = true;\n WhistleOut.notifications.fire('FilterChanged', { type: 'Phone', criteria: criteria });\n }, manufacturerShortUrl, phoneShortUrl);\n }\n }\n });\n }\n });\n },\n \n loadSearchModal: function () {\n var criteria = WhistleOut.readLookupData(wo$('[data-search-criteria]'));\n var modalUrl = criteria.lines.length > 1 ? criteria.multiLineModalAjaxUrl : criteria.singleLineModalAjaxUrl;\n\n var queryString = WhistleOut.MobilePhones.generateQueryString(criteria);\n wo$.ajax({\n url: modalUrl + '?' + queryString,\n type: 'GET',\n success: function (result) {\n var $results = wo$('#filters-modal-partial');\n $results.html(result);\n WhistleOut.notifications.fire('FiltersModalReady');\n }\n });\n },\n\n bindPlanSummary: function () {\n page.find('#plan-summary [data-supplier]').click(function () {\n var criteria = WhistleOut.readLookupData(wo$('[data-search-criteria]'));\n //criteria.enforcemaximumresultlimits = false;\n var supplierShortUrl = wo$(this).data('supplier');\n if (supplierShortUrl) {\n criteria.suppliers = [ supplierShortUrl ];\n } else {\n criteria.suppliers = [];\n }\n WhistleOut.scrollTo('#search-results-partial');\n WhistleOut.notifications.fire('FilterChanged', { type: 'PlanSummary', criteria: criteria });\n });\n },\n\n updateFilters: function (criteria, fullReload) {\n\n WhistleOut.startProgress('#search-results-partial', 0.1, 50);\n\n var queryString = '?';\n if (fullReload) {\n criteria.hideEmptyTabs = false;\n criteria.showAll = false;\n criteria.showRowFilters = true;\n criteria.hideWidenResults = false;\n criteria.hideShare = false;\n criteria.hideCoverage = false;\n criteria.hideCoverageStrip = false;\n criteria.maxResults = null;\n criteria.includefeatured = true;\n WhistleOut.getCurrentLocation(\n function (e) {\n var address = e.label;\n if (address.length > 1) {\n criteria.address = address;\n }\n queryString += WhistleOut.MobilePhones.generateQueryString(criteria);\n location.href = criteria.searchUrl + queryString;\n },\n function () {\n queryString += WhistleOut.MobilePhones.generateQueryString(criteria);\n location.href = criteria.searchUrl + queryString;\n });\n\n return;\n }\n queryString += WhistleOut.MobilePhones.generateQueryString(criteria);\n\n\n var resultsUrl = criteria.lines.length > 1 ? criteria.multiLineAjaxUrl : criteria.singleLineAjaxUrl;\n resultsUrl += queryString;\n\n wo$.ajax({\n url: resultsUrl,\n type: 'GET',\n success: function (result) {\n var $results = wo$('#search-results-partial');\n $results.html(result);\n WhistleOut.applyPopover($results);\n WhistleOut.endProgress();\n WhistleOut.notifications.fire('SearchResultsRendered');\n wo$(window).resize();\n },\n error: function () {\n WhistleOut.endProgress();\n }\n });\n },\n\n setQueryString: function (queryString) {\n if (queryString.indexOf('?') === 0) {\n queryString = queryString.substring(1);\n }\n\n var currentUrl = document.location.toString();\n var url;\n if (currentUrl.indexOf('?') >= 0) {\n url = currentUrl.substring(0, currentUrl.indexOf('?') + 1) + queryString;\n } else {\n url = currentUrl + '?' + queryString;\n }\n\n phoneController.HistoryWrapper.pushState(null, document.title, url);\n },\n\n initHistoryTracker: function () {\n WhistleOut.initHistoryTracker(phoneController);\n },\n\n fixArticleImage: function ($image) {\n if ($image.width() === 700) {\n $image.addClass('fullwidth-image');\n }\n }\n };\n\n phoneController.init();\n };\n\n WhistleOut.initModule(import.meta.url, main);\n\n}());","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar InternalStateModule = require('../internals/internal-state');\nvar getMethod = require('../internals/get-method');\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ITERATOR_HELPER = 'IteratorHelper';\nvar WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';\nvar setInternalState = InternalStateModule.set;\n\nvar createIteratorProxyPrototype = function (IS_ITERATOR) {\n var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);\n\n return defineBuiltIns(create(IteratorPrototype), {\n next: function next() {\n var state = getInternalState(this);\n // for simplification:\n // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`\n // for `%IteratorHelperPrototype%.next` - just a value\n if (IS_ITERATOR) return state.nextHandler();\n try {\n var result = state.done ? undefined : state.nextHandler();\n return createIterResultObject(result, state.done);\n } catch (error) {\n state.done = true;\n throw error;\n }\n },\n 'return': function () {\n var state = getInternalState(this);\n var iterator = state.iterator;\n state.done = true;\n if (IS_ITERATOR) {\n var returnMethod = getMethod(iterator, 'return');\n return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);\n }\n if (state.inner) try {\n iteratorClose(state.inner.iterator, 'normal');\n } catch (error) {\n return iteratorClose(iterator, 'throw', error);\n }\n iteratorClose(iterator, 'normal');\n return createIterResultObject(undefined, true);\n }\n });\n};\n\nvar WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);\nvar IteratorHelperPrototype = createIteratorProxyPrototype(false);\n\ncreateNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');\n\nmodule.exports = function (nextHandler, IS_ITERATOR) {\n var IteratorProxy = function Iterator(record, state) {\n if (state) {\n state.iterator = record.iterator;\n state.next = record.next;\n } else state = record;\n state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;\n state.nextHandler = nextHandler;\n state.counter = 0;\n state.done = false;\n setInternalState(this, state);\n };\n\n IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;\n\n return IteratorProxy;\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\n\nvar IteratorProxy = createIteratorProxy(function () {\n var iterator = this.iterator;\n var result = anObject(call(this.next, iterator));\n var done = this.done = !!result.done;\n if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);\n});\n\n// `Iterator.prototype.map` method\n// https://github.com/tc39/proposal-iterator-helpers\nmodule.exports = function map(mapper) {\n anObject(this);\n aCallable(mapper);\n return new IteratorProxy(getIteratorDirect(this), {\n mapper: mapper\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\n\nvar IteratorProxy = createIteratorProxy(function () {\n var iterator = this.iterator;\n var predicate = this.predicate;\n var next = this.next;\n var result, done, value;\n while (true) {\n result = anObject(call(next, iterator));\n done = this.done = !!result.done;\n if (done) return;\n value = result.value;\n if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;\n }\n});\n\n// `Iterator.prototype.filter` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n filter: function filter(predicate) {\n anObject(this);\n aCallable(predicate);\n return new IteratorProxy(getIteratorDirect(this), {\n predicate: predicate\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\n// `Iterator.prototype.find` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n find: function find(predicate) {\n anObject(this);\n aCallable(predicate);\n var record = getIteratorDirect(this);\n var counter = 0;\n return iterate(record, function (value, stop) {\n if (predicate(value, counter++)) return stop(value);\n }, { IS_RECORD: true, INTERRUPTED: true }).result;\n }\n});\n","var $ = require('../internals/export');\nvar map = require('../internals/iterator-map');\n\n// `Iterator.prototype.map` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n map: map\n});\n"],"names":["WhistleOut","initModule","import","page","wo$","length","phoneController","init","registerNotifications","initHistoryTracker","loadSearchModal","bindByod","bindPlanSummary","getAds","find","each","this","magnificPopup","delegate","type","zoom","enabled","duration","gallery","click","parents","last","one","fixArticleImage","complete","change","phone","val","location","href","notifications","add","notification","data","criteria","attr","isAjax","updateFilters","window","resize","off","on","source","manufacturerShortUrl","phoneShortUrl","byoModalContainer","byoPhonePickerController","show","selectedModel","readLookupData","lines","byoPhoneModelId","selectedModelId","simOnly","fire","siteConfiguration","getSiteConfiguration","ajax","url","byoPhonePickerModalUrl","success","result","append","html","modalUrl","multiLineModalAjaxUrl","singleLineModalAjaxUrl","queryString","MobilePhones","generateQueryString","supplierShortUrl","suppliers","scrollTo","fullReload","startProgress","hideEmptyTabs","showAll","showRowFilters","hideWidenResults","hideShare","hideCoverage","hideCoverageStrip","maxResults","includefeatured","getCurrentLocation","e","address","label","searchUrl","resultsUrl","multiLineAjaxUrl","singleLineAjaxUrl","$results","applyPopover","endProgress","error","setQueryString","indexOf","substring","currentUrl","document","toString","HistoryWrapper","pushState","title","$image","width","addClass","DESCRIPTORS","isArray","$TypeError","TypeError","getOwnPropertyDescriptor","Object","SILENT_ON_NON_WRITABLE_LENGTH_SET","undefined","defineProperty","writable","module","exports","O","anObject","iteratorClose","iterator","fn","value","ENTRIES","done","defineBuiltIn","target","src","options","key","it","classof","Array","argument","call","create","createNonEnumerableProperty","defineBuiltIns","wellKnownSymbol","InternalStateModule","getMethod","IteratorPrototype","createIterResultObject","TO_STRING_TAG","ITERATOR_HELPER","WRAP_FOR_VALID_ITERATOR","setInternalState","set","createIteratorProxyPrototype","IS_ITERATOR","getInternalState","getterFor","next","state","nextHandler","returnMethod","inner","WrapForValidIteratorPrototype","IteratorHelperPrototype","IteratorProxy","record","counter","prototype","aCallable","getIteratorDirect","createIteratorProxy","callWithSafeIterationClosing","mapper","$","toObject","lengthOfArrayLike","setArrayLength","doesNotExceedSafeInteger","proto","arity","forced","fails","push","properErrorOnNonWritableLength","item","len","argCount","arguments","i","predicate","real","filter","iterate","stop","IS_RECORD","INTERRUPTED","map"],"sourceRoot":""}