@mobielnl/elements 0.12.20 → 0.12.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/elements.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Z as l, _ as r, $ as t, a0 as a } from "./index-CnzJyafp.js";
2
+ import { Z as l, _ as r, $ as t, a0 as a } from "./index-q4BtYrTI.js";
3
3
  var o = typeof globalThis < "u" && globalThis.process ? globalThis.process : { env: { NODE_ENV: "production" } };
4
4
  export {
5
5
  l as ElementsRoot,
@@ -1607,4 +1607,4 @@ __p += '`),Dt&&(Ce+=`' +
1607
1607
  function print() { __p += __j.call(arguments, '') }
1608
1608
  `:`;
1609
1609
  `)+Ce+`return __p
1610
- }`;var gt=G7(function(){return Wt(G,Re+"return "+Ce).apply(r,J)});if(gt.source=Ce,gw(gt))throw gt;return gt}function Rde(u){return qt(u).toLowerCase()}function Wde(u){return qt(u).toUpperCase()}function Ude(u,f,w){if(u=qt(u),u&&(w||f===r))return rD(u);if(!u||!(f=eo(f)))return u;var $=Zo(u),z=Zo(f),G=nD($,z),J=oD($,z)+1;return sa($,G,J).join("")}function Hde(u,f,w){if(u=qt(u),u&&(w||f===r))return u.slice(0,sD(u)+1);if(!u||!(f=eo(f)))return u;var $=Zo(u),z=oD($,Zo(f))+1;return sa($,0,z).join("")}function qde(u,f,w){if(u=qt(u),u&&(w||f===r))return u.replace(qo,"");if(!u||!(f=eo(f)))return u;var $=Zo(u),z=nD($,Zo(f));return sa($,z).join("")}function Gde(u,f){var w=K,$=W;if(kr(f)){var z="separator"in f?f.separator:z;w="length"in f?pt(f.length):w,$="omission"in f?eo(f.omission):$}u=qt(u);var G=u.length;if(hu(u)){var J=Zo(u);G=J.length}if(w>=G)return u;var ee=w-mu($);if(ee<1)return $;var se=J?sa(J,0,ee).join(""):u.slice(0,ee);if(z===r)return se+$;if(J&&(ee+=se.length-ee),bw(z)){if(u.slice(ee).search(z)){var he,me=se;for(z.global||(z=D1(z.source,qt(lu.exec(z))+"g")),z.lastIndex=0;he=z.exec(me);)var Ce=he.index;se=se.slice(0,Ce===r?ee:Ce)}}else if(u.indexOf(eo(z),ee)!=ee){var De=se.lastIndexOf(z);De>-1&&(se=se.slice(0,De))}return se+$}function Zde(u){return u=qt(u),u&&Xr.test(u)?u.replace(Qt,Pse):u}var Yde=Cu(function(u,f,w){return u+(w?" ":"")+f.toUpperCase()}),ww=GD("toUpperCase");function q7(u,f,w){return u=qt(u),f=w?r:f,f===r?xse(u)?Ase(u):dse(u):u.match(f)||[]}var G7=St(function(u,f){try{return Jn(u,r,f)}catch(w){return gw(w)?w:new it(w)}}),Jde=Ji(function(u,f){return Xn(f,function(w){w=Jo(w),bi(u,w,hw(u[w],u))}),u});function Xde(u){var f=u==null?0:u.length,w=qe();return u=f?gr(u,function($){if(typeof $[1]!="function")throw new Po(s);return[w($[0]),$[1]]}):[],St(function($){for(var z=-1;++z<f;){var G=u[z];if(Jn(G[0],this,$))return Jn(G[1],this,$)}})}function Qde(u){return Pae(To(u,h))}function Cw(u){return function(){return u}}function efe(u,f){return u==null||u!==u?f:u}var tfe=YD(),rfe=YD(!0);function Kn(u){return u}function Sw(u){return ED(typeof u=="function"?u:To(u,h))}function nfe(u){return AD(To(u,h))}function ofe(u,f){return $D(u,To(f,h))}var ife=St(function(u,f){return function(w){return Qc(w,u,f)}}),sfe=St(function(u,f){return function(w){return Qc(u,w,f)}});function kw(u,f,w){var $=Qr(f),z=Rh(f,$);w==null&&!(kr(f)&&(z.length||!$.length))&&(w=f,f=u,u=this,z=Rh(f,Qr(f)));var G=!(kr(w)&&"chain"in w)||!!w.chain,J=Qi(u);return Xn(z,function(ee){var se=f[ee];u[ee]=se,J&&(u.prototype[ee]=function(){var he=this.__chain__;if(G||he){var me=u(this.__wrapped__),Ce=me.__actions__=Fn(this.__actions__);return Ce.push({func:se,args:arguments,thisArg:u}),me.__chain__=he,me}return se.apply(u,ea([this.value()],arguments))})}),u}function afe(){return sn._===this&&(sn._=Mse),this}function Pw(){}function lfe(u){return u=pt(u),St(function(f){return _D(f,u)})}var ufe=tw(gr),cfe=tw(J9),dfe=tw(E1);function Z7(u){return lw(u)?T1(Jo(u)):Vae(u)}function ffe(u){return function(f){return u==null?r:il(u,f)}}var pfe=XD(),hfe=XD(!0);function Ew(){return[]}function Tw(){return!1}function mfe(){return{}}function gfe(){return""}function bfe(){return!0}function vfe(u,f){if(u=pt(u),u<1||u>Y)return[];var w=A,$=pn(u,A);f=qe(f),u-=A;for(var z=_1($,f);++w<u;)f(w);return z}function yfe(u){return ct(u)?gr(u,Jo):to(u)?[u]:Fn(h7(qt(u)))}function xfe(u){var f=++Nse;return qt(u)+f}var wfe=Zh(function(u,f){return u+f},0),Cfe=rw("ceil"),Sfe=Zh(function(u,f){return u/f},1),kfe=rw("floor");function Pfe(u){return u&&u.length?Vh(u,Kn,K1):r}function Efe(u,f){return u&&u.length?Vh(u,qe(f,2),K1):r}function Tfe(u){return eD(u,Kn)}function Afe(u,f){return eD(u,qe(f,2))}function $fe(u){return u&&u.length?Vh(u,Kn,U1):r}function _fe(u,f){return u&&u.length?Vh(u,qe(f,2),U1):r}var Ife=Zh(function(u,f){return u*f},1),Nfe=rw("round"),Dfe=Zh(function(u,f){return u-f},0);function Mfe(u){return u&&u.length?$1(u,Kn):0}function Ofe(u,f){return u&&u.length?$1(u,qe(f,2)):0}return H.after=oce,H.ary=P7,H.assign=Uce,H.assignIn=B7,H.assignInWith=z7,H.assignWith=vw,H.at=Hce,H.before=E7,H.bind=hw,H.bindAll=Jde,H.bindKey=T7,H.castArray=gce,H.chain=C7,H.chunk=Ple,H.compact=Ele,H.concat=Tle,H.cond=Xde,H.conforms=Qde,H.constant=Cw,H.countBy=Oue,H.create=qce,H.curry=A7,H.curryRight=$7,H.debounce=_7,H.defaults=Gce,H.defaultsDeep=Zce,H.defer=ice,H.delay=sce,H.difference=Ale,H.differenceBy=$le,H.differenceWith=_le,H.drop=Ile,H.dropRight=Nle,H.dropRightWhile=Dle,H.dropWhile=Mle,H.fill=Ole,H.filter=Lue,H.flatMap=zue,H.flatMapDeep=Kue,H.flatMapDepth=Vue,H.flatten=v7,H.flattenDeep=jle,H.flattenDepth=Lle,H.flip=ace,H.flow=tfe,H.flowRight=rfe,H.fromPairs=Fle,H.functions=rde,H.functionsIn=nde,H.groupBy=Rue,H.initial=zle,H.intersection=Kle,H.intersectionBy=Vle,H.intersectionWith=Rle,H.invert=ide,H.invertBy=sde,H.invokeMap=Uue,H.iteratee=Sw,H.keyBy=Hue,H.keys=Qr,H.keysIn=zn,H.map=rm,H.mapKeys=lde,H.mapValues=ude,H.matches=nfe,H.matchesProperty=ofe,H.memoize=om,H.merge=cde,H.mergeWith=K7,H.method=ife,H.methodOf=sfe,H.mixin=kw,H.negate=im,H.nthArg=lfe,H.omit=dde,H.omitBy=fde,H.once=lce,H.orderBy=que,H.over=ufe,H.overArgs=uce,H.overEvery=cfe,H.overSome=dfe,H.partial=mw,H.partialRight=I7,H.partition=Gue,H.pick=pde,H.pickBy=V7,H.property=Z7,H.propertyOf=ffe,H.pull=qle,H.pullAll=x7,H.pullAllBy=Gle,H.pullAllWith=Zle,H.pullAt=Yle,H.range=pfe,H.rangeRight=hfe,H.rearg=cce,H.reject=Jue,H.remove=Jle,H.rest=dce,H.reverse=fw,H.sampleSize=Que,H.set=mde,H.setWith=gde,H.shuffle=ece,H.slice=Xle,H.sortBy=nce,H.sortedUniq=iue,H.sortedUniqBy=sue,H.split=Bde,H.spread=fce,H.tail=aue,H.take=lue,H.takeRight=uue,H.takeRightWhile=cue,H.takeWhile=due,H.tap=Eue,H.throttle=pce,H.thru=tm,H.toArray=j7,H.toPairs=R7,H.toPairsIn=W7,H.toPath=yfe,H.toPlainObject=F7,H.transform=bde,H.unary=hce,H.union=fue,H.unionBy=pue,H.unionWith=hue,H.uniq=mue,H.uniqBy=gue,H.uniqWith=bue,H.unset=vde,H.unzip=pw,H.unzipWith=w7,H.update=yde,H.updateWith=xde,H.values=Pu,H.valuesIn=wde,H.without=vue,H.words=q7,H.wrap=mce,H.xor=yue,H.xorBy=xue,H.xorWith=wue,H.zip=Cue,H.zipObject=Sue,H.zipObjectDeep=kue,H.zipWith=Pue,H.entries=R7,H.entriesIn=W7,H.extend=B7,H.extendWith=z7,kw(H,H),H.add=wfe,H.attempt=G7,H.camelCase=Pde,H.capitalize=U7,H.ceil=Cfe,H.clamp=Cde,H.clone=bce,H.cloneDeep=yce,H.cloneDeepWith=xce,H.cloneWith=vce,H.conformsTo=wce,H.deburr=H7,H.defaultTo=efe,H.divide=Sfe,H.endsWith=Ede,H.eq=Xo,H.escape=Tde,H.escapeRegExp=Ade,H.every=jue,H.find=Fue,H.findIndex=g7,H.findKey=Yce,H.findLast=Bue,H.findLastIndex=b7,H.findLastKey=Jce,H.floor=kfe,H.forEach=S7,H.forEachRight=k7,H.forIn=Xce,H.forInRight=Qce,H.forOwn=ede,H.forOwnRight=tde,H.get=yw,H.gt=Cce,H.gte=Sce,H.has=ode,H.hasIn=xw,H.head=y7,H.identity=Kn,H.includes=Wue,H.indexOf=Ble,H.inRange=Sde,H.invoke=ade,H.isArguments=ll,H.isArray=ct,H.isArrayBuffer=kce,H.isArrayLike=Bn,H.isArrayLikeObject=Nr,H.isBoolean=Pce,H.isBuffer=aa,H.isDate=Ece,H.isElement=Tce,H.isEmpty=Ace,H.isEqual=$ce,H.isEqualWith=_ce,H.isError=gw,H.isFinite=Ice,H.isFunction=Qi,H.isInteger=N7,H.isLength=sm,H.isMap=D7,H.isMatch=Nce,H.isMatchWith=Dce,H.isNaN=Mce,H.isNative=Oce,H.isNil=Lce,H.isNull=jce,H.isNumber=M7,H.isObject=kr,H.isObjectLike=Tr,H.isPlainObject=id,H.isRegExp=bw,H.isSafeInteger=Fce,H.isSet=O7,H.isString=am,H.isSymbol=to,H.isTypedArray=ku,H.isUndefined=Bce,H.isWeakMap=zce,H.isWeakSet=Kce,H.join=Wle,H.kebabCase=$de,H.last=$o,H.lastIndexOf=Ule,H.lowerCase=_de,H.lowerFirst=Ide,H.lt=Vce,H.lte=Rce,H.max=Pfe,H.maxBy=Efe,H.mean=Tfe,H.meanBy=Afe,H.min=$fe,H.minBy=_fe,H.stubArray=Ew,H.stubFalse=Tw,H.stubObject=mfe,H.stubString=gfe,H.stubTrue=bfe,H.multiply=Ife,H.nth=Hle,H.noConflict=afe,H.noop=Pw,H.now=nm,H.pad=Nde,H.padEnd=Dde,H.padStart=Mde,H.parseInt=Ode,H.random=kde,H.reduce=Zue,H.reduceRight=Yue,H.repeat=jde,H.replace=Lde,H.result=hde,H.round=Nfe,H.runInContext=ie,H.sample=Xue,H.size=tce,H.snakeCase=Fde,H.some=rce,H.sortedIndex=Qle,H.sortedIndexBy=eue,H.sortedIndexOf=tue,H.sortedLastIndex=rue,H.sortedLastIndexBy=nue,H.sortedLastIndexOf=oue,H.startCase=zde,H.startsWith=Kde,H.subtract=Dfe,H.sum=Mfe,H.sumBy=Ofe,H.template=Vde,H.times=vfe,H.toFinite=es,H.toInteger=pt,H.toLength=L7,H.toLower=Rde,H.toNumber=_o,H.toSafeInteger=Wce,H.toString=qt,H.toUpper=Wde,H.trim=Ude,H.trimEnd=Hde,H.trimStart=qde,H.truncate=Gde,H.unescape=Zde,H.uniqueId=xfe,H.upperCase=Yde,H.upperFirst=ww,H.each=S7,H.eachRight=k7,H.first=y7,kw(H,(function(){var u={};return vi(H,function(f,w){Ht.call(H.prototype,w)||(u[w]=f)}),u})(),{chain:!1}),H.VERSION=n,Xn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){H[u].placeholder=H}),Xn(["drop","take"],function(u,f){It.prototype[u]=function(w){w=w===r?1:Yr(pt(w),0);var $=this.__filtered__&&!f?new It(this):this.clone();return $.__filtered__?$.__takeCount__=pn(w,$.__takeCount__):$.__views__.push({size:pn(w,A),type:u+($.__dir__<0?"Right":"")}),$},It.prototype[u+"Right"]=function(w){return this.reverse()[u](w).reverse()}}),Xn(["filter","map","takeWhile"],function(u,f){var w=f+1,$=w==B||w==R;It.prototype[u]=function(z){var G=this.clone();return G.__iteratees__.push({iteratee:qe(z,3),type:w}),G.__filtered__=G.__filtered__||$,G}}),Xn(["head","last"],function(u,f){var w="take"+(f?"Right":"");It.prototype[u]=function(){return this[w](1).value()[0]}}),Xn(["initial","tail"],function(u,f){var w="drop"+(f?"":"Right");It.prototype[u]=function(){return this.__filtered__?new It(this):this[w](1)}}),It.prototype.compact=function(){return this.filter(Kn)},It.prototype.find=function(u){return this.filter(u).head()},It.prototype.findLast=function(u){return this.reverse().find(u)},It.prototype.invokeMap=St(function(u,f){return typeof u=="function"?new It(this):this.map(function(w){return Qc(w,u,f)})}),It.prototype.reject=function(u){return this.filter(im(qe(u)))},It.prototype.slice=function(u,f){u=pt(u);var w=this;return w.__filtered__&&(u>0||f<0)?new It(w):(u<0?w=w.takeRight(-u):u&&(w=w.drop(u)),f!==r&&(f=pt(f),w=f<0?w.dropRight(-f):w.take(f-u)),w)},It.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},It.prototype.toArray=function(){return this.take(A)},vi(It.prototype,function(u,f){var w=/^(?:filter|find|map|reject)|While$/.test(f),$=/^(?:head|last)$/.test(f),z=H[$?"take"+(f=="last"?"Right":""):f],G=$||/^find/.test(f);z&&(H.prototype[f]=function(){var J=this.__wrapped__,ee=$?[1]:arguments,se=J instanceof It,he=ee[0],me=se||ct(J),Ce=function(At){var Dt=z.apply(H,ea([At],ee));return $&&De?Dt[0]:Dt};me&&w&&typeof he=="function"&&he.length!=1&&(se=me=!1);var De=this.__chain__,Re=!!this.__actions__.length,Ge=G&&!De,gt=se&&!Re;if(!G&&me){J=gt?J:new It(this);var He=u.apply(J,ee);return He.__actions__.push({func:tm,args:[Ce],thisArg:r}),new Eo(He,De)}return Ge&&gt?u.apply(this,ee):(He=this.thru(Ce),Ge?$?He.value()[0]:He.value():He)})}),Xn(["pop","push","shift","sort","splice","unshift"],function(u){var f=Th[u],w=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",$=/^(?:pop|shift)$/.test(u);H.prototype[u]=function(){var z=arguments;if($&&!this.__chain__){var G=this.value();return f.apply(ct(G)?G:[],z)}return this[w](function(J){return f.apply(ct(J)?J:[],z)})}}),vi(It.prototype,function(u,f){var w=H[f];if(w){var $=w.name+"";Ht.call(yu,$)||(yu[$]=[]),yu[$].push({name:f,func:w})}}),yu[Gh(r,C).name]=[{name:"wrapper",func:r}],It.prototype.clone=Yse,It.prototype.reverse=Jse,It.prototype.value=Xse,H.prototype.at=Tue,H.prototype.chain=Aue,H.prototype.commit=$ue,H.prototype.next=_ue,H.prototype.plant=Nue,H.prototype.reverse=Due,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=Mue,H.prototype.first=H.prototype.head,Hc&&(H.prototype[Hc]=Iue),H}),gu=$se();el?((el.exports=gu)._=gu,C1._=gu):sn._=gu}).call(wie)})(Lc,Lc.exports)),Lc.exports}var I9=Cie();function Sie({monthlyFees:e,baseMonthlyFee:t,lifetimeMonthlyFee:r}){const n=I9.orderBy(I9.uniq(e),c=>c,"desc"),o=e.filter(c=>c===e[0]).length,i=n.length>1||n[0]!==t,s=t>r,a=Ve(t,{symbol:"",dashed:!0}),l=Ve(s?r:n[n.length-1],{symbol:"",dashed:!0});return{normalPrice:a,promotionPrice:i||s?l:void 0,text:i&&!s?Ee.t("format.firstMonth",{count:o}):null}}function N9({bundleSet:e,oneLiner:t}){const{t:r}=at(),n=Sie(e),o=!!n.promotionPrice;return t&&o?m.jsxs("span",{className:"text-sm text-right whitespace-nowrap text-success",children:[n.text," ",r("format.for")," ",n.promotionPrice]}):t&&!o?m.jsxs("span",{className:"text-sm text-right whitespace-nowrap text-foreground-500",children:[r("format.startingFrom")," ",n.normalPrice]}):!o&&!n.normalPrice?null:m.jsxs("div",{children:[m.jsxs("div",{className:"flex flex-row justify-end items-baseline gap-2",children:[m.jsx("span",{className:I("text-base text-foreground whitespace-nowrap",o&&"line-through text-foreground-400"),children:n.normalPrice}),n.promotionPrice&&m.jsx("span",{className:"text-base font-semibold whitespace-nowrap text-success",children:n.promotionPrice})]}),n.text&&m.jsx("span",{className:"text-sm text-right whitespace-nowrap text-success",children:n.text})]})}function D9({bundleSets:e,selectedUnitKeys:t,hasPrice:r,onChange:n,classNames:o}){const{openModal:i}=ur();return m.jsx(yie,{classNames:o,options:e.map(s=>{const a=A9(s),{title:l,subtitle:c}=$9(s.name),d=r||s.baseMonthlyFee!==s.lifetimeMonthlyFee;return{value:s.unitKey,label:m.jsxs("div",{className:"flex flex-row justify-between items-center",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[a&&m.jsx("span",{className:"text-base text-foreground-400 line-through",children:a}),m.jsx("span",{className:"text-base font-medium text-foreground",children:l}),s.infoUrl&&m.jsx(Dd,{size:16,className:"shrink-0 text-foreground-500 relative z-10",onClick:p=>{p.stopPropagation(),i(`content-${s.infoUrl}`)}})]}),m.jsxs("div",{className:"flex flex-col gap-2 empty:hidden",children:[c&&m.jsx("span",{className:"text-sm text-foreground-500",children:c}),s.usps.length>0&&m.jsx("ul",{children:s.usps.map(p=>m.jsxs("li",{className:"text-sm text-foreground-500 flex items-center gap-1",children:[m.jsx(Lm,{size:16,className:"shrink-0 stroke-success-600"}),p]},p))})]})]}),d&&m.jsx(N9,{bundleSet:s})]})}}),value:t,onValueChange:s=>{const a=s.filter(c=>!t.includes(c))[0],l=t.filter(c=>!s.includes(c))[0];n(a||l)}})}const kie=6,Pie=4;function Eie({bundleTypeSet:e}){const{t}=at(),{propositionKey:r,toggleBundleSet:n}=qa(),{openModal:o}=ur(),{bundleModal:i,bundleSelector:s}=Mt(),a=e.bundleTypes.includes("channel")&&e.bundleSets.length>kie,l=r.unitKeys.filter(p=>p.includes(e.unitKey)),c=a?e.bundleSets.filter((p,h)=>l.includes(p.unitKey)||h<Pie):e.bundleSets,d=!e.bundleSets.every(p=>p.monthlyFees[p.monthlyFees.length-1]===0);return m.jsxs(m.Fragment,{children:[m.jsx(D9,{bundleSets:c,selectedUnitKeys:l,hasPrice:d,onChange:p=>n(p,e),classNames:s?.bundleTypeSetCheckboxGroup}),a&&m.jsxs(m.Fragment,{children:[m.jsx($r,{className:I("font-medium text-primary-600 border-primary-600",s?.showMoreButton),onPress:()=>o(`bundle-type-set-${e.unitKey}`),color:"primary",variant:"flat",size:"md",radius:"full",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:t("propositionSelector.showMore")}),m.jsx(xie,{title:e.name,unitKey:e.unitKey,classNames:i,children:m.jsx(D9,{bundleSets:e.bundleSets,selectedUnitKeys:l,hasPrice:d,onChange:p=>n(p,e),classNames:s?.bundleTypeSetCheckboxGroup})})]})]})}function Tie({bundleTypeSet:e}){const{t}=at(),{propositionKey:r,toggleBundleSet:n}=qa(),{bundleSelector:o}=Mt(),{openModal:i}=ur(),s=e.bundleSets.find(c=>r.unitKeys.some(d=>d.includes(c.unitKey)))?.unitKey,a=!e.bundleSets.every(c=>c.monthlyFees[c.monthlyFees.length-1]===0),l={value:"none",label:m.jsx("span",{className:"text-base font-medium text-foreground",children:t("propositionSelector.none")})};return m.jsx(T9,{options:[...e.required?[]:[l],...e.bundleSets.map(c=>{const d=A9(c),{title:p,subtitle:h}=$9(c.name),g=a||c.baseMonthlyFee!==c.lifetimeMonthlyFee;return{value:c.unitKey,label:m.jsxs("div",{className:"flex flex-row justify-between",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[d&&m.jsx("span",{className:"text-base text-foreground-400 line-through",children:d}),m.jsx("span",{className:"text-base font-medium text-foreground",children:p}),c.infoUrl&&m.jsx(Dd,{size:16,className:"shrink-0 text-foreground-500 relative z-10",onClick:b=>{b.preventDefault(),b.stopPropagation(),i(`content-${c.infoUrl}`)}})]}),m.jsxs("div",{className:"flex flex-col gap-2 empty:hidden",children:[h&&m.jsx("span",{className:"text-sm text-foreground-500",children:h}),c.usps.length>0&&m.jsx("ul",{children:c.usps.map(b=>m.jsxs("li",{className:"text-sm text-foreground-500 flex items-center gap-1",children:[m.jsx(Lm,{size:16,className:"shrink-0 stroke-success-600"}),b]},b))}),e.bundleTypes.includes("tv")&&m.jsxs("span",{className:"text-sm text-foreground-500 flex items-center gap-1 whitespace-nowrap",children:[m.jsx(a4,{size:16,className:"shrink-0"}),c.content.channels.length,c.content.hdChannels.length>0&&` (${c.content.hdChannels.length} HD)`]}),e.bundleTypes.includes("internet")&&m.jsxs("span",{className:"text-sm text-foreground-500 flex items-center gap-1 whitespace-nowrap",children:[m.jsx(i4,{size:16,className:"shrink-0"}),c.content.dataSpeedDown/1e3," /"," ",c.content.dataSpeedUp/1e3," ",t("format.megabitPerSecond")]})]})]}),g&&m.jsx(N9,{bundleSet:c})]})}})],value:s??"none",onValueChange:c=>n(s&&c==="none"?s:c,e),classNames:o?.bundleTypeSetRadioGroup})}function Aie(){const{propositionKey:e,propositionSelector:t,setPlanVariant:r}=qa(),{t:n}=at(),{bundleSelector:o}=Mt(),{openModal:i}=ur();return t?m.jsxs("div",{className:I("space-y-8",o?.base),children:[m.jsxs("div",{className:I("space-y-2",o?.contractTermGroup),children:[m.jsx("h3",{className:I("text-base font-bold text-foreground",o?.contractTermLabel),children:n("propositionSelector.contractTerm")}),m.jsx(T9,{options:t.planVariants.map(s=>({value:s.unitKey,label:m.jsx("span",{className:"text-base font-medium text-foreground",children:Dc(s.contractTerm)})})),value:e.planVariant(),onValueChange:s=>r(s),orientation:"horizontal",classNames:o?.contractTermRadioGroup})]}),t.bundleTypeSets.map(s=>s.bundleSets.length===0?null:m.jsxs("div",{className:I("space-y-2",o?.bundleTypeSetGroup),children:[m.jsxs("h3",{className:I("text-base font-bold text-foreground flex items-center gap-1",o?.bundleTypeSetLabel),children:[m.jsx("span",{children:s.name}),s.infoUrl&&m.jsx(Dd,{size:16,className:"shrink-0 text-foreground-500 cursor-pointer",onClick:()=>i(`content-${s.infoUrl}`)})]}),s.multiSelect?m.jsx(Eie,{bundleTypeSet:s}):m.jsx(Tie,{bundleTypeSet:s})]},s.unitKey))]}):null}function $ie({proposition:e}){const{extraCosts:t}=Mt(),{t:r}=at(),{productType:n,activationFee:o,installationFee:i,provider:s,planVariant:a}=e,l=n==="sim-only"&&a.contractType==="retention",c=r(n==="smartphone"?"propositionSelector.excludingShipping":"propositionSelector.freeShipping");return m.jsxs("div",{className:I("text-center text-sm text-foreground-400",t),children:[m.jsxs("span",{children:[!l&&c?`${c} | `:"",r("propositionSelector.includingVat")]}),m.jsx("br",{}),m.jsxs("span",{children:[s.name," ",r("propositionSelector.activationFee")," ",Ve(o,{symbol:"",dashed:!0})]}),n==="fixed"&&m.jsxs(m.Fragment,{children:[m.jsx("br",{}),m.jsxs("span",{children:[s.name," ",r("propositionSelector.installationFee")," ",Ve(i,{symbol:"",dashed:!0})]})]})]})}const _ie=250;function Iie(){const{t:e}=at(),{handsetCreditSelector:t}=Mt(),{propositionKey:r,propositionSelector:n,setHandsetCredit:o}=qa(),i=r.handsetCredit(),[s,a]=y.useState(i),l=jf(s,700);if(y.useEffect(()=>{a(i)},[i]),Oi(()=>{l&&o(l)},[l]),!n||n.handsetCreditKeys.length===0)return null;const c=b1(n.handsetCreditKeys,n.basePrice);if(c.length===0)return null;const d=c.find(({unitKey:v})=>v===s)??c[0],p=c.indexOf(d),h=[...c].reverse().find(({creditFee:v})=>v+n.creditFee<=_ie)?.monthlyFee||0,g=c[c.length-1],b=g.price>0&&c[0].price!==g.creditFee,x=h>0&&g.monthlyFee>0?h/g.monthlyFee:0;return m.jsxs("div",{className:I("space-y-4",t?.base),children:[b&&m.jsx("p",{className:I("text-sm text-foreground-500",t?.handsetPriceInfo),children:e("handsetCreditSelector.handsetPriceInfo",{price:Ve(n.basePrice,{symbol:"€"})})}),m.jsxs("div",{className:I("flex justify-between items-center",t?.priceRow),children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:I("text-sm font-semibold",t?.oneTimeLabel),children:e("handsetCreditSelector.oneTime")}),m.jsx("span",{className:I("text-sm",t?.oneTimeValue),children:Ve(Math.max(0,d.price))})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:I("text-sm font-semibold",t?.monthlyLabel),children:e("handsetCreditSelector.monthly")}),m.jsx("span",{className:I("text-sm",t?.monthlyValue),children:Ve(d.monthlyFee)})]})]}),m.jsxs("div",{className:I("flex items-center gap-3",t?.sliderRow),children:[m.jsx($r,{isIconOnly:!0,size:"sm",variant:"bordered",radius:"md",isDisabled:p<=0,onPress:()=>{if(p<=0)return;const v=c[p-1].unitKey;a(v)},"aria-label":e("handsetCreditSelector.decrease"),className:t?.decrementButton,endContent:m.jsx("span",{className:"text-lg font-medium",children:"−"})}),m.jsxs("div",{className:"relative flex-1",children:[x>0&&m.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 h-3 rounded-l-full bg-success pointer-events-none",style:{width:`calc(${x*100}% - 5px)`}}),m.jsx(Lp,{size:"sm",step:1,hideValue:!0,className:"flex-1",minValue:0,maxValue:c.length-1,value:c.indexOf(d),onChange:v=>{const S=typeof v=="number"?v:v[0];a(c[S].unitKey)},onChangeEnd:v=>{const S=typeof v=="number"?v:v[0];a(c[S].unitKey)},classNames:{track:I("h-3 data-[fill-start=true]:border-s-transparent",t?.slider?.track),filler:I("hidden",t?.slider?.filler),step:I("data-[in-range=true]:bg-content1 data-[in-range=false]:bg-content1",t?.slider?.step),thumb:I(t?.slider?.thumb)}})]}),m.jsx($r,{isIconOnly:!0,size:"sm",variant:"bordered",radius:"md",isDisabled:p>=c.length-1,onPress:()=>{if(p>=c.length-1)return;const v=c[p+1].unitKey;a(v)},"aria-label":e("handsetCreditSelector.increase"),className:t?.incrementButton,endContent:m.jsx("span",{className:"text-lg font-medium",children:"+"})})]}),m.jsx("p",{className:I("text-xs",h===0?"text-warning":"text-success",t?.creditCheckText),children:h===0?e("handsetCreditSelector.creditCheckRequired"):e("handsetCreditSelector.noCreditCheck",{from:Ve(c[0].monthlyFee),to:Ve(h)})})]})}function M9(e){return e?e.sort((t,r)=>t.uniqueName.localeCompare(r.uniqueName)).sort((t,r)=>Number(r.sellWithoutSubscription)-Number(t.sellWithoutSubscription)).sort((t,r)=>+(r.stock.status==="backordered")-+(t.stock.status==="backordered")).sort((t,r)=>+(r.stock.status==="in_stock")-+(t.stock.status==="in_stock")):[]}function O9(e,t){const[r,n]=y.useState(0),o=y.useRef(null),i=y.useRef([]),s=y.useRef(null);y.useEffect(()=>{const d=o.current,p=i.current.some(g=>g!==null);return!d||e.length===0||!p?void 0:(s.current&&(s.current.disconnect(),s.current=null),s.current=new IntersectionObserver(g=>{g.forEach(b=>{if(b.isIntersecting&&b.intersectionRatio>.5){const x=i.current.indexOf(b.target);x!==-1&&n(x)}})},{root:null,threshold:.5,rootMargin:t?.rootMargin||"0px"}),i.current.filter(g=>g!==null).forEach(g=>{g&&s.current&&s.current.observe(g)}),()=>{s.current&&(s.current.disconnect(),s.current=null)})},[e.length,t?.rootMargin,t?.isOpen]);const a=y.useCallback(d=>{i.current[d]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[]),l=y.useCallback(()=>{r>0&&a(r-1)},[r,a]),c=y.useCallback(()=>{r<e.length-1&&a(r+1)},[r,e.length,a]);return{activeIndex:r,scrollContainerRef:o,imageRefs:i,scrollToImage:a,goToPrevious:l,goToNext:c}}function Nie({title:e,images:t=[],classNames:r}){const[n,o]=_i(),{popoverProps:i,isShadowRoot:s}=Mo(),{isModalOpen:a,openModal:l,closeModal:c}=ur(),d=y.useMemo(()=>t.filter(C=>!!C.url),[t]),p=a("carousel"),{activeIndex:h,scrollContainerRef:g,imageRefs:b,scrollToImage:x,goToPrevious:v,goToNext:S}=O9(d,{rootMargin:"0px",isOpen:p});return y.useEffect(()=>{p&&setTimeout(()=>{x(0)},200)},[p,x]),!d||d.length===0?null:m.jsx(Mi,{isOpen:p,onOpenChange:C=>C?l("carousel"):c("carousel"),placement:"bottom-center",scrollBehavior:"inside",size:"lg",shouldBlockScroll:!s,portalContainer:i.portalContainer,classNames:{backdrop:I(r?.modal?.backdrop),wrapper:I(r?.modal?.wrapper),base:I("m-0 max-h-[90vh]",r?.modal?.base),header:I(r?.modal?.header),body:I("pt-0",r?.modal?.body),footer:I(r?.modal?.footer),closeButton:I("cursor-pointer right-6 top-3.5",r?.modal?.closeButton)},children:m.jsxs(Ni,{children:[m.jsx(Di,{children:e}),m.jsxs(Ii,{className:"flex flex-row items-center gap-1 lg:gap-3",children:[m.jsx("button",{type:"button",onClick:v,disabled:h===0,className:"disabled:opacity-30 not-disabled:hover:cursor-pointer disabled:cursor-not-allowed",children:m.jsx(jm,{className:"rotate-180"})}),m.jsx("div",{ref:g,className:"flex flex-1 overflow-x-auto gap-3 snap-x snap-mandatory scrollbar-hide",style:{scrollbarWidth:"none"},children:d.map((C,k)=>m.jsx("div",{ref:P=>{b.current[k]=P},className:"shrink-0 w-full h-full flex justify-center snap-center",children:m.jsx(nn,{loading:"lazy",src:n(C.url,420,420),srcSet:o(C.url,420,420),alt:C.altText||"",classNames:{wrapper:I("mx-auto flex shrink-0 w-full",r?.imageWrapper),img:I("aspect-square drop-shadow-lg",r?.image)}})},C.url))}),m.jsx("button",{type:"button",onClick:S,disabled:h===d.length-1,className:"disabled:opacity-30 not-disabled:hover:cursor-pointer disabled:cursor-not-allowed",children:m.jsx(jm,{})})]}),m.jsx(ws,{className:"justify-center",children:d.map((C,k)=>m.jsx(Ps,{onPress:()=>x(k),isPressable:!0,disableRipple:!0,disableAnimation:!0,className:I("size-12 p-2 bg-transparent",h===k&&"ring-2 ring-primary",r?.thumbnailCard),radius:"sm",shadow:"none",children:m.jsx(nn,{className:I("size-8",r?.thumbnailImage),loading:"lazy",src:n(C.url,32,32),srcSet:o(C.url,32,32),alt:C.altText||"",radius:"sm"})},C.url))})]})})}const j9=3;function Die({modalTitle:e,images:t=[],classNames:r}){const[n,o]=_i(),{openModal:i}=ur(),s=y.useMemo(()=>t.filter(x=>!!x.url),[t]),{activeIndex:a,scrollContainerRef:l,imageRefs:c,scrollToImage:d}=O9(s),{width:p}=ml();if(!s||s.length===0)return null;const h=Math.max(0,s.length-j9),b=p>=1024?360:240;return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:I("relative",r?.base),children:[m.jsx("div",{ref:l,className:"flex flex-1 overflow-x-auto snap-x snap-mandatory scrollbar-hide",style:{scrollbarWidth:"none"},children:s.map((x,v)=>m.jsx("div",{ref:S=>{c.current[v]=S},className:"shrink-0 w-full h-full flex justify-center snap-center",children:m.jsx(nn,{loading:"lazy",src:n(x.url,b,b),srcSet:o(x.url,b,b),alt:x.altText||"",width:b,height:b,classNames:{wrapper:I("mx-auto flex shrink-0",r?.imageWrapper),img:I("aspect-square drop-shadow-lg",r?.image)}})},x.url))}),m.jsxs("div",{className:"absolute bottom-0 right-0 z-10 flex flex-col gap-2 justify-end items-center",children:[s.slice(0,j9).map((x,v)=>m.jsx(Ps,{onPress:()=>d(v),isPressable:!0,disableRipple:!0,disableAnimation:!0,className:I("size-12 lg:size-16 p-2 bg-transparent",a===v&&"ring-2 ring-primary",r?.thumbnailCard),radius:"sm",shadow:"none",children:m.jsx(nn,{className:I("size-8 lg:size-12",r?.thumbnailImage),loading:"lazy",src:n(x.url,48,48),srcSet:o(x.url,48,48),alt:x.altText||"",radius:"sm"})},x.url)),h>0&&m.jsx(Ps,{className:I("size-8 lg:size-12 flex items-center justify-center bg-foreground text-sm font-medium text-white",r?.counter),onPress:()=>i("carousel"),isPressable:!0,disableRipple:!0,disableAnimation:!0,radius:"sm",shadow:"none",children:m.jsxs("span",{children:["+",h]})})]})]}),m.jsx(Nie,{title:e,images:s,classNames:r?.modal})]})}function Mie(){const{productHeader:e}=Mt(),{propositionKey:t,proposition:r}=qa(),[n,o]=_i(),{width:i}=ml();if(!r)return null;const s=i<768,a=s?70:140,l=s?35:70,c=r.tags.find(g=>g.type==="internet"),d=M9(r.product?.productVersions.filter(g=>g.providers?.some(b=>b?.slug===r.provider.slug))),p=t.productVersionId(),h=d.find(g=>g.id===p);return m.jsxs(Ps,{disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:I("py-6 px-4 lg:p-6 flex flex-col gap-2 justify-center items-center",e?.base),children:[r.productType==="smartphone"&&h?m.jsx(Die,{modalTitle:h.fullName??"",images:h.media.carousel,classNames:e?.carousel}):m.jsx(nn,{src:n(r.provider.imageUrl,300,150),srcSet:o(r.provider.imageUrl,300,150),alt:r.provider.name,width:300,height:150,classNames:{wrapper:I("mx-auto flex shrink-0",e?.providerImage?.wrapper),img:I("aspect-2/1",e?.providerImage?.img)}}),h&&m.jsx(l9,{productStockStatus:h.stock.status,classNames:e?.productStockStatus}),m.jsx(u1,{productTitle:r.product?.fullName,propositionTitle:r.productType==="fixed"?`${r.content.dataSpeedDown/1e3} ${Pm("format.megabitPerSecond")}`:Gn(r.content.data,Pm("format.gigabyte")),propositionSubtitle:r.productType==="fixed"?c?Pm(`fixedInternet.${c.slug}`,{defaultValue:c.label}):"":su(r.content),imageUrl:r.provider.imageUrl,imageAlt:r.provider.name,hasProduct:r.productType==="smartphone",imageWidth:a,imageHeight:l,classNames:{...e?.propositionHeader,base:I("w-full",e?.propositionHeader?.base)}}),m.jsx("div",{className:"w-full",children:m.jsx(ah,{promotions:h9(r.specialPromotions).map(g=>g.shortDescription).filter(g=>!!g),urgentText:qs(r.specialPromotions),classNames:e?.promotionList})})]})}function Oie(){const{propositionKey:e,proposition:t,setProductVersion:r}=qa(),{versionSelect:n}=Mt();if(!t)return null;const o=M9(t.product?.productVersions.filter(a=>a.providers?.some(l=>l?.slug===t.provider.slug))),i=e.productVersionId(),s=o.find(a=>a.id===i);return m.jsx(FA,{disabled:!t.product,versions:o,distinctProperties:t.product?.distinctProperties,selectedDistinctProperties:s?.distinctProperties,selectedPhone:t.product,onSelectionChange:(a,l)=>r(l),classNames:n})}function jie({clickOutTarget:e="cart",onReturnClick:t,addClickoutSearchParams:r}){const{t:n}=at(),{isLoading:o,error:i,proposition:s,propositionSelector:a}=qa(),{buildClickOutUrl:l}=Oc({addClickoutSearchParams:r}),c=Mt(),d=y.useRef(null),[p,h]=y.useState(null),{openModal:g}=ur(),{onAction:b}=ja();if(!s||!a){if(!o)throw new Error(i??"Proposition or proposition selector not found");return m.jsxs("div",{children:[t&&m.jsx(m1,{as:"div",underline:"hover",className:"cursor-pointer",onPress:t,children:n("propositionSelector.return")}),m.jsxs("div",{className:"w-full grid grid-cols-1 lg:grid-cols-12 gap-6 mt-3 pointer-events-none",children:[m.jsxs("div",{className:"space-y-8 lg:col-span-7",children:[m.jsx(Fo,{className:"w-full h-[250px] lg:h-[300px] rounded-large"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:n("propositionSelector.benefitsTitle")}),m.jsx(Qp,{showTitle:!1,showProfileBanner:!0})]}),m.jsxs("div",{className:"space-y-8",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:n("propositionSelector.bundleSelectorTitle")}),m.jsxs("div",{className:"w-full flex flex-row gap-2",children:[m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"}),m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"}),m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"}),m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"}),m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"})]})]})]}),m.jsx(Fo,{className:"w-full h-[250px] md:h-[300px] rounded-large lg:col-span-5"})]})]})}const x=()=>{l("/api/partner-cart",v=>{v.set("proposition-key",s.key),v.set("product-type",s.productType),v.set("redirect-pathname",e==="cart"?"/winkelwagen":"/bestellen")}).then(v=>{b({type:"add_to_cart",proposition:s}),window.open(v,"_blank")})};return m.jsxs("div",{className:c?.base,children:[t&&m.jsx(m1,{as:"div",underline:"hover",className:"cursor-pointer",onPress:t,children:n("propositionSelector.return")}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 mt-3",children:[m.jsxs("div",{className:"space-y-8 lg:col-span-7",children:[m.jsx(Mie,{}),s.productType==="smartphone"&&m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:n("propositionSelector.productVersionTitle")}),m.jsx(Oie,{})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:n("propositionSelector.benefitsTitle")}),m.jsx(Qp,{isFixed:s.productType==="fixed",showTitle:!1,showProfileBanner:!0}),m.jsx(ah,{promotions:s.modificationPromotions,classNames:c?.promotionList})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:n("propositionSelector.bundleSelectorTitle")}),m.jsx(d9,{propositionSpecifications:Us(s),classNames:c?.propositionSpecifications}),m.jsx(m1,{as:"button",underline:"hover",className:"cursor-pointer",onPress:()=>{b({type:"details_viewed",proposition:s,tab:"general"}),h({proposition:s,tab:"general"}),g("details")},children:"Meer bundelinformatie"})]}),m.jsx(Aie,{}),s.productType==="smartphone"&&a.handsetCreditKeys.length>0&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:n("propositionSelector.handsetCreditTitle")}),m.jsx(Iie,{})]}),m.jsx(i9,{proposition:s})]})]}),m.jsxs(Ps,{disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:I("p-6 h-fit flex flex-col gap-4 lg:mb-0 lg:col-span-5 lg:sticky lg:top-6",c?.sidebarCard?.base),ref:d,children:[m.jsx("h2",{className:I("text-2xl font-bold text-foreground",c?.sidebarCard?.title),children:n("propositionSelector.totalCostsOverviewTitle")}),m.jsx(cI,{proposition:s,classNames:{...c?.costOverview,monthlySection:I("mb-0",c?.costOverview?.monthlySection)}}),m.jsx($r,{className:I("font-medium gap-1 rounded-full",c?.sidebarCard?.ctaButton),color:"secondary",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,endContent:m.jsx(ca,{size:16}),onPress:x,children:n("propositionSelector.cta")}),m.jsx($ie,{proposition:s})]}),m.jsx(Hoe,{triggerRef:d,monthlyFeePromotionText:Ws(s.monthlyFees,s.baseMonthlyFee,s.lifetimeMonthlyFee),monthlyFee:Ve(s.monthlyFees[0]?.fee,{dashed:!0}),productPrice:s.productType==="smartphone"?Ve(s.price,{dashed:!0}):void 0,onClick:x})]}),m.jsx(Mc,{proposition:p?.proposition,defaultTab:p?.tab,buildClickOutUrl:l}),m.jsx(C_,{})]})}function Lie({propositionKey:e,classNames:t,initialProfile:r,onProfileChange:n,onPropositionKeyChange:o,onError:i,onAction:s,...a}){return m.jsx(P_,{onError:i,children:m.jsx(Pk,{classNames:t,children:m.jsx(T_,{onAction:s,children:m.jsx(nI,{initialProfile:r,onProfileChange:n,children:m.jsx(vie,{propositionKey:e,onPropositionKeyChange:o,children:m.jsx(Tk,{children:m.jsx(jie,{...a})})})})})})})}const Fie={odido:"Odido",kpn:"KPN",vodafone:"Vodafone",ben:"Ben",hollandsnieuwe:"hollandsnieuwe",lebara:"Lebara",youfone:"Youfone",simyo:"Simyo",delta:"Delta",caiway:"Caiway",budget:"Budget Mobiel","budget-alles-in-1":"Budget Alles-in-1","budget-internet":"Budget Internet","50plusmobiel":"50+ Mobiel",ziggo:"Ziggo",other:"Andere / geen provider","other/moving":"Geen i.v.m. verhuizing"};var Bie=yK;const Fc=Object.freeze(Object.defineProperty({__proto__:null,default:Bie},Symbol.toStringTag,{value:"Module"}));Io.ElementsRoot=RO,Io.PROVIDERS=Fie,Io.ProductResults=Voe,Io.PropositionSelector=Lie,Object.defineProperty(Io,Symbol.toStringTag,{value:"Module"})}));
1610
+ }`;var gt=G7(function(){return Wt(G,Re+"return "+Ce).apply(r,J)});if(gt.source=Ce,gw(gt))throw gt;return gt}function Rde(u){return qt(u).toLowerCase()}function Wde(u){return qt(u).toUpperCase()}function Ude(u,f,w){if(u=qt(u),u&&(w||f===r))return rD(u);if(!u||!(f=eo(f)))return u;var $=Zo(u),z=Zo(f),G=nD($,z),J=oD($,z)+1;return sa($,G,J).join("")}function Hde(u,f,w){if(u=qt(u),u&&(w||f===r))return u.slice(0,sD(u)+1);if(!u||!(f=eo(f)))return u;var $=Zo(u),z=oD($,Zo(f))+1;return sa($,0,z).join("")}function qde(u,f,w){if(u=qt(u),u&&(w||f===r))return u.replace(qo,"");if(!u||!(f=eo(f)))return u;var $=Zo(u),z=nD($,Zo(f));return sa($,z).join("")}function Gde(u,f){var w=K,$=W;if(kr(f)){var z="separator"in f?f.separator:z;w="length"in f?pt(f.length):w,$="omission"in f?eo(f.omission):$}u=qt(u);var G=u.length;if(hu(u)){var J=Zo(u);G=J.length}if(w>=G)return u;var ee=w-mu($);if(ee<1)return $;var se=J?sa(J,0,ee).join(""):u.slice(0,ee);if(z===r)return se+$;if(J&&(ee+=se.length-ee),bw(z)){if(u.slice(ee).search(z)){var he,me=se;for(z.global||(z=D1(z.source,qt(lu.exec(z))+"g")),z.lastIndex=0;he=z.exec(me);)var Ce=he.index;se=se.slice(0,Ce===r?ee:Ce)}}else if(u.indexOf(eo(z),ee)!=ee){var De=se.lastIndexOf(z);De>-1&&(se=se.slice(0,De))}return se+$}function Zde(u){return u=qt(u),u&&Xr.test(u)?u.replace(Qt,Pse):u}var Yde=Cu(function(u,f,w){return u+(w?" ":"")+f.toUpperCase()}),ww=GD("toUpperCase");function q7(u,f,w){return u=qt(u),f=w?r:f,f===r?xse(u)?Ase(u):dse(u):u.match(f)||[]}var G7=St(function(u,f){try{return Jn(u,r,f)}catch(w){return gw(w)?w:new it(w)}}),Jde=Ji(function(u,f){return Xn(f,function(w){w=Jo(w),bi(u,w,hw(u[w],u))}),u});function Xde(u){var f=u==null?0:u.length,w=qe();return u=f?gr(u,function($){if(typeof $[1]!="function")throw new Po(s);return[w($[0]),$[1]]}):[],St(function($){for(var z=-1;++z<f;){var G=u[z];if(Jn(G[0],this,$))return Jn(G[1],this,$)}})}function Qde(u){return Pae(To(u,h))}function Cw(u){return function(){return u}}function efe(u,f){return u==null||u!==u?f:u}var tfe=YD(),rfe=YD(!0);function Kn(u){return u}function Sw(u){return ED(typeof u=="function"?u:To(u,h))}function nfe(u){return AD(To(u,h))}function ofe(u,f){return $D(u,To(f,h))}var ife=St(function(u,f){return function(w){return Qc(w,u,f)}}),sfe=St(function(u,f){return function(w){return Qc(u,w,f)}});function kw(u,f,w){var $=Qr(f),z=Rh(f,$);w==null&&!(kr(f)&&(z.length||!$.length))&&(w=f,f=u,u=this,z=Rh(f,Qr(f)));var G=!(kr(w)&&"chain"in w)||!!w.chain,J=Qi(u);return Xn(z,function(ee){var se=f[ee];u[ee]=se,J&&(u.prototype[ee]=function(){var he=this.__chain__;if(G||he){var me=u(this.__wrapped__),Ce=me.__actions__=Fn(this.__actions__);return Ce.push({func:se,args:arguments,thisArg:u}),me.__chain__=he,me}return se.apply(u,ea([this.value()],arguments))})}),u}function afe(){return sn._===this&&(sn._=Mse),this}function Pw(){}function lfe(u){return u=pt(u),St(function(f){return _D(f,u)})}var ufe=tw(gr),cfe=tw(J9),dfe=tw(E1);function Z7(u){return lw(u)?T1(Jo(u)):Vae(u)}function ffe(u){return function(f){return u==null?r:il(u,f)}}var pfe=XD(),hfe=XD(!0);function Ew(){return[]}function Tw(){return!1}function mfe(){return{}}function gfe(){return""}function bfe(){return!0}function vfe(u,f){if(u=pt(u),u<1||u>Y)return[];var w=A,$=pn(u,A);f=qe(f),u-=A;for(var z=_1($,f);++w<u;)f(w);return z}function yfe(u){return ct(u)?gr(u,Jo):to(u)?[u]:Fn(h7(qt(u)))}function xfe(u){var f=++Nse;return qt(u)+f}var wfe=Zh(function(u,f){return u+f},0),Cfe=rw("ceil"),Sfe=Zh(function(u,f){return u/f},1),kfe=rw("floor");function Pfe(u){return u&&u.length?Vh(u,Kn,K1):r}function Efe(u,f){return u&&u.length?Vh(u,qe(f,2),K1):r}function Tfe(u){return eD(u,Kn)}function Afe(u,f){return eD(u,qe(f,2))}function $fe(u){return u&&u.length?Vh(u,Kn,U1):r}function _fe(u,f){return u&&u.length?Vh(u,qe(f,2),U1):r}var Ife=Zh(function(u,f){return u*f},1),Nfe=rw("round"),Dfe=Zh(function(u,f){return u-f},0);function Mfe(u){return u&&u.length?$1(u,Kn):0}function Ofe(u,f){return u&&u.length?$1(u,qe(f,2)):0}return H.after=oce,H.ary=P7,H.assign=Uce,H.assignIn=B7,H.assignInWith=z7,H.assignWith=vw,H.at=Hce,H.before=E7,H.bind=hw,H.bindAll=Jde,H.bindKey=T7,H.castArray=gce,H.chain=C7,H.chunk=Ple,H.compact=Ele,H.concat=Tle,H.cond=Xde,H.conforms=Qde,H.constant=Cw,H.countBy=Oue,H.create=qce,H.curry=A7,H.curryRight=$7,H.debounce=_7,H.defaults=Gce,H.defaultsDeep=Zce,H.defer=ice,H.delay=sce,H.difference=Ale,H.differenceBy=$le,H.differenceWith=_le,H.drop=Ile,H.dropRight=Nle,H.dropRightWhile=Dle,H.dropWhile=Mle,H.fill=Ole,H.filter=Lue,H.flatMap=zue,H.flatMapDeep=Kue,H.flatMapDepth=Vue,H.flatten=v7,H.flattenDeep=jle,H.flattenDepth=Lle,H.flip=ace,H.flow=tfe,H.flowRight=rfe,H.fromPairs=Fle,H.functions=rde,H.functionsIn=nde,H.groupBy=Rue,H.initial=zle,H.intersection=Kle,H.intersectionBy=Vle,H.intersectionWith=Rle,H.invert=ide,H.invertBy=sde,H.invokeMap=Uue,H.iteratee=Sw,H.keyBy=Hue,H.keys=Qr,H.keysIn=zn,H.map=rm,H.mapKeys=lde,H.mapValues=ude,H.matches=nfe,H.matchesProperty=ofe,H.memoize=om,H.merge=cde,H.mergeWith=K7,H.method=ife,H.methodOf=sfe,H.mixin=kw,H.negate=im,H.nthArg=lfe,H.omit=dde,H.omitBy=fde,H.once=lce,H.orderBy=que,H.over=ufe,H.overArgs=uce,H.overEvery=cfe,H.overSome=dfe,H.partial=mw,H.partialRight=I7,H.partition=Gue,H.pick=pde,H.pickBy=V7,H.property=Z7,H.propertyOf=ffe,H.pull=qle,H.pullAll=x7,H.pullAllBy=Gle,H.pullAllWith=Zle,H.pullAt=Yle,H.range=pfe,H.rangeRight=hfe,H.rearg=cce,H.reject=Jue,H.remove=Jle,H.rest=dce,H.reverse=fw,H.sampleSize=Que,H.set=mde,H.setWith=gde,H.shuffle=ece,H.slice=Xle,H.sortBy=nce,H.sortedUniq=iue,H.sortedUniqBy=sue,H.split=Bde,H.spread=fce,H.tail=aue,H.take=lue,H.takeRight=uue,H.takeRightWhile=cue,H.takeWhile=due,H.tap=Eue,H.throttle=pce,H.thru=tm,H.toArray=j7,H.toPairs=R7,H.toPairsIn=W7,H.toPath=yfe,H.toPlainObject=F7,H.transform=bde,H.unary=hce,H.union=fue,H.unionBy=pue,H.unionWith=hue,H.uniq=mue,H.uniqBy=gue,H.uniqWith=bue,H.unset=vde,H.unzip=pw,H.unzipWith=w7,H.update=yde,H.updateWith=xde,H.values=Pu,H.valuesIn=wde,H.without=vue,H.words=q7,H.wrap=mce,H.xor=yue,H.xorBy=xue,H.xorWith=wue,H.zip=Cue,H.zipObject=Sue,H.zipObjectDeep=kue,H.zipWith=Pue,H.entries=R7,H.entriesIn=W7,H.extend=B7,H.extendWith=z7,kw(H,H),H.add=wfe,H.attempt=G7,H.camelCase=Pde,H.capitalize=U7,H.ceil=Cfe,H.clamp=Cde,H.clone=bce,H.cloneDeep=yce,H.cloneDeepWith=xce,H.cloneWith=vce,H.conformsTo=wce,H.deburr=H7,H.defaultTo=efe,H.divide=Sfe,H.endsWith=Ede,H.eq=Xo,H.escape=Tde,H.escapeRegExp=Ade,H.every=jue,H.find=Fue,H.findIndex=g7,H.findKey=Yce,H.findLast=Bue,H.findLastIndex=b7,H.findLastKey=Jce,H.floor=kfe,H.forEach=S7,H.forEachRight=k7,H.forIn=Xce,H.forInRight=Qce,H.forOwn=ede,H.forOwnRight=tde,H.get=yw,H.gt=Cce,H.gte=Sce,H.has=ode,H.hasIn=xw,H.head=y7,H.identity=Kn,H.includes=Wue,H.indexOf=Ble,H.inRange=Sde,H.invoke=ade,H.isArguments=ll,H.isArray=ct,H.isArrayBuffer=kce,H.isArrayLike=Bn,H.isArrayLikeObject=Nr,H.isBoolean=Pce,H.isBuffer=aa,H.isDate=Ece,H.isElement=Tce,H.isEmpty=Ace,H.isEqual=$ce,H.isEqualWith=_ce,H.isError=gw,H.isFinite=Ice,H.isFunction=Qi,H.isInteger=N7,H.isLength=sm,H.isMap=D7,H.isMatch=Nce,H.isMatchWith=Dce,H.isNaN=Mce,H.isNative=Oce,H.isNil=Lce,H.isNull=jce,H.isNumber=M7,H.isObject=kr,H.isObjectLike=Tr,H.isPlainObject=id,H.isRegExp=bw,H.isSafeInteger=Fce,H.isSet=O7,H.isString=am,H.isSymbol=to,H.isTypedArray=ku,H.isUndefined=Bce,H.isWeakMap=zce,H.isWeakSet=Kce,H.join=Wle,H.kebabCase=$de,H.last=$o,H.lastIndexOf=Ule,H.lowerCase=_de,H.lowerFirst=Ide,H.lt=Vce,H.lte=Rce,H.max=Pfe,H.maxBy=Efe,H.mean=Tfe,H.meanBy=Afe,H.min=$fe,H.minBy=_fe,H.stubArray=Ew,H.stubFalse=Tw,H.stubObject=mfe,H.stubString=gfe,H.stubTrue=bfe,H.multiply=Ife,H.nth=Hle,H.noConflict=afe,H.noop=Pw,H.now=nm,H.pad=Nde,H.padEnd=Dde,H.padStart=Mde,H.parseInt=Ode,H.random=kde,H.reduce=Zue,H.reduceRight=Yue,H.repeat=jde,H.replace=Lde,H.result=hde,H.round=Nfe,H.runInContext=ie,H.sample=Xue,H.size=tce,H.snakeCase=Fde,H.some=rce,H.sortedIndex=Qle,H.sortedIndexBy=eue,H.sortedIndexOf=tue,H.sortedLastIndex=rue,H.sortedLastIndexBy=nue,H.sortedLastIndexOf=oue,H.startCase=zde,H.startsWith=Kde,H.subtract=Dfe,H.sum=Mfe,H.sumBy=Ofe,H.template=Vde,H.times=vfe,H.toFinite=es,H.toInteger=pt,H.toLength=L7,H.toLower=Rde,H.toNumber=_o,H.toSafeInteger=Wce,H.toString=qt,H.toUpper=Wde,H.trim=Ude,H.trimEnd=Hde,H.trimStart=qde,H.truncate=Gde,H.unescape=Zde,H.uniqueId=xfe,H.upperCase=Yde,H.upperFirst=ww,H.each=S7,H.eachRight=k7,H.first=y7,kw(H,(function(){var u={};return vi(H,function(f,w){Ht.call(H.prototype,w)||(u[w]=f)}),u})(),{chain:!1}),H.VERSION=n,Xn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){H[u].placeholder=H}),Xn(["drop","take"],function(u,f){It.prototype[u]=function(w){w=w===r?1:Yr(pt(w),0);var $=this.__filtered__&&!f?new It(this):this.clone();return $.__filtered__?$.__takeCount__=pn(w,$.__takeCount__):$.__views__.push({size:pn(w,A),type:u+($.__dir__<0?"Right":"")}),$},It.prototype[u+"Right"]=function(w){return this.reverse()[u](w).reverse()}}),Xn(["filter","map","takeWhile"],function(u,f){var w=f+1,$=w==B||w==R;It.prototype[u]=function(z){var G=this.clone();return G.__iteratees__.push({iteratee:qe(z,3),type:w}),G.__filtered__=G.__filtered__||$,G}}),Xn(["head","last"],function(u,f){var w="take"+(f?"Right":"");It.prototype[u]=function(){return this[w](1).value()[0]}}),Xn(["initial","tail"],function(u,f){var w="drop"+(f?"":"Right");It.prototype[u]=function(){return this.__filtered__?new It(this):this[w](1)}}),It.prototype.compact=function(){return this.filter(Kn)},It.prototype.find=function(u){return this.filter(u).head()},It.prototype.findLast=function(u){return this.reverse().find(u)},It.prototype.invokeMap=St(function(u,f){return typeof u=="function"?new It(this):this.map(function(w){return Qc(w,u,f)})}),It.prototype.reject=function(u){return this.filter(im(qe(u)))},It.prototype.slice=function(u,f){u=pt(u);var w=this;return w.__filtered__&&(u>0||f<0)?new It(w):(u<0?w=w.takeRight(-u):u&&(w=w.drop(u)),f!==r&&(f=pt(f),w=f<0?w.dropRight(-f):w.take(f-u)),w)},It.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},It.prototype.toArray=function(){return this.take(A)},vi(It.prototype,function(u,f){var w=/^(?:filter|find|map|reject)|While$/.test(f),$=/^(?:head|last)$/.test(f),z=H[$?"take"+(f=="last"?"Right":""):f],G=$||/^find/.test(f);z&&(H.prototype[f]=function(){var J=this.__wrapped__,ee=$?[1]:arguments,se=J instanceof It,he=ee[0],me=se||ct(J),Ce=function(At){var Dt=z.apply(H,ea([At],ee));return $&&De?Dt[0]:Dt};me&&w&&typeof he=="function"&&he.length!=1&&(se=me=!1);var De=this.__chain__,Re=!!this.__actions__.length,Ge=G&&!De,gt=se&&!Re;if(!G&&me){J=gt?J:new It(this);var He=u.apply(J,ee);return He.__actions__.push({func:tm,args:[Ce],thisArg:r}),new Eo(He,De)}return Ge&&gt?u.apply(this,ee):(He=this.thru(Ce),Ge?$?He.value()[0]:He.value():He)})}),Xn(["pop","push","shift","sort","splice","unshift"],function(u){var f=Th[u],w=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",$=/^(?:pop|shift)$/.test(u);H.prototype[u]=function(){var z=arguments;if($&&!this.__chain__){var G=this.value();return f.apply(ct(G)?G:[],z)}return this[w](function(J){return f.apply(ct(J)?J:[],z)})}}),vi(It.prototype,function(u,f){var w=H[f];if(w){var $=w.name+"";Ht.call(yu,$)||(yu[$]=[]),yu[$].push({name:f,func:w})}}),yu[Gh(r,C).name]=[{name:"wrapper",func:r}],It.prototype.clone=Yse,It.prototype.reverse=Jse,It.prototype.value=Xse,H.prototype.at=Tue,H.prototype.chain=Aue,H.prototype.commit=$ue,H.prototype.next=_ue,H.prototype.plant=Nue,H.prototype.reverse=Due,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=Mue,H.prototype.first=H.prototype.head,Hc&&(H.prototype[Hc]=Iue),H}),gu=$se();el?((el.exports=gu)._=gu,C1._=gu):sn._=gu}).call(wie)})(Lc,Lc.exports)),Lc.exports}var I9=Cie();function Sie({monthlyFees:e,baseMonthlyFee:t,lifetimeMonthlyFee:r}){const n=I9.orderBy(I9.uniq(e),c=>c,"desc"),o=e.filter(c=>c===e[0]).length,i=n.length>1||n[0]!==t,s=t>r,a=Ve(t,{symbol:"",dashed:!0}),l=Ve(s?r:n[n.length-1],{symbol:"",dashed:!0});return{normalPrice:a,promotionPrice:i||s?l:void 0,text:i&&!s?Ee.t("format.firstMonth",{count:o}):null}}function N9({bundleSet:e,oneLiner:t}){const{t:r}=at(),n=Sie(e),o=!!n.promotionPrice;return t&&o?m.jsxs("span",{className:"text-sm text-right whitespace-nowrap text-success",children:[n.text," ",r("format.for")," ",n.promotionPrice]}):t&&!o?m.jsxs("span",{className:"text-sm text-right whitespace-nowrap text-foreground-500",children:[r("format.startingFrom")," ",n.normalPrice]}):!o&&!n.normalPrice?null:m.jsxs("div",{children:[m.jsxs("div",{className:"flex flex-row justify-end items-baseline gap-2",children:[m.jsx("span",{className:I("text-base text-foreground whitespace-nowrap",o&&"line-through text-foreground-400"),children:n.normalPrice}),n.promotionPrice&&m.jsx("span",{className:"text-base font-semibold whitespace-nowrap text-success",children:n.promotionPrice})]}),n.text&&m.jsx("span",{className:"text-sm text-right whitespace-nowrap text-success",children:n.text})]})}function D9({bundleSets:e,selectedUnitKeys:t,hasPrice:r,onChange:n,classNames:o}){const{openModal:i}=ur();return m.jsx(yie,{classNames:o,options:e.map(s=>{const a=A9(s),{title:l,subtitle:c}=$9(s.name),d=r||s.baseMonthlyFee!==s.lifetimeMonthlyFee;return{value:s.unitKey,label:m.jsxs("div",{className:"flex flex-row justify-between items-center",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[a&&m.jsx("span",{className:"text-base text-foreground-400 line-through",children:a}),m.jsx("span",{className:"text-base font-medium text-foreground",children:l}),s.infoUrl&&m.jsx(Dd,{size:16,className:"shrink-0 text-foreground-500 relative z-10",onClick:p=>{p.stopPropagation(),i(`content-${s.infoUrl}`)}})]}),m.jsxs("div",{className:"flex flex-col gap-2 empty:hidden",children:[c&&m.jsx("span",{className:"text-sm text-foreground-500",children:c}),s.usps.length>0&&m.jsx("ul",{children:s.usps.map(p=>m.jsxs("li",{className:"text-sm text-foreground-500 flex items-center gap-1",children:[m.jsx(Lm,{size:16,className:"shrink-0 stroke-success-600"}),p]},p))})]})]}),d&&m.jsx(N9,{bundleSet:s})]})}}),value:t,onValueChange:s=>{const a=s.filter(c=>!t.includes(c))[0],l=t.filter(c=>!s.includes(c))[0];n(a||l)}})}const kie=6,Pie=4;function Eie({bundleTypeSet:e}){const{t}=at(),{propositionKey:r,toggleBundleSet:n}=qa(),{openModal:o}=ur(),{bundleModal:i,bundleSelector:s}=Mt(),a=e.bundleTypes.includes("channel")&&e.bundleSets.length>kie,l=r.unitKeys.filter(p=>p.includes(e.unitKey)),c=a?e.bundleSets.filter((p,h)=>l.includes(p.unitKey)||h<Pie):e.bundleSets,d=!e.bundleSets.every(p=>p.monthlyFees[p.monthlyFees.length-1]===0);return m.jsxs(m.Fragment,{children:[m.jsx(D9,{bundleSets:c,selectedUnitKeys:l,hasPrice:d,onChange:p=>n(p,e),classNames:s?.bundleTypeSetCheckboxGroup}),a&&m.jsxs(m.Fragment,{children:[m.jsx($r,{className:I("font-medium text-primary-600 border-primary-600",s?.showMoreButton),onPress:()=>o(`bundle-type-set-${e.unitKey}`),color:"primary",variant:"flat",size:"md",radius:"full",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:t("propositionSelector.showMore")}),m.jsx(xie,{title:e.name,unitKey:e.unitKey,classNames:i,children:m.jsx(D9,{bundleSets:e.bundleSets,selectedUnitKeys:l,hasPrice:d,onChange:p=>n(p,e),classNames:s?.bundleTypeSetCheckboxGroup})})]})]})}function Tie({bundleTypeSet:e}){const{t}=at(),{propositionKey:r,toggleBundleSet:n}=qa(),{bundleSelector:o}=Mt(),{openModal:i}=ur(),s=e.bundleSets.find(c=>r.unitKeys.some(d=>d.includes(c.unitKey)))?.unitKey,a=!e.bundleSets.every(c=>c.monthlyFees[c.monthlyFees.length-1]===0),l={value:"none",label:m.jsx("span",{className:"text-base font-medium text-foreground",children:t("propositionSelector.none")})};return m.jsx(T9,{options:[...e.required?[]:[l],...e.bundleSets.map(c=>{const d=A9(c),{title:p,subtitle:h}=$9(c.name),g=a||c.baseMonthlyFee!==c.lifetimeMonthlyFee;return{value:c.unitKey,label:m.jsxs("div",{className:"flex flex-row justify-between",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[d&&m.jsx("span",{className:"text-base text-foreground-400 line-through",children:d}),m.jsx("span",{className:"text-base font-medium text-foreground",children:p}),c.infoUrl&&m.jsx(Dd,{size:16,className:"shrink-0 text-foreground-500 relative z-10",onClick:b=>{b.preventDefault(),b.stopPropagation(),i(`content-${c.infoUrl}`)}})]}),m.jsxs("div",{className:"flex flex-col gap-2 empty:hidden",children:[h&&m.jsx("span",{className:"text-sm text-foreground-500",children:h}),c.usps.length>0&&m.jsx("ul",{children:c.usps.map(b=>m.jsxs("li",{className:"text-sm text-foreground-500 flex items-center gap-1",children:[m.jsx(Lm,{size:16,className:"shrink-0 stroke-success-600"}),b]},b))}),e.bundleTypes.includes("tv")&&m.jsxs("span",{className:"text-sm text-foreground-500 flex items-center gap-1 whitespace-nowrap",children:[m.jsx(a4,{size:16,className:"shrink-0"}),c.content.channels.length,c.content.hdChannels.length>0&&` (${c.content.hdChannels.length} HD)`]}),e.bundleTypes.includes("internet")&&m.jsxs("span",{className:"text-sm text-foreground-500 flex items-center gap-1 whitespace-nowrap",children:[m.jsx(i4,{size:16,className:"shrink-0"}),c.content.dataSpeedDown/1e3," /"," ",c.content.dataSpeedUp/1e3," ",t("format.megabitPerSecond")]})]})]}),g&&m.jsx(N9,{bundleSet:c})]})}})],value:s??"none",onValueChange:c=>n(s&&c==="none"?s:c,e),classNames:o?.bundleTypeSetRadioGroup})}function Aie(){const{propositionKey:e,propositionSelector:t,setPlanVariant:r}=qa(),{t:n}=at(),{bundleSelector:o}=Mt(),{openModal:i}=ur();return t?m.jsxs("div",{className:I("space-y-8",o?.base),children:[m.jsxs("div",{className:I("space-y-2",o?.contractTermGroup),children:[m.jsx("h3",{className:I("text-base font-bold text-foreground",o?.contractTermLabel),children:n("propositionSelector.contractTerm")}),m.jsx(T9,{options:t.planVariants.map(s=>({value:s.unitKey,label:m.jsx("span",{className:"text-base font-medium text-foreground",children:Dc(s.contractTerm)})})),value:e.planVariant(),onValueChange:s=>r(s),orientation:"horizontal",classNames:o?.contractTermRadioGroup})]}),t.bundleTypeSets.map(s=>s.bundleSets.length===0?null:m.jsxs("div",{className:I("space-y-2",o?.bundleTypeSetGroup),children:[m.jsxs("h3",{className:I("text-base font-bold text-foreground flex items-center gap-1",o?.bundleTypeSetLabel),children:[m.jsx("span",{children:s.name}),s.infoUrl&&m.jsx(Dd,{size:16,className:"shrink-0 text-foreground-500 cursor-pointer",onClick:()=>i(`content-${s.infoUrl}`)})]}),s.multiSelect?m.jsx(Eie,{bundleTypeSet:s}):m.jsx(Tie,{bundleTypeSet:s})]},s.unitKey))]}):null}function $ie({proposition:e}){const{extraCosts:t}=Mt(),{t:r}=at(),{productType:n,activationFee:o,installationFee:i,provider:s,planVariant:a}=e,l=n==="sim-only"&&a.contractType==="retention",c=r(n==="smartphone"?"propositionSelector.excludingShipping":"propositionSelector.freeShipping");return m.jsxs("div",{className:I("text-center text-sm text-foreground-400",t),children:[m.jsxs("span",{children:[!l&&c?`${c} | `:"",r("propositionSelector.includingVat")]}),m.jsx("br",{}),m.jsxs("span",{children:[s.name," ",r("propositionSelector.activationFee")," ",Ve(o,{symbol:"",dashed:!0})]}),n==="fixed"&&m.jsxs(m.Fragment,{children:[m.jsx("br",{}),m.jsxs("span",{children:[s.name," ",r("propositionSelector.installationFee")," ",Ve(i,{symbol:"",dashed:!0})]})]})]})}const _ie=250;function Iie(){const{t:e}=at(),{handsetCreditSelector:t}=Mt(),{propositionKey:r,propositionSelector:n,setHandsetCredit:o}=qa(),i=r.handsetCredit(),[s,a]=y.useState(i),l=jf(s,700);if(y.useEffect(()=>{a(i)},[i]),Oi(()=>{l&&o(l)},[l]),!n||n.handsetCreditKeys.length===0)return null;const c=b1(n.handsetCreditKeys,n.basePrice);if(c.length===0)return null;const d=c.find(({unitKey:v})=>v===s)??c[0],p=c.indexOf(d),h=[...c].reverse().find(({creditFee:v})=>v+n.creditFee<=_ie)?.monthlyFee||0,g=c[c.length-1],b=g.price>0&&c[0].price!==g.creditFee,x=h>0&&g.monthlyFee>0?h/g.monthlyFee:0;return m.jsxs("div",{className:I("space-y-4",t?.base),children:[b&&m.jsx("p",{className:I("text-sm text-foreground-500",t?.handsetPriceInfo),children:e("handsetCreditSelector.handsetPriceInfo",{price:Ve(n.basePrice,{symbol:"€"})})}),m.jsxs("div",{className:I("flex justify-between items-center",t?.priceRow),children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:I("text-sm font-semibold",t?.oneTimeLabel),children:e("handsetCreditSelector.oneTime")}),m.jsx("span",{className:I("text-sm",t?.oneTimeValue),children:Ve(Math.max(0,d.price))})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:I("text-sm font-semibold",t?.monthlyLabel),children:e("handsetCreditSelector.monthly")}),m.jsx("span",{className:I("text-sm",t?.monthlyValue),children:Ve(d.monthlyFee)})]})]}),m.jsxs("div",{className:I("flex items-center gap-3",t?.sliderRow),children:[m.jsx($r,{isIconOnly:!0,size:"sm",variant:"bordered",radius:"md",isDisabled:p<=0,onPress:()=>{if(p<=0)return;const v=c[p-1].unitKey;a(v)},"aria-label":e("handsetCreditSelector.decrease"),className:t?.decrementButton,endContent:m.jsx("span",{className:"text-lg font-medium",children:"−"})}),m.jsxs("div",{className:"relative flex-1",children:[x>0&&m.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 h-3 rounded-l-full bg-success pointer-events-none",style:{width:`calc(${x*100}% - 5px)`}}),m.jsx(Lp,{size:"sm",step:1,hideValue:!0,className:"flex-1",minValue:0,maxValue:c.length-1,value:c.indexOf(d),onChange:v=>{const S=typeof v=="number"?v:v[0];a(c[S].unitKey)},onChangeEnd:v=>{const S=typeof v=="number"?v:v[0];a(c[S].unitKey)},classNames:{track:I("h-3 data-[fill-start=true]:border-s-transparent",t?.slider?.track),filler:I("hidden",t?.slider?.filler),step:I("data-[in-range=true]:bg-content1 data-[in-range=false]:bg-content1",t?.slider?.step),thumb:I(t?.slider?.thumb)}})]}),m.jsx($r,{isIconOnly:!0,size:"sm",variant:"bordered",radius:"md",isDisabled:p>=c.length-1,onPress:()=>{if(p>=c.length-1)return;const v=c[p+1].unitKey;a(v)},"aria-label":e("handsetCreditSelector.increase"),className:t?.incrementButton,endContent:m.jsx("span",{className:"text-lg font-medium",children:"+"})})]}),m.jsx("p",{className:I("text-xs",h===0?"text-warning":"text-success",t?.creditCheckText),children:h===0?e("handsetCreditSelector.creditCheckRequired"):e("handsetCreditSelector.noCreditCheck",{from:Ve(c[0].monthlyFee),to:Ve(h)})})]})}function M9(e){return e?e.sort((t,r)=>t.uniqueName.localeCompare(r.uniqueName)).sort((t,r)=>Number(r.sellWithoutSubscription)-Number(t.sellWithoutSubscription)).sort((t,r)=>+(r.stock.status==="backordered")-+(t.stock.status==="backordered")).sort((t,r)=>+(r.stock.status==="in_stock")-+(t.stock.status==="in_stock")):[]}function O9(e,t){const[r,n]=y.useState(0),o=y.useRef(null),i=y.useRef([]),s=y.useRef(null);y.useEffect(()=>{const d=o.current,p=i.current.some(g=>g!==null);return!d||e.length===0||!p?void 0:(s.current&&(s.current.disconnect(),s.current=null),s.current=new IntersectionObserver(g=>{g.forEach(b=>{if(b.isIntersecting&&b.intersectionRatio>.5){const x=i.current.indexOf(b.target);x!==-1&&n(x)}})},{root:null,threshold:.5,rootMargin:t?.rootMargin||"0px"}),i.current.filter(g=>g!==null).forEach(g=>{g&&s.current&&s.current.observe(g)}),()=>{s.current&&(s.current.disconnect(),s.current=null)})},[e.length,t?.rootMargin,t?.isOpen]);const a=y.useCallback(d=>{i.current[d]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[]),l=y.useCallback(()=>{r>0&&a(r-1)},[r,a]),c=y.useCallback(()=>{r<e.length-1&&a(r+1)},[r,e.length,a]);return{activeIndex:r,scrollContainerRef:o,imageRefs:i,scrollToImage:a,goToPrevious:l,goToNext:c}}function Nie({title:e,images:t=[],classNames:r}){const[n,o]=_i(),{popoverProps:i,isShadowRoot:s}=Mo(),{isModalOpen:a,openModal:l,closeModal:c}=ur(),d=y.useMemo(()=>t.filter(C=>!!C.url),[t]),p=a("carousel"),{activeIndex:h,scrollContainerRef:g,imageRefs:b,scrollToImage:x,goToPrevious:v,goToNext:S}=O9(d,{rootMargin:"0px",isOpen:p});return y.useEffect(()=>{p&&setTimeout(()=>{x(0)},200)},[p,x]),!d||d.length===0?null:m.jsx(Mi,{isOpen:p,onOpenChange:C=>C?l("carousel"):c("carousel"),placement:"bottom-center",scrollBehavior:"inside",size:"lg",shouldBlockScroll:!s,portalContainer:i.portalContainer,classNames:{backdrop:I(r?.modal?.backdrop),wrapper:I(r?.modal?.wrapper),base:I("m-0 max-h-[90vh]",r?.modal?.base),header:I(r?.modal?.header),body:I("pt-0",r?.modal?.body),footer:I(r?.modal?.footer),closeButton:I("cursor-pointer right-6 top-3.5",r?.modal?.closeButton)},children:m.jsxs(Ni,{children:[m.jsx(Di,{children:e}),m.jsxs(Ii,{className:"flex flex-row items-center gap-1 lg:gap-3",children:[m.jsx("button",{type:"button",onClick:v,disabled:h===0,className:"disabled:opacity-30 not-disabled:hover:cursor-pointer disabled:cursor-not-allowed",children:m.jsx(jm,{className:"rotate-180"})}),m.jsx("div",{ref:g,className:"flex flex-1 overflow-x-auto gap-3 snap-x snap-mandatory scrollbar-hide",style:{scrollbarWidth:"none"},children:d.map((C,k)=>m.jsx("div",{ref:P=>{b.current[k]=P},className:"shrink-0 w-full h-full flex justify-center snap-center",children:m.jsx(nn,{loading:"lazy",src:n(C.url,420,420),srcSet:o(C.url,420,420),alt:C.altText||"",classNames:{wrapper:I("mx-auto flex shrink-0 w-full",r?.imageWrapper),img:I("aspect-square drop-shadow-lg",r?.image)}})},C.url))}),m.jsx("button",{type:"button",onClick:S,disabled:h===d.length-1,className:"disabled:opacity-30 not-disabled:hover:cursor-pointer disabled:cursor-not-allowed",children:m.jsx(jm,{})})]}),m.jsx(ws,{className:"justify-center",children:d.map((C,k)=>m.jsx(Ps,{onPress:()=>x(k),isPressable:!0,disableRipple:!0,disableAnimation:!0,className:I("size-12 p-2 bg-transparent",h===k&&"ring-2 ring-primary",r?.thumbnailCard),radius:"sm",shadow:"none",children:m.jsx(nn,{className:I("size-8",r?.thumbnailImage),loading:"lazy",src:n(C.url,32,32),srcSet:o(C.url,32,32),alt:C.altText||"",radius:"sm"})},C.url))})]})})}const j9=3;function Die({modalTitle:e,images:t=[],classNames:r}){const[n,o]=_i(),{openModal:i}=ur(),s=y.useMemo(()=>t.filter(x=>!!x.url),[t]),{activeIndex:a,scrollContainerRef:l,imageRefs:c,scrollToImage:d}=O9(s),{width:p}=ml();if(!s||s.length===0)return null;const h=Math.max(0,s.length-j9),b=p>=1024?360:240;return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:I("relative",r?.base),children:[m.jsx("div",{ref:l,className:"flex flex-1 overflow-x-auto snap-x snap-mandatory scrollbar-hide",style:{scrollbarWidth:"none"},children:s.map((x,v)=>m.jsx("div",{ref:S=>{c.current[v]=S},className:"shrink-0 w-full h-full flex justify-center snap-center",children:m.jsx(nn,{loading:"lazy",src:n(x.url,b,b),srcSet:o(x.url,b,b),alt:x.altText||"",width:b,height:b,classNames:{wrapper:I("mx-auto flex shrink-0",r?.imageWrapper),img:I("aspect-square drop-shadow-lg",r?.image)}})},x.url))}),m.jsxs("div",{className:"absolute bottom-0 right-0 z-10 flex flex-col gap-2 justify-end items-center",children:[s.slice(0,j9).map((x,v)=>m.jsx(Ps,{onPress:()=>d(v),isPressable:!0,disableRipple:!0,disableAnimation:!0,className:I("size-12 lg:size-16 p-2 bg-transparent",a===v&&"ring-2 ring-primary",r?.thumbnailCard),radius:"sm",shadow:"none",children:m.jsx(nn,{className:I("size-8 lg:size-12",r?.thumbnailImage),loading:"lazy",src:n(x.url,48,48),srcSet:o(x.url,48,48),alt:x.altText||"",radius:"sm"})},x.url)),h>0&&m.jsx(Ps,{className:I("size-8 lg:size-12 flex items-center justify-center bg-foreground text-sm font-medium text-white",r?.counter),onPress:()=>i("carousel"),isPressable:!0,disableRipple:!0,disableAnimation:!0,radius:"sm",shadow:"none",children:m.jsxs("span",{children:["+",h]})})]})]}),m.jsx(Nie,{title:e,images:s,classNames:r?.modal})]})}function Mie(){const{productHeader:e}=Mt(),{propositionKey:t,proposition:r}=qa(),[n,o]=_i(),{width:i}=ml();if(!r)return null;const s=i<768,a=s?70:140,l=s?35:70,c=r.tags.find(g=>g.type==="internet"),d=M9(r.product?.productVersions.filter(g=>g.providers?.some(b=>b?.slug===r.provider.slug))),p=t.productVersionId(),h=d.find(g=>g.id===p);return m.jsxs(Ps,{disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:I("py-6 px-4 lg:p-6 flex flex-col gap-2 justify-center items-center",e?.base),children:[r.productType==="smartphone"&&h?m.jsx(Die,{modalTitle:h.fullName??"",images:h.media.carousel,classNames:e?.carousel}):m.jsx(nn,{src:n(r.provider.imageUrl,300,150),srcSet:o(r.provider.imageUrl,300,150),alt:r.provider.name,width:300,height:150,classNames:{wrapper:I("mx-auto flex shrink-0",e?.providerImage?.wrapper),img:I("aspect-2/1",e?.providerImage?.img)}}),h&&m.jsx(l9,{productStockStatus:h.stock.status,classNames:e?.productStockStatus}),m.jsx(u1,{productTitle:r.product?.fullName,propositionTitle:r.productType==="fixed"?`${r.content.dataSpeedDown/1e3} ${Pm("format.megabitPerSecond")}`:Gn(r.content.data,Pm("format.gigabyte")),propositionSubtitle:r.productType==="fixed"?c?Pm(`fixedInternet.${c.slug}`,{defaultValue:c.label}):"":su(r.content),imageUrl:r.provider.imageUrl,imageAlt:r.provider.name,hasProduct:r.productType==="smartphone",imageWidth:a,imageHeight:l,classNames:{...e?.propositionHeader,base:I("w-full",e?.propositionHeader?.base)}}),m.jsx("div",{className:"w-full",children:m.jsx(ah,{promotions:h9(r.specialPromotions).map(g=>g.shortDescription).filter(g=>!!g),urgentText:qs(r.specialPromotions),classNames:e?.promotionList})})]})}function Oie(){const{propositionKey:e,proposition:t,setProductVersion:r}=qa(),{versionSelect:n}=Mt();if(!t)return null;const o=M9(t.product?.productVersions.filter(a=>a.providers?.some(l=>l?.slug===t.provider.slug))),i=e.productVersionId(),s=o.find(a=>a.id===i);return m.jsx(FA,{disabled:!t.product,versions:o,distinctProperties:t.product?.distinctProperties,selectedDistinctProperties:s?.distinctProperties,selectedPhone:t.product,onSelectionChange:(a,l)=>r(l),classNames:n})}function jie({clickOutTarget:e="cart",onReturnClick:t,onRender:r,addClickoutSearchParams:n}){const{t:o}=at(),{isLoading:i,error:s,proposition:a,propositionSelector:l}=qa(),{buildClickOutUrl:c}=Oc({addClickoutSearchParams:n}),d=Mt(),p=y.useRef(null),h=y.useRef(!1),[g,b]=y.useState(null),{openModal:x}=ur(),{onAction:v}=ja();if(y.useEffect(()=>{!r||i||!a||!l||h.current||(h.current=!0,r())},[i,r,a,l]),!a||!l){if(!i)throw new Error(s??"Proposition or proposition selector not found");return m.jsxs("div",{children:[t&&m.jsx(m1,{as:"div",underline:"hover",className:"cursor-pointer",onPress:t,children:o("propositionSelector.return")}),m.jsxs("div",{className:"w-full grid grid-cols-1 lg:grid-cols-12 gap-6 mt-3 pointer-events-none",children:[m.jsxs("div",{className:"space-y-8 lg:col-span-7",children:[m.jsx(Fo,{className:"w-full h-[250px] lg:h-[300px] rounded-large"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:o("propositionSelector.benefitsTitle")}),m.jsx(Qp,{showTitle:!1,showProfileBanner:!0})]}),m.jsxs("div",{className:"space-y-8",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:o("propositionSelector.bundleSelectorTitle")}),m.jsxs("div",{className:"w-full flex flex-row gap-2",children:[m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"}),m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"}),m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"}),m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"}),m.jsx(Fo,{className:"w-full h-[56px] rounded-2xl"})]})]})]}),m.jsx(Fo,{className:"w-full h-[250px] md:h-[300px] rounded-large lg:col-span-5"})]})]})}const S=()=>{c("/api/partner-cart",C=>{C.set("proposition-key",a.key),C.set("product-type",a.productType),C.set("redirect-pathname",e==="cart"?"/winkelwagen":"/bestellen")}).then(C=>{v({type:"add_to_cart",proposition:a}),window.open(C,"_blank")})};return m.jsxs("div",{className:d?.base,children:[t&&m.jsx(m1,{as:"div",underline:"hover",className:"cursor-pointer",onPress:t,children:o("propositionSelector.return")}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 mt-3",children:[m.jsxs("div",{className:"space-y-8 lg:col-span-7",children:[m.jsx(Mie,{}),a.productType==="smartphone"&&m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:o("propositionSelector.productVersionTitle")}),m.jsx(Oie,{})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:o("propositionSelector.benefitsTitle")}),m.jsx(Qp,{isFixed:a.productType==="fixed",showTitle:!1,showProfileBanner:!0}),m.jsx(ah,{promotions:a.modificationPromotions,classNames:d?.promotionList})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:o("propositionSelector.bundleSelectorTitle")}),m.jsx(d9,{propositionSpecifications:Us(a),classNames:d?.propositionSpecifications}),m.jsx(m1,{as:"button",underline:"hover",className:"cursor-pointer",onPress:()=>{v({type:"details_viewed",proposition:a,tab:"general"}),b({proposition:a,tab:"general"}),x("details")},children:"Meer bundelinformatie"})]}),m.jsx(Aie,{}),a.productType==="smartphone"&&l.handsetCreditKeys.length>0&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("h2",{className:"text-xl font-bold text-foreground",children:o("propositionSelector.handsetCreditTitle")}),m.jsx(Iie,{})]}),m.jsx(i9,{proposition:a})]})]}),m.jsxs(Ps,{disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:I("p-6 h-fit flex flex-col gap-4 lg:mb-0 lg:col-span-5 lg:sticky lg:top-6",d?.sidebarCard?.base),ref:p,children:[m.jsx("h2",{className:I("text-2xl font-bold text-foreground",d?.sidebarCard?.title),children:o("propositionSelector.totalCostsOverviewTitle")}),m.jsx(cI,{proposition:a,classNames:{...d?.costOverview,monthlySection:I("mb-0",d?.costOverview?.monthlySection)}}),m.jsx($r,{className:I("font-medium gap-1 rounded-full",d?.sidebarCard?.ctaButton),color:"secondary",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,endContent:m.jsx(ca,{size:16}),onPress:S,children:o("propositionSelector.cta")}),m.jsx($ie,{proposition:a})]}),m.jsx(Hoe,{triggerRef:p,monthlyFeePromotionText:Ws(a.monthlyFees,a.baseMonthlyFee,a.lifetimeMonthlyFee),monthlyFee:Ve(a.monthlyFees[0]?.fee,{dashed:!0}),productPrice:a.productType==="smartphone"?Ve(a.price,{dashed:!0}):void 0,onClick:S})]}),m.jsx(Mc,{proposition:g?.proposition,defaultTab:g?.tab,buildClickOutUrl:c}),m.jsx(C_,{})]})}function Lie({propositionKey:e,classNames:t,initialProfile:r,onProfileChange:n,onPropositionKeyChange:o,onError:i,onAction:s,...a}){return m.jsx(P_,{onError:i,children:m.jsx(Pk,{classNames:t,children:m.jsx(T_,{onAction:s,children:m.jsx(nI,{initialProfile:r,onProfileChange:n,children:m.jsx(vie,{propositionKey:e,onPropositionKeyChange:o,children:m.jsx(Tk,{children:m.jsx(jie,{...a})})})})})})})}const Fie={odido:"Odido",kpn:"KPN",vodafone:"Vodafone",ben:"Ben",hollandsnieuwe:"hollandsnieuwe",lebara:"Lebara",youfone:"Youfone",simyo:"Simyo",delta:"Delta",caiway:"Caiway",budget:"Budget Mobiel","budget-alles-in-1":"Budget Alles-in-1","budget-internet":"Budget Internet","50plusmobiel":"50+ Mobiel",ziggo:"Ziggo",other:"Andere / geen provider","other/moving":"Geen i.v.m. verhuizing"};var Bie=yK;const Fc=Object.freeze(Object.defineProperty({__proto__:null,default:Bie},Symbol.toStringTag,{value:"Module"}));Io.ElementsRoot=RO,Io.PROVIDERS=Fie,Io.ProductResults=Voe,Io.PropositionSelector=Lie,Object.defineProperty(Io,Symbol.toStringTag,{value:"Module"})}));
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as j, i as N, m as Z, r as ze, h as qe, a as Lt, w as Q, b as pe, c as Ce, d as Xe, e as oe, f as Pe, t as O, g as Nt, j as G, v as Gt, k as $, M as H, K as Ye, l as $t, o as Ht, p as ge, q as Wt, s as _t, u as jt, x as Je, y as Ut, z as zt, A as qt, B as ke, C as Fe, D as z, E as Oe, F as Xt, V as Yt, G as Jt, H as Zt, I as Qt, J as en, L as tn, N as Ze, O as nn, P as sn, Q as rn, R as an, S as on, T as Qe, U as et, W as tt, X as nt, Y as ln } from "./index-CnzJyafp.js";
2
+ import { n as j, i as N, m as Z, r as ze, h as qe, a as Lt, w as Q, b as pe, c as Ce, d as Xe, e as oe, f as Pe, t as O, g as Nt, j as G, v as Gt, k as $, M as H, K as Ye, l as $t, o as Ht, p as ge, q as Wt, s as _t, u as jt, x as Je, y as Ut, z as zt, A as qt, B as ke, C as Fe, D as z, E as Oe, F as Xt, V as Yt, G as Jt, H as Zt, I as Qt, J as en, L as tn, N as Ze, O as nn, P as sn, Q as rn, R as an, S as on, T as Qe, U as et, W as tt, X as nt, Y as ln } from "./index-q4BtYrTI.js";
3
3
  import { Fragment as un } from "react";
4
4
  var Bt = typeof globalThis < "u" && globalThis.process ? globalThis.process : { env: { NODE_ENV: "production" } };
5
5
  // @__NO_SIDE_EFFECTS__