PageSourceSearch

https://www.optus.com.au/etc.clientlibs/aem-oca/clientlibs/clientl…/resources/296.60df47be0e9fe5b7.js

js optus.com.au collected 2026-09-24 08:26:46 UTC 18,389 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk_lux2_ssr_catalogue_sfcc=self.webpackChunk_lux2_ssr_catalogue_sfcc||[]).push([["296"],{78100:function(e,t,n){var r=n(83134),o=n(16133),u=n(29948);t.A=(e,t="")=>{let n,i,c=0,a="";if(!t||t.toLowerCase().includes("all")||t.toLowerCase()===u.TE)e?.forEach(e=>{Number(e.contractLength)>c&&(c=Number(e.contractLength),n=Number(e.price),i=r.Ay.plus(n,e.deviceDiscount||0),a=e.mtcText)});else{let u=e?.filter(e=>(0,o.A)(e.contractLength)===(0,o.A)(t));u?.length>0&&(c=Number(u[0].contractLength),n=Number(u[0].price),i=r.Ay.plus(n,u[0].deviceDiscount||0),a=u[0].mtcText)}return{term:c,price:n,oldPrice:i,text:a}}},78692:function(e,t,n){var r=n(10361);t.A=(e,t,n,o)=>{let u=(n+1)*(o||r.CZ);if(!t)return u;let i=0,c=0;for(;c<u;)e[c]&&e[c].featureProduct&&++c,++i,++c;return i}},10481:function(e,t){t.A=(e,t)=>{let n="";return e?.hasOwnProperty("src")?n=e.src.original:t?.hasOwnProperty("src")&&(n=t.src.original),n}},48922:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var r=n(41594),o=n.n(r),u=n(11016),i=n(69904),c=n(10361),a=n(6516),l=n(31297),s=n(8162),f=n(55509);let d=s.default.div`
2  margin-bottom: ${(0,f.A)(48)};
3`,p=({filters:e,genericLabels:t})=>{let n={filterData:{filters:e,filterPreset:[],genericLabels:t},cardsWithPrice:[],defaultContractLength:"36",isHideResultsCount:!0,isLoadAll:!1,loadMoreCount:c.CZ},a=(0,l.j)(),[s,f]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{a((0,i.zu)({id:c.S3})),f(!0)},[a]),s)?o().createElement(d,null,o().createElement(u.default,{deviceListingId:c.S3,...n})):o().createElement(o().Fragment,null)};var h=e=>o().createElement(a.Ay,null,o().createElement(p,{...e}))},6516:function(e,t,n){let r;n.d(t,{Ay:function(){return v}});var o=n(82960),u=n(31097),i=n(41594),c=n.n(i),a=n(52956),l=n(1265),s=n(21476),f=n(56576);let d={hasOutrightPrices:!1,productAvailableTerms:[]},p=(0,o.HY)({deviceListing:f.A,header:s.A,productDetails:(e,t)=>{let n=e??d;switch(t.type){case"UPDATE_COLOR":return{...n,productSelectedInitiator:t.productSelectedInitiator,productSelectedColor:t.productSelectedColor};case"UPDATE_AVAILABILITY_STATUS":return{...n,productSelectedAvailabilityStatus:t.productSelectedAvailabilityStatus,productSelectedControlsEnabled:t.productSelectedControlsEnabled};case"UPDATE_CONTRACT_LENGTH":return{...n,productSelectedTerm:t.productSelectedTerm};case"UPDATE_CAPACITY":return{...n,productSelectedCapacity:t.productSelectedCapacity};case"UPDATE_MEC_INFO":return{...n,productSelectedMecId:t.productSelectedMecId,productSelectDeviceVariantMecName:t.productSelectDeviceVariantMecName};case"UPDATE_BRAND_AND_TITLE":return{...n,productSelectedBrand:t.productSelectedBrand,productSelectedTitle:t.productSelectedTitle};case"UPDATE_AVAILABLE_TERMS":return{...n,productAvailableTerms:t.productAvailableTerms};case"UPDATE_PRICE":{let{productSelectedMTC:e,productSelectedPrice:r,productSelectedOldPrice:o,productSelectedTotalRepaymentCharges:u,productSelectedPlanDiscount:i,productSelectedDeviceDiscount:c,productSelectedAddonContractLength:a,productSelectedOldTotalRepaymentCharges:l,productSelectedTotalDiscount:s,productSelectedTotalDeviceDiscount:f,productSelectedHideOldPrice:d,productSelectedOldPriceLabel:p,productSelectedOldPriceFormatting:h,productSelectedDiscountLabel:v,productSelectedCore2MTC:g}=t;return{...n,productSelectedMTC:e,productSelectedPrice:r,productSelectedOldPrice:o,productSelectedTotalRepaymentCharges:u,productSelectedPlanDiscount:i,productSelectedDeviceDiscount:c,productSelectedAddonContractLength:a,productSelectedOldTotalRepaymentCharges:l,productSelectedTotalDiscount:s,productSelectedTotalDeviceDiscount:f,productSelectedHideOldPrice:d,productSelectedOldPriceLabel:p,productSelectedOldPriceFormatting:h,productSelectedDiscountLabel:v,productSelectedCore2MTC:g}}case"UPDATE_IMAGE":{let{productImageCarouselEl:e,productSelectedInitiator:r,productSelectedColor:o,productSelectedImage:u,productImageActiveId:i}=t;return{...n,productImageCarouselEl:e,productSelectedInitiator:r,productSelectedColor:o,productSelectedImage:u,productImageActiveId:i}}case"UPDATE_IMAGE_ACTIVE_ID":return{...n,productImageActiveId:t.productImageActiveId};case"UPDATE_MP_ID":return{...n,productSelectedMpId:t.productSelectedMpId};case"UPDATE_HAS_OUTRIGHT_PRICES":return{...n,hasOutrightPrices:t.hasOutrightPrices};default:return n}}}),h=(r={},(0,u.U1)({reducer:p,middleware:[l.A],preloadedState:r}));var v=e=>c().createElement(a.Kq,{store:h},e.children)},29948:function(e,t,n){n.d(t,{CV:function(){return O},Cj:function(){return L},E_:function(){return h},Kv:function(){return _},LG:function(){return l},Np:function(){return D},Og:function(){return N},TE:function(){return P},TL:function(){return p},W3:function(){return y},W7:function(){return a},W9:function(){return i},de:function(){return k},e3:function(){return T},g7:function(){return d},gd:function(){return s},gf:function(){return C},h3:function(){return m},hQ:function(){return A},hh:function(){return r},k0:function(){return w},kU:function(){return u},o4:function(){return I},rF:function(){return o},rm:function(){return g},sL:function(){return c},sp:function(){return E},u$:function(){return v},v2:function(){return b},yC:function(){return f},z3:function(){return R},zV:function(){return S}});let r=window.servicesApiPrefix||"/digital-api/exp/v1",o="Not Performed",u="Not Required",i="cat_isUserLoggedIn",c="radio-button",a="dropdown-button",l="dropdown-remove-button",s="summarySelectDevice",f="select_device",d="select_device_pdp",p="select_plan_pdp",h="select_item",v="Research | Device and Plan Selection",g="Research | Device Selection",m="Research | Device Selection PDP",y="Research | Device and Plan Selection PDP",A="analyticsDataCapture_v2",E="add_to_cart",S="view_item",_="view_item_list",b="cartOnLoad",C="analyticsInteractionTracking",T="select_device_variant_plan",L="analyticsErrorTracking_v2",N=/mobile\/(.*)phones/g,w=/mobile\/(.*)tablets/g,O={VIEWED_PRODUCTS:"viewedProducts"},P="outright",I="isNudgeOfferActive",k=["12","24","36",P],D="ProductSummaryCartButton",R="PlanListing"},42583:function(e,t,n){var r=n(19658);t.A=e=>({headers:{"x-apikey":e,"Content-Type":r.cM.JSON},credentials:r.Ji.INCLUDE})},6424:function(e,t){t.A=e=>new URLSearchParams(window.location.search).get(e)},31297:function(e,t,n){n.d(t,{G:function(){return o},j:function(){return u}});var r=n(52956);let o=r.d4,u=r.wA},310:function(e,t,n){n.d(t,{A4:function(){return s},C4:function(){return a},EM:function(){return f},Ic:function(){return A},KI:function(){return m},Rg:function(){return i},YW:function(){return l},_g:function(){return c},kD:function(){return g},l6:function(){return p},lG:function(){return h},m9:function(){return v},pP:function(){return y}});var r=n(54997),o=n(10481),u=n(29948);let i=e=>t=>t.deviceListing[e],c=e=>t=>t.deviceListing[e].loadMoreTimes,a=e=>t=>t.deviceListing[e].filteredCards.length||0,l=({id:e,filterId:t,isFilter:n})=>r=>n?r.deviceListing[e].cards.reduce((e,n)=>{let{crossSaleTile:r,productTileImage:u,featureImage:i}=n;if(!r){let r=n[t];e.all.count+=1,"string"==typeof r&&(e[r]??={count:0,defaultImage:null},e[r].count+=1,e[r].defaultImage||=(0,o.A)(u,i),e.all.defaultImage||=e[r].defaultImage)}return e},{all:{count:0,defaultImage:null}}
3):null,s=e=>t=>t.deviceListing[e].displayedCards?.length||0,f=e=>t=>t.deviceListing[e].filterObj,d=e=>t=>t.deviceListing[e]?.filterObj.contractLengthFilterName.toLowerCase(),p=e=>(0,r.Mz)([d(e)],e=>e?.toLowerCase()===u.TE),h=e=>(0,r.Mz)([d(e),t=>t.deviceListing[e].defaultContractLength],(e,t)=>e||t||""),v=e=>t=>t.deviceListing[e].filterSelections,g=e=>t=>{let n=t.deviceListing[e].filterSelections;return Object.keys(n).reduce((e,t)=>e.concat(Object.values(n[t])),[])},m=(e,t)=>n=>Object.values(n.deviceListing[e].filterSelections[t]||{}),y=e=>t=>{let n=t.deviceListing[e].filterSelections;return Object.keys(n).reduce((e,t)=>e+Object.values(n[t]).length,0)},A=e=>t=>Object.values(t.deviceListing[e].filterSelections).length>0},19658:function(e,t,n){var r,o,u,i,c,a;n.d(t,{Ji:function(){return r},U0:function(){return o},cM:function(){return u}}),(i=r||(r={})).INCLUDE="include",i.OMIT="omit",i.SAME_ORIGIN="same-origin",(c=o||(o={})).GET="GET",c.POST="POST",c.PUT="PUT",(a=u||(u={})).JSON="application/json",a.FORM_URL="application/x-www-form-urlencoded",a.FORM_DATA="multipart/form-data",a.TEXT="text/plain"},43627:function(e,t,n){function r(e,t,n){return t.hasOwnProperty(n)!==e.hasOwnProperty(n)||typeof t[n]!=typeof e[n]}n.d(t,{OM:function(){return d},Ay:function(){return s},sx:function(){return f},Fn:function(){return p},IJ:function(){return h}});let o=(e,t,n,r,o)=>{switch(typeof e[n]){case"object":case"function":if(r.push(e),o.push(t),!u(e[n],t[n],r,o))return!1;r.pop(),o.pop();break;default:if(e[n]!==t[n])return!1}return!0};function u(e,t,n,u){let i;if(isNaN(e)&&isNaN(t)&&"number"==typeof e&&"number"==typeof t||e===t)return!0;if("function"==typeof e&&"function"==typeof t||e instanceof Date&&t instanceof Date||e instanceof RegExp&&t instanceof RegExp||e instanceof String&&t instanceof String||e instanceof Number&&t instanceof Number)return e.toString()===t.toString();if(!(e instanceof Object&&t instanceof Object)||e.isPrototypeOf(t)||t.isPrototypeOf(e)||e.constructor!==t.constructor||e.prototype!==t.prototype||n.indexOf(e)>-1||u.indexOf(t)>-1)return!1;for(i in t)if(r(e,t,i))return!1;for(i in e)if(r(e,t,i)||!o(e,t,i,n,u))return!1;return!0}var i=n(11759);let c="Service",a="My Account",l=(0,i.zk)();function s(e,t=!1){if(l.dataLayer||(l.dataLayer=[]),t&&l.dataLayer.length>0){let t=l.dataLayer[l.dataLayer.length-1];if(function(){let e,t;if(arguments.length<1)return!1;for(e=1,t=arguments.length;e<t;e++){let t=[],n=[];if(!u(arguments[0],arguments[e],t,n))return!1}return!0}(t,e))return t}return l.dataLayer.push(e)}let f=(e,t)=>{s(Object.assign({event:e},t))},d=e=>{s({interactionText:e.text,interactionClickElement:e.clickElement,interactionTarget:e.target,event:"analyticsDataCapture"})},p=({transactionBusinessArea:e=c,transactionSolution:t=a,formFieldId:n="",formId:r="",errorMessageDisplayed:o,uiComponent:u=""})=>{var i,f;s({transactionBusinessArea:e,transactionSolution:t,transactionErrorLayer:"view",formFieldId:n,formId:r,errorMessageDisplayed:o,onPage:null!=(i=l.document.URL)?i:"",pageDocumentTitle:`Javascript - ${null!=(f=l.document.title)?f:""}`,event:"analyticsErrorTracking",uiComponent:u})},h=({interactionText:e,interactionClickElement:t,interactionElementId:n,interactionTarget:r})=>{s({event:"analyticsInteractionTracking",interactionText:e,interactionClickElement:t,interactionElementId:n,interactionTarget:r})}},83134:function(e,t){function n(e,t){return void 0===t&&(t=15),+parseFloat(Number(e).toPrecision(t))}function r(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-(t[1]||0);return n>0?n:0}function o(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=r(e);return t>0?n(Number(e)*Math.pow(10,t)):Number(e)}function u(e){f&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&console.warn(e+" is beyond boundary when transfer to integer, the results may not be accurate")}function i(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t.slice(1).reduce(function(t,n){return e(t,n)},r)}}var c=i(function(e,t){var n=o(e),i=o(t),c=r(e)+r(t),a=n*i;return u(a),a/Math.pow(10,c)}),a=i(function(e,t){var n=Math.pow(10,Math.max(r(e),r(t)));return(c(e,n)+c(t,n))/n}),l=i(function(e,t){var n=Math.pow(10,Math.max(r(e),r(t)));return(c(e,n)-c(t,n))/n}),s=i(function(e,t){var i=o(e),a=o(t);return u(i),u(a),c(i/a,n(Math.pow(10,r(t)-r(e))))}),f=!0;t.Ay={strip:n,plus:a,minus:l,times:c,divide:s,round:function(e,t){var n=Math.pow(10,t),r=s(Math.round(Math.abs(c(e,n))),n);return e<0&&0!==r&&(r=c(r,-1)),r},digitLength:r,float2Fixed:o,enableBoundaryChecking:function(e){void 0===e&&(e=!0),f=e}}},54997:function(e,t,n){n.d(t,{Mz:function(){return u}});var r="NOT_FOUND",o=function(e,t){return e===t},u=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t,r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];var i=0,c={memoizeOptions:void 0},a=o.pop();if("object"==typeof a&&(c=a,a=o.pop()),"function"!=typeof a)throw Error("createSelector expects an output function after the inputs, but received: ["+typeof a+"]");var l=c.memoizeOptions,s=void 0===l?n:l,f=Array.isArray(s)?s:[s],d=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t.map(function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ")+"]");return t}(o),p=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(f)),h=e(function(){for(var e=[],n=d.length,r=0;r<n;r++)e.push(d[r].apply(null,arguments));return t=p.apply(null,e)});return Object.assign(h,{resultFunc:a,memoizedResultFunc:p,dependencies:d,lastResult:function(){return t},recomputations:function(){return i},resetRecomputations:function(){return i=0}}),h}}(function(e,t){var n,u,i="object"==typeof t?t:{equalityCheck:t},c=i.equalityCheck,a=i.maxSize,l=void 0===a?1:a,s=i.resultEqualityCheck,f=(n=void 0===c?o:c,function(e,t){if(null===e||null===t||e.length!==t.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!n(e[o],t[o]))return!1;return!0}),d=1===l?{get:function(e){return u&&f(u.key,e)?u.value:r},put:function(e,t){u={key:e,value:t}},getEntries:function(){return u?[u]:[]},clear:function(){u=void 0}}:function(e,t){var n=[];
3function o(e){var o=n.findIndex(function(n){return t(e,n.key)});if(o>-1){var u=n[o];return o>0&&(n.splice(o,1),n.unshift(u)),u.value}return r}return{get:o,put:function(t,u){o(t)===r&&(n.unshift({key:t,value:u}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,f);function p(){var t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),s){var n=d.getEntries().find(function(e){return s(e.value,t)});n&&(t=n.value)}d.put(arguments,t)}return t}return p.clearCache=function(){return d.clear()},p})},3702:function(e,t,n){var r=n(41594),o=n(98587),u=n(58168),i=n(9417),c=n(77387),a=n(4146),l=r.createContext(),s={},f="PENDING",d="REJECTED",p=function(e){var t=function(t){return r.createElement(l.Consumer,null,function(n){return r.createElement(e,Object.assign({__chunkExtractor:n},t))})};return e.displayName&&(t.displayName=e.displayName+"WithChunkExtractor"),t},h=function(e){return e};function v(e){var t=e.defaultResolveComponent,n=void 0===t?h:t,l=e.render,v=e.onLoad;function g(e,t){void 0===t&&(t={});var h="function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e,g={};function m(e){return t.cacheKey?t.cacheKey(e):h.resolve?h.resolve(e):"static"}function y(e,r,o){var u=t.resolveComponent?t.resolveComponent(e,r):n(e);return a(o,u,{preload:!0}),u}var A=function(e){var t=m(e),n=g[t];return n&&n.status!==d||((n=h.requireAsync(e)).status=f,g[t]=n,n.then(function(){n.status="RESOLVED"},function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:h.resolve(e),chunkName:h.chunkName(e),error:t?t.message:t}),n.status=d})),n},E=p(function(e){function n(n){var r;if((r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:m(n)},!(!n.__chunkExtractor||h.requireSync)){var o=Error("loadable: SSR requires `@loadable/babel-plugin`, please install it");throw o.framesToPop=1,o.name="Invariant Violation",o}return n.__chunkExtractor?(!1===t.ssr||(h.requireAsync(n).catch(function(){return null}),r.loadSync(),n.__chunkExtractor.addChunk(h.chunkName(n))),(0,i.A)(r)):(!1!==t.ssr&&(h.isReady&&h.isReady(n)||h.chunkName&&s[h.chunkName(n)])&&r.loadSync(),r)}(0,c.A)(n,e),n.getDerivedStateFromProps=function(e,t){var n=m(e);return(0,u.A)({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===d&&this.setCache(),this.state.loading&&this.loadAsync()},r.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},r.componentWillUnmount=function(){this.mounted=!1},r.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},r.getCacheKey=function(){return m(this.props)},r.getCache=function(){return g[this.getCacheKey()]},r.setCache=function(e){void 0===e&&(e=void 0),g[this.getCacheKey()]=e},r.triggerOnLoad=function(){var e=this;v&&setTimeout(function(){v(e.state.result,e.props)})},r.loadSync=function(){if(this.state.loading)try{var e=h.requireSync(this.props),t=y(e,this.props,S);this.state.result=t,this.state.loading=!1}catch(e){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:h.resolve(this.props),chunkName:h.chunkName(this.props),error:e?e.message:e}),this.state.error=e}},r.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then(function(t){var n=y(t,e.props,S);e.safeSetState({result:n,loading:!1},function(){return e.triggerOnLoad()})}).catch(function(t){return e.safeSetState({error:t,loading:!1})}),t},r.resolveAsync=function(){var e=this.props;return A((e.__chunkExtractor,e.forwardedRef,(0,o.A)(e,["__chunkExtractor","forwardedRef"])))},r.render=function(){var e=this.props,n=e.forwardedRef,r=e.fallback,i=(e.__chunkExtractor,(0,o.A)(e,["forwardedRef","fallback","__chunkExtractor"])),c=this.state,a=c.error,s=c.loading,d=c.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===f)throw this.loadAsync();if(a)throw a;var p=r||t.fallback||null;return s?p:l({fallback:p,result:d,options:t,props:(0,u.A)({},i,{ref:n})})},n}(r.Component)),S=r.forwardRef(function(e,t){return r.createElement(E,Object.assign({forwardedRef:t},e))});
3return S.displayName="Loadable",S.preload=function(e){S.load(e)},S.load=function(e){return A(e)},S}return{loadable:g,lazy:function(e,t){return g(e,(0,u.A)({},t,{suspense:!0}))}}}var g=v({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return r.createElement(t,n)}}),m=g.loadable,y=g.lazy,A=v({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),E=A.loadable,S=A.lazy;m.lib=E,y.lib=S,t.Ay=m}}]);

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.