PageSourceSearch

https://smartfitmethod.com/_next/static/immutable/chunks/0lc70hp3k3wj0.js

js smartfitmethod.com collected 2026-10-02 15:09:01 UTC 15,282 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,826514,t=>{"use strict";var e=t.i(234662),i=t.i(677241),r=t.i(281092);let n=/[T ]/,a=/[Z ]/i,s=/([Z+-].*)$/,o=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(t){return t?parseInt(t):1}function d(t){return t&&parseFloat(t.replace(",","."))||0}let c=[31,null,31,30,31,30,31,31,30,31,30,31];function p(t){return t%400==0||t%4==0&&t%100!=0}t.s(["parseISO",0,function(t,f){let m,g,w=()=>(0,i.constructFrom)(f?.in,NaN),x=f?.additionalDigits??2,b=function(t){let e,i={},r=t.split(n);if(r.length>2)return i;if(/:/.test(r[0])?e=r[0]:(i.date=r[0],e=r[1],a.test(i.date)&&(i.date=t.split(a)[0],e=t.substr(i.date.length,t.length))),e){let t=s.exec(e);t?(i.time=e.replace(t[1],""),i.timezone=t[1]):i.time=e}return i}(t);if(b.date){let t=function(t,e){let i=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(i);if(!r)return{year:NaN,restDateString:""};let n=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?n:100*a,restDateString:t.slice((r[1]||r[2]).length)}}(b.date,x);m=function(t,e){var i,r,n,a,s,l,h,d,f,m;if(null===e)return new Date(NaN);let g=t.match(o);if(!g)return new Date(NaN);let w=!!g[4],x=u(g[1]),b=u(g[2])-1,v=u(g[3]),I=u(g[4]),y=u(g[5])-1;if(w){let t,o;return(i=I,r=y,i>=1&&i<=53&&r>=0&&r<=6)?(n=e,a=I,s=y,(t=new Date(0)).setUTCFullYear(n,0,4),o=t.getUTCDay()||7,t.setUTCDate(t.getUTCDate()+((a-1)*7+s+1-o)),t):new Date(NaN)}{let t=new Date(0);return(l=e,h=b,d=v,h>=0&&h<=11&&d>=1&&d<=(c[h]||(p(l)?29:28))&&(f=e,(m=x)>=1&&m<=(p(f)?366:365)))?(t.setUTCFullYear(e,b,Math.max(x,v)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!m||isNaN(+m))return w();let v=+m,I=0;if(b.time&&isNaN(I=function(t){var i,r,n;let a=t.match(l);if(!a)return NaN;let s=d(a[1]),o=d(a[2]),h=d(a[3]);return(i=s,r=o,n=h,24===i?0===r&&0===n:n>=0&&n<60&&r>=0&&r<60&&i>=0&&i<25)?s*e.millisecondsInHour+o*e.millisecondsInMinute+1e3*h:NaN}(b.time)))return w();if(b.timezone){if(isNaN(g=function(t){var i;if("Z"===t)return 0;let r=t.match(h);if(!r)return 0;let n="+"===r[1]?-1:1,a=parseInt(r[2]),s=r[3]&&parseInt(r[3])||0;return(i=s)>=0&&i<=59?n*(a*e.millisecondsInHour+s*e.millisecondsInMinute):NaN}(b.timezone)))return w()}else{let t=new Date(v+I),e=(0,r.toDate)(0,f?.in);return e.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),e.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),e}return(0,r.toDate)(v+I+g,f?.in)}])},294798,835863,t=>{"use strict";var e;let i="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function r(t){return`image-${t.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}let n=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]],a=["clip","crop","fill","fillmax","max","scale","min"],s=["top","bottom","left","right","center","focalpoint","entropy"],o=["format"];function l(t){let{apiHost:e,projectId:i,dataset:r}=t,n={baseUrl:(e||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},a=t.resource??t["~experimental_resource"];if(a?.type==="media-library"){if("string"!=typeof a.id||0===a.id.length)throw Error('Media library clients must include an id in "resource"');return{...n,mediaLibraryId:a.id}}if(a?.type==="canvas"){if("string"!=typeof a.id||0===a.id.length)throw Error('Canvas clients must include an id in "resource"');return{...n,canvasId:a.id}}if(a?.type==="dataset"){if("string"!=typeof a.id||0===a.id.length)throw Error('Dataset clients must include an id in "resource"');let[t,e]=a.id.split(".");if(!t||!e)throw Error('Dataset resource id must be in the format "projectId.dataset", got: '+a.id);return{...n,projectId:t,dataset:e}}return{...n,projectId:i,dataset:r}}function h(t){return t&&"config"in t&&"function"==typeof t.config?l(t.config()):t&&"clientConfig"in t&&"object"==typeof t.clientConfig?l(t.clientConfig):t||{}}class u{options;constructor(t,e){this.options=t?{...t.options||{},...e||{}}:{...e||{}}}withOptions(t){return new u(this,function(t,e){let i=e.baseUrl||t.baseUrl,r={baseUrl:i};for(let t in e)e.hasOwnProperty(t)&&(r[function(t){for(let e of n){let[i,r]=e;if(t===i||t===r)return i}return t}(t)]=e[t]);return{baseUrl:i,...r}}(this.options,t))}image(t){return this.withOptions({source:t})}dataset(t){return this.withOptions({dataset:t})}projectId(t){return this.withOptions({projectId:t})}withClient(t){let e=h(t),i={...this.options};return delete i.baseUrl,delete i.projectId,delete i.dataset,delete i.mediaLibraryId,delete i.canvasId,new u(null,{...e,...i})}bg(t){return this.withOptions({bg:t})}dpr(t){return this.withOptions(t&&1!==t?{dpr:t}:{})}width(t){return this.withOptions({width:t})}height(t){return this.withOptions({height:t})}focalPoint(t,e){return this.withOptions({focalPoint:{x:t,y:e}})}maxWidth(t){return this.withOptions({maxWidth:t})}minWidth(t){return this.withOptions({minWidth:t})}maxHeight(t){return this.withOptions({maxHeight:t})}minHeight(t){return this.withOptions({minHeight:t})}size(t,e){return this.withOptions({width:t,height:e})}blur(t){return this.withOptions({blur:t})}
1sharpen(t){return this.withOptions({sharpen:t})}rect(t,e,i,r){return this.withOptions({rect:{left:t,top:e,width:i,height:r}})}format(t){return this.withOptions({format:t})}invert(t){return this.withOptions({invert:t})}orientation(t){return this.withOptions({orientation:t})}quality(t){return this.withOptions({quality:t})}forceDownload(t){return this.withOptions({download:t})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(t){if(-1===a.indexOf(t))throw Error(`Invalid fit mode "${t}"`);return this.withOptions({fit:t})}crop(t){if(-1===s.indexOf(t))throw Error(`Invalid crop mode "${t}"`);return this.withOptions({crop:t})}saturation(t){return this.withOptions({saturation:t})}auto(t){if(-1===o.indexOf(t))throw Error(`Invalid auto mode "${t}"`);return this.withOptions({auto:t})}pad(t){return this.withOptions({pad:t})}vanityName(t){return this.withOptions({vanityName:t})}frame(t){if(1!==t)throw Error(`Invalid frame value "${t}"`);return this.withOptions({frame:t})}url(){return function(t){let e={...t||{}},a=e.source;delete e.source;let s=function(t){var e;let i;if(!t)return null;if("string"==typeof t&&(e=t,/^https?:\/\//.test(`${e}`)))i={asset:{_ref:r(t)}};else if("string"==typeof t)i={asset:{_ref:t}};else if(t&&"string"==typeof t._ref)i={asset:t};else if(t&&"string"==typeof t._id)i={asset:{_ref:t._id||""}};else if(t&&t.asset&&"string"==typeof t.asset.url)i={asset:{_ref:r(t.asset.url)}};else{if("object"!=typeof t.asset)return null;i={...t}}return t.crop&&(i.crop=t.crop),t.hotspot&&(i.hotspot=t.hotspot),function(t){if(t.crop&&t.hotspot)return t;let e={...t};return e.crop||(e.crop={left:0,top:0,bottom:0,right:0}),e.hotspot||(e.hotspot={x:.5,y:.5,height:1,width:1}),e}(i)}(a);if(!s){if(a&&"object"==typeof a&&null!==a&&a._upload&&(!a.asset||!a.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error(`Unable to resolve image URL from source (${JSON.stringify(a)})`)}let o=function(t){let[,e,r,n]=t.split("-");if(!e||!r||!n)throw Error(`Malformed asset _ref '${t}'. Expected an id like "${i}".`);let[a,s]=r.split("x"),o=+a,l=+s;if(!(isFinite(o)&&isFinite(l)))throw Error(`Malformed asset _ref '${t}'. Expected an id like "${i}".`);return{id:e,width:o,height:l,format:n}}(s.asset._ref||s.asset._id||""),l=Math.round(s.crop.left*o.width),h=Math.round(s.crop.top*o.height),u={left:l,top:h,width:Math.round(o.width-s.crop.right*o.width-l),height:Math.round(o.height-s.crop.bottom*o.height-h)},d=s.hotspot.height*o.height/2,c=s.hotspot.width*o.width/2,p=s.hotspot.x*o.width,f=s.hotspot.y*o.height;return e.rect||e.focalPoint||e.ignoreImageParams||e.crop||(e={...e,...function(t,e){let i,r=e.width,n=e.height;if(!(r&&n))return{width:r,height:n,rect:t.crop};let a=t.crop,s=t.hotspot,o=r/n;if(a.width/a.height>o){let t=Math.round(a.height),e=Math.round(t*o),r=Math.max(0,Math.round(a.top)),n=Math.max(0,Math.round(Math.round((s.right-s.left)/2+s.left)-e/2));n<a.left?n=a.left:n+e>a.left+a.width&&(n=a.left+a.width-e),i={left:n,top:r,width:e,height:t}}else{let t=a.width,e=Math.round(t/o),r=Math.max(0,Math.round(a.left)),n=Math.max(0,Math.round(Math.round((s.bottom-s.top)/2+s.top)-e/2));n<a.top?n=a.top:n+e>a.top+a.height&&(n=a.top+a.height-e),i={left:r,top:n,width:t,height:e}}return{width:r,height:n,rect:i}}({crop:u,hotspot:{left:p-c,top:f-d,right:p+c,bottom:f+d}},e)}),function(t){let e,i=(t.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=t.vanityName?`/${t.vanityName}`:"",a=`${t.asset.id}-${t.asset.width}x${t.asset.height}.${t.asset.format}${r}`;e=t.mediaLibraryId?`${i}/media-libraries/${t.mediaLibraryId}/images/${a}`:t.canvasId?`${i}/images/canvases/${t.canvasId}/${a}`:`${i}/images/${t.projectId}/${t.dataset}/${a}`;let s=[];if(t.rect){let{left:e,top:i,width:r,height:n}=t.rect;(0!==e||0!==i||n!==t.asset.height||r!==t.asset.width)&&s.push(`rect=${e},${i},${r},${n}`)}t.bg&&s.push(`bg=${t.bg}`),t.focalPoint&&(s.push(`fp-x=${t.focalPoint.x}`),s.push(`fp-y=${t.focalPoint.y}`));
1let o=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return o&&s.push(`flip=${o}`),n.forEach(e=>{let[i,r]=e;"u">typeof t[i]?s.push(`${r}=${encodeURIComponent(t[i])}`):"u">typeof t[r]&&s.push(`${r}=${encodeURIComponent(t[r])}`)}),0===s.length?e:`${e}?${s.join("&")}`}({...e,asset:o})}(this.options)}toString(){return this.url()}}e=["The default export of @sanity/image-url has been deprecated. Use the named export `createImageUrlBuilder` instead."],t.i(247167).default.env.NEXT_PUBLIC_SANITY_API_VERSION;let d=c("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET");function c(t,e){if(void 0===t)throw Error(e);return t}let p=new u(null,h({projectId:c("57qibqgj","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID"),dataset:d}));t.s(["urlFor",0,t=>p.image(t)],835863),t.i(563788),t.s([],294798)},979336,621482,t=>{"use strict";var e=t.i(271645);t.s(["useInfiniteScroll",0,({targetRef:t,onIntersect:i,enabled:r=!0,options:n={}})=>{(0,e.useEffect)(()=>{if(!t.current||!r)return;let e=new IntersectionObserver(t=>{t[0].isIntersecting&&i(t[0])},n);return e.observe(t.current),()=>e.disconnect()},[t,i,r])}],979336);var i=t.i(869230),r=t.i(992571),n=class extends i.QueryObserver{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){t._type="infinite",super.setOptions(t)}getOptimisticResult(t){return t._type="infinite",super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){let{state:i}=t,n=super.createResult(t,e),{isFetching:a,isRefetching:s,isError:o,isRefetchError:l}=n,h=i.fetchMeta?.fetchMore?.direction,u=o&&"forward"===h,d=a&&"forward"===h,c=o&&"backward"===h,p=a&&"backward"===h;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,r.hasNextPage)(e,i.data),hasPreviousPage:(0,r.hasPreviousPage)(e,i.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:c,isFetchingPreviousPage:p,isRefetchError:l&&!u&&!c,isRefetching:s&&!d&&!p}}},a=t.i(469637);t.s(["useInfiniteQuery",0,function(t,e){return(0,a.useBaseQuery)(t,n,e)}],621482)},200990,t=>{"use strict";var e=t.i(843476),i=t.i(657688),r=t.i(522016),n=t.i(13031),a=t.i(610499);t.i(294798);var s=t.i(835863);let o=t=>`/insights/${t}`;t.s(["InsightCard",0,function({data:t}){return t?(0,e.jsxs)("div",{className:"h-full flex flex-col border border-slate-300/30 rounded-[20px] bg-stone-100",children:[(0,e.jsx)(r.default,{href:o(t.slug),className:"relative block h-69 overflow-hidden rounded-[20px]",children:!!t.mainImage&&(0,e.jsx)(i.default,{src:(0,s.urlFor)(t.mainImage).width(854).url(),quality:85,alt:t?.mainImage?.alt??t?.title??"",fill:!0,sizes:"(max-width: 768px) 100vw, 427px",placeholder:t.mainImage?.asset?.metadata?.lqip?"blur":"empty",blurDataURL:t.mainImage?.asset?.metadata?.lqip,className:"object-cover transition-transform duration-300 hover:scale-103"})}),(0,e.jsxs)("div",{className:"min-h-0 flex flex-col grow pt-4 pb-6 px-5",children:[(0,e.jsx)("p",{className:"dark:text-white antialiased whitespace-break-spaces text-l2-mobile md:text-l2 mb-3 text-secondary font-medium uppercase line-clamp-1",children:(0,e.jsx)(n.RelativeTime,{date:t.date})}),(0,e.jsx)(r.default,{className:"text-black dark:text-white antialiased whitespace-break-spaces text-h6-mobile md:text-h6 mb-4 font-medium line-clamp-2 hover:underline",href:o(t.slug),children:t?.title}),(0,e.jsx)("p",{className:"dark:text-white antialiased whitespace-break-spaces text-b1-mobile md:text-b1 line-clamp-3 text-secondary mb-4 wrap-anywhere",children:t.description}),(0,e.jsx)(a.Button,{asChild:!0,variant:"flat-underline",size:"default",className:"mt-auto",children:(0,e.jsx)(r.default,{href:o(t.slug),children:"Read more"})})]})]}):null}],200990)},339320,t=>{"use strict";var e=t.i(843476),i=t.i(164668),r=t.i(271645),n=t.i(979336),a=t.i(204734),s=t.i(200990
1);t.s(["InsightsClientLoader",0,function({initialSkip:t,limit:o}){let l=(0,r.useRef)(null),[h,u]=(0,r.useState)(!1),{items:d,hasNextPage:c,isFetchingNextPage:p,fetchNextPage:f,isFetching:m,isError:g}=(0,a.useInsightsInfinite)({limit:o,initialSkip:t,enabled:h});(0,n.useInfiniteScroll)({targetRef:l,onIntersect:()=>{g||(h?c&&!p&&f():u(!0))},enabled:!h||c,options:{rootMargin:"400px"}});let w=!g&&h&&0===d.length&&m||p;return(0,e.jsxs)(e.Fragment,{children:[d.map(t=>(0,e.jsx)("li",{children:(0,e.jsx)(s.InsightCard,{data:t})},t.id)),(0,e.jsx)("div",{className:"col-span-full h-px invisible",ref:l}),w&&(0,e.jsx)("div",{className:"col-span-full mt-6 flex justify-center",children:(0,e.jsx)(i.LoaderCircle,{className:"size-10 animate-spin"})})]})}])},13031,t=>{"use strict";var e=t.i(401851),i=t.i(826514);t.s(["RelativeTime",0,function({date:t}){return(0,e.format)((0,i.parseISO)(t),"MMM d/yy")}])},204734,t=>{"use strict";var e=t.i(621482),i=t.i(619273);let r=["insights"];async function n(t,e){let i=await fetch(`/api/insights?skip=${t}&limit=${e}`);if(!i.ok)throw Error("Failed to load insights");return i.json()}t.s(["useInsightsInfinite",0,({limit:t=18,initialSkip:a=0,enabled:s=!0}={})=>{let o=(0,e.useInfiniteQuery)({queryKey:[...r,"client-pagination"],queryFn:({pageParam:e})=>n(e,t),initialPageParam:a,getNextPageParam:(e,i)=>{let r=a+i.length*t;return r<e.total?r:void 0},enabled:s,retry:1,throwOnError:!1,placeholderData:i.keepPreviousData,staleTime:6e4}),l=o.data?.pages.flatMap(t=>t.items)??[];return{...o,items:l}}])}]);

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.