(self.webpackChunk_phs_mfe_apps_search=self.webpackChunk_phs_mfe_apps_search||[]).push([["node_modules_styled-breakpoints_index_js"],{3881:(e,t,n)=>{const{createInvariantWithPrefix:r}=n(6676);function a(e){return"".concat(o(e)-.02,"px")}function o(e){return parseInt(e,10)}t.createBreakpoints=function(){let{breakpoints:e,errorPrefix:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=r(t),i=function(){let{breakpoints:e,invariant:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Object.keys(Object(e)),r=()=>{const r=n.reduce(((t,n)=>(/^\d+px$/.test(e[n])||(t+="".concat(n,": ").concat(e[n],", ")),t)),"");t(0===r.length,"Check your theme. `".concat(r.trimEnd(),"` are invalid breakpoints. Use only pixels."))},a=r=>{t(e[r],"breakpoint `".concat(r,"` not found in ").concat(n.join(", "),"."))},i=n=>{const r=e[n];t(0!==o(r),"`".concat(n,": ").concat(r,"` cannot be assigned as minimum breakpoint."))},s=(n,r)=>{t(o(e[r])-o(e[n])>0,"The `max` value cannot be less than the `min`.")},c=e=>{t(e!==n.at(-1),"`".concat(e,"` doesn't have a maximum width. Use `").concat(n.at(-2),"`. See https://github.com/mg901/styled-breakpoints/issues/4 ."))};return{throwIfInvalidBreakpoints:r,throwIsInvalidName:a,throwIsValueIsZero:i,throwIsMaxValueLessThanMin:s,throwIsLastBreakpoint:c}}({invariant:n,breakpoints:e});i.throwIfInvalidBreakpoints();const s=Object.keys(Object(e)),c=t=>(i.throwIsInvalidName(t),e[t]);return{names:s,entries:Object.entries(Object(e)),invariant:n,up:c,down:t=>(i.throwIsInvalidName(t),i.throwIsValueIsZero(t),a(e[t])),between:(t,n)=>{i.throwIsInvalidName(t),i.throwIsInvalidName(n);return{min:c(t),max:(i.throwIsMaxValueLessThanMin(t,n),a(e[n]))}},only:t=>{const n=s.indexOf(t)+1,r=Object.values(Object(e));return{min:c(t),max:(i.throwIsLastBreakpoint(t),a(r[n]))}}}},t.calcMaxWidth=a},9984:(e,t,n)=>{const{createBreakpoints:r}=n(3881);t.createBreakpoints=r},2633:(e,t,n)=>{const{createStyledBreakpoints:r,createTheme:a}=n(2189),{up:o,down:i,only:s,between:c}=r();e.exports={up:o,down:i,only:s,between:c,createTheme:a}},6676:(e,t,n)=>{const{get:r,memoize:a,createInvariantWithPrefix:o}=n(1172);e.exports={get:r,memoize:a,createInvariantWithPrefix:o}},1172:e=>{const t=(e,n,r)=>{const[a,...o]="string"===typeof n?n.replace(/\[(\d+)]/g,".$1").split("."):n;return e[a]?o.length?t(e[a],o,r):e[a]:r};e.exports={createInvariantWithPrefix:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[prefix]: ";return function(t){if(!t)throw new Error(e+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Invariant failed"))}},memoize:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return function(){for(var n=arguments.length,r=new Array(n),a=0;a{const{createStyledBreakpoints:r,createTheme:a}=n(8254);t.createStyledBreakpoints=r,t.createTheme=a},8254:(e,t,n)=>{const{get:r,createInvariantWithPrefix:a,memoize:o}=n(6676),{createBreakpoints:i}=n(9984),s={errorPrefix:"[styled-breakpoints]: ",pathToMediaQueries:"styled-breakpoints.breakpoints",defaultBreakpoints:{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px"}};t.createStyledBreakpoints=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;const t=a(e.errorPrefix),n=t=>n=>{const a=(t=>{let{theme:n={}}=t;return o(r)(n,e.pathToMediaQueries,e.defaultBreakpoints)})(n),s=o(i)({breakpoints:a,errorPrefix:e.errorPrefix});return t(s)},c=(e,n)=>{var r;return t("portrait"===(r=n)||"landscape"===r,"`".concat(r,"` is invalid orientation. Use `landscape` or `portrait`.")),"".concat(e," and (orientation: ").concat(n,")")},p=o(((e,t)=>e?c(t,e):t)),l=e=>{let{min:t,max:n}=e;return"@media (min-width: ".concat(t,") and (max-width: ").concat(n,")")};return{up:(e,t)=>n((n=>{let{up:r}=n;return p(t,"@media (min-width: ".concat(r(e),")"))})),down:(e,t)=>n((n=>{let{down:r}=n;return p(t,"@media (max-width: ".concat(r(e),")"))})),between:(e,t,r)=>n((n=>{let{between:a}=n;return p(r,l(a(e,t)))})),only:(e,t)=>n((n=>{let{only:r}=n;return p(t,l(r(e)))}))}},t.createTheme=e=>({"styled-breakpoints":{breakpoints:e}})}}]); //# sourceMappingURL=node_modules_styled-breakpoints_index_js.d9ca2d27.chunk.js.map