PageSourceSearch

https://www.cardsnacks.com/_next/static/chunks/8372-41694dc1a0dfd306.js

js cardsnacks.com collected 2026-10-02 04:40:33 UTC 8,118 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b845d944-7794-41d2-acac-f6a3a40ef363",e._sentryDebugIdIdentifier="sentry-dbid-b845d944-7794-41d2-acac-f6a3a40ef363")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8372],{15340:()=>{},49898:(e,t,r)=>{"use strict";r.d(t,{Nk:()=>h,PM:()=>u,WP:()=>o,zM:()=>i});var a=r(33721),n=r(92468),s=r(91679),l=r(21867);function i(e,t="image/jpeg"){let r=atob(e.split(",")[1]),a=[];for(let e=0;e<r.length;e+=1)a.push(r.charCodeAt(e));return new Blob([new Uint8Array(a)],{type:t})}function o(e,t="jpeg"){let r=`${Date.now().toString(16).replace(".","")}.${t}`;return e?`${e}/${r}`:r}let c=l.jL,d=new a.Y({region:l.VN,credentials:(0,s.s)({identityPoolId:l.sV,clientConfig:{region:l.VN}})}),u=(e,t)=>{let r=new n._({client:d,params:{Bucket:c,...e},partSize:0x1900000});return r.done().then(e=>{t&&"function"==typeof t&&t(null,e)}).catch(e=>{t&&"function"==typeof t&&t(e)}),r},h=async e=>new n._({client:d,params:{Bucket:c,...e},partSize:0x1900000}).done()},51520:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(37876),n=r(14232);let s=({size:e,children:t})=>(0,a.jsx)("div",{className:"mr-11 mb-11",children:t});function l({title:e,children:t,emptyState:r,size:i="regular"}){let o=n.Children.count(t);if(!o&&r){let{image:t,title:n,description:s,links:l,imageStyle:i}=r,o=null;return"stores"===l&&(o=(0,a.jsxs)("div",{className:"relative flex mt-8 gap-x-3 justify-center",children:[(0,a.jsx)("a",{href:"https://apps.apple.com/us/app/cardsnacks-ecards-greetings/id1229268150",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{height:"40",src:"/assets/legacy/images/app-store-badge-dark.svg"})}),(0,a.jsx)("a",{href:"https://cardsnacks.go.link/lBq3x",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{height:"40",src:"/assets/legacy/images/google-play-badge-dark.svg"})})]})),(0,a.jsxs)("div",{children:[e&&(0,a.jsx)("div",{className:"heading-main",children:e}),(0,a.jsxs)("div",{className:"flex flex-col justify-center mt-16",children:[(0,a.jsx)("img",{src:t,style:{height:220,...i}}),(0,a.jsxs)("div",{className:"flex flex-col mt-8 items-center mx-auto",style:{maxWidth:450},children:[(0,a.jsx)("div",{className:"body-large",children:n}),(0,a.jsx)("div",{className:"mt-2 text-center",children:s})]}),o]})]})}return o?(0,a.jsxs)("div",{children:[e&&(0,a.jsx)("div",{className:"mb-2 heading-main",children:e}),(0,a.jsx)("div",{className:"flex flex-wrap",children:n.Children.map(t,e=>(0,a.jsx)(s,{size:i,children:e}))})]}):null}},79838:()=>{},87446:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var a=r(37876),n=r(14232),s=r(45600),l=r(32615),i=r(18025),o=r(86171),c=r(48240),d=r(1773),u=r(14534),h=r(66810),f=r(24502);let m=n.forwardRef(({className:e,...t},r)=>(0,a.jsxs)(f.bL,{ref:r,className:(0,d.cn)("relative flex w-full touch-none select-none items-center",e),...t,children:[(0,a.jsx)(f.CC,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:(0,a.jsx)(f.Q6,{className:"absolute h-full bg-primary"})}),(0,a.jsx)(f.zi,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));function g(e){return new Promise((t,r)=>{let a=new Image;a.crossOrigin="anonymous",a.onload=()=>t(a),a.onerror=r,a.src=e})}async function x(e,t,r){let a=await g(e),n=document.createElement("canvas"),s=Math.round(t.width),l=Math.round(t.height);if(r&&(s>r.width||l>r.height)){let e=Math.min(r.width/s,r.height/l);s=Math.round(s*e),l=Math.round(l*e)}n.width=s,n.height=l;let i=n.getContext("2d");return i.imageSmoothingQuality="high",i.drawImage(a,t.x,t.y,t.width,t.height,0,0,s,l),n}async function p(e,t,r,a){let n=await g(e),s=document.createElement("canvas"),l=Math.round(t.width),i=Math.round(t.height),o=1;a&&(l>a.width||i>a.height)&&(o=Math.min(a.width/l,a.height/i),l=Math.round(l*o),i=Math.round(i*o)),s.width=l,s.height=i;let c=s.getContext("2d");c.imageSmoothingQuality="high",c.fillStyle=r,c.fillRect(0,0,l,i);
1let d=-t.x*o,u=-t.y*o,h=n.naturalWidth*o,f=n.naturalHeight*o;return c.drawImage(n,d,u,h,f),s}m.displayName=f.bL.displayName;let b=["#ffffff","#000000","#f5f5f5","#d4d4d4","#fef3c7","#dbeafe"],y=(0,n.memo)(({src:e,aspect:t,title:r="Crop image",maxSize:s,isGif:f,onSave:g,onClose:y})=>{let{crop:v,zoom:w,mode:j,fillColor:C,setCrop:k,setZoom:N,setMode:M,setFillColor:S,onCropComplete:z,toDataUrl:_}=function(){let[e,t]=(0,n.useState)({x:0,y:0}),[r,a]=(0,n.useState)(1),[s,l]=(0,n.useState)("fit"),[i,o]=(0,n.useState)("#ffffff"),[c,d]=(0,n.useState)(null),u=(0,n.useCallback)((e,t)=>{d(t)},[]),h=(0,n.useCallback)(async(e,t)=>{if(!c)throw Error("Crop area is not set");return("fit"===s?await p(e,c,i,t):await x(e,c,t)).toDataURL("image/png",1)},[c,i,s]),f=(0,n.useCallback)(e=>{l(e),t({x:0,y:0}),"fit"===e?a(.5):a(1)},[]);return{crop:e,zoom:r,mode:s,fillColor:i,setCrop:t,setZoom:a,setMode:f,setFillColor:o,onCropComplete:u,toDataUrl:h}}(),A="fit"===j,E=A?.1:1,I=(0,n.useRef)(null),[L,R]=(0,n.useState)(),B=(0,n.useCallback)(()=>{let e=I.current;if(!e)return;let{width:r,height:a}=e.getBoundingClientRect();if(r<=0||a<=0)return;let n=r,s=r/t;s>a&&(s=a,n=a*t),R({width:Math.round(n),height:Math.round(s)})},[t]);(0,n.useEffect)(()=>{let e=0,t=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(B)};t();let r=I.current,a=null;return r&&"u">typeof ResizeObserver&&(a=new ResizeObserver(()=>{t()})).observe(r),window.addEventListener("resize",t),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t),a?.disconnect()}},[B]);let D=(0,n.useCallback)(async()=>{f?g(e):g(await _(e,s))},[f,e,_,s,g]),$=(0,n.useCallback)(e=>{e||y()},[y]);(0,n.useCallback)(e=>{e&&M(e)},[M]);let P=(0,n.useCallback)(e=>{N(e[0])},[N]),F=(0,n.useCallback)(e=>{S(e.target.value)},[S]);return(0,a.jsx)(u.lG,{open:!0,onOpenChange:$,children:(0,a.jsxs)(u.Cf,{showCloseButton:!1,className:"sm:max-w-lg gap-3",children:[(0,a.jsx)(u.c7,{children:(0,a.jsx)(u.L3,{children:r})}),f?(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("img",{src:e,alt:"preview",className:"max-w-full max-h-[400px] object-contain"})}):(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("div",{ref:I,className:"relative h-[400px] rounded-md",children:(0,a.jsx)(l.Ay,{image:e,crop:v,zoom:w,aspect:t,cropSize:L,objectFit:A?void 0:"cover",restrictPosition:!A,minZoom:E,maxZoom:5,onCropChange:k,onZoomChange:N,onCropComplete:z,style:{containerStyle:A?{background:C}:void 0}})}),(0,a.jsxs)("div",{className:"flex items-center gap-3 px-1",children:[(0,a.jsx)(i.A,{size:16,className:"shrink-0 text-(--color-muted-foreground)"}),(0,a.jsx)(m,{value:[w],min:E,max:5,step:.01,onValueChange:P}),(0,a.jsx)(o.A,{size:16,className:"shrink-0 text-(--color-muted-foreground)"})]}),(0,a.jsx)("div",{className:"flex flex-col items-center gap-2",children:A&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[b.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>S(e),className:(0,d.cn)("h-7 w-7 rounded-full border-2 transition-colors cursor-pointer",C===e?"border-(--color-primary) ring-1 ring-(--color-primary)":"border-(--color-border) hover:border-(--color-muted-foreground)"),style:{backgroundColor:e}},e)),(0,a.jsxs)("label",{className:(0,d.cn)("relative h-7 w-7 rounded-full border-2 cursor-pointer flex items-center justify-center transition-colors overflow-hidden","border-(--color-border) hover:border-(--color-muted-foreground)"),style:{backgroundColor:C},children:[(0,a.jsx)(c.A,{size:14,className:"pointer-events-none shrink-0",style:{color:"#ffffff"===C||"#f5f5f5"===C?"#666":"#fff"}}),(0,a.jsx)("input",{type:"color",value:C,onChange:F,className:"absolute opacity-0 inset-0 w-full h-full cursor-pointer"})]})]})})]}),(0,a.jsxs)(u.Es,{children:[(0,a.jsx)(h.$,{variant:"outline",onClick:y,children:"Cancel"}),(0,a.jsx)(h.$,{onClick:D,children:"Save"})]})]})})},s.isEqual)}}]);

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.