PageSourceSearch

https://www.dumbitdown.ai/_next/static/chunks/pages/phrase-explainer-2e36c17095f98e97.js

js dumbitdown.ai collected 2026-10-04 12:42:56 UTC 13,717 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5797],{45098:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(87462),i=n(63366),o=n(63390),s=n(4953),a=n(17172),l=n(86523);let c=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let h=(0,a.Z)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function x({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function f(e,t){let{ownerState:n}=t,o=(0,i.Z)(t,c),s="function"==typeof e?e((0,r.Z)({ownerState:n},o)):e;if(Array.isArray(s))return s.flatMap(e=>f(e,(0,r.Z)({ownerState:n},o)));if(s&&"object"==typeof s&&Array.isArray(s.variants)){let{variants:e=[]}=s,t=(0,i.Z)(s,u);return e.forEach(e=>{let i=!0;"function"==typeof e.props?i=e.props((0,r.Z)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,r.Z)({ownerState:n},o,n)):e.style))}),t}return s}var g=function(e={}){let{themeId:t,defaultTheme:n=h,rootShouldForwardProp:a=p,slotShouldForwardProp:c=p}=e,u=e=>(0,l.Z)((0,r.Z)({},e,{theme:x((0,r.Z)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,l={})=>{var h;let g;(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:j,slot:y,skipVariantsResolver:Z,skipSx:v,overridesResolver:b=(h=m(y))?(e,t)=>t[h]:null}=l,w=(0,i.Z)(l,d),k=void 0!==Z?Z:y&&"Root"!==y&&"root"!==y||!1,C=v||!1,S=p;"Root"===y||"root"===y?S=a:y?S=c:"string"==typeof e&&e.charCodeAt(0)>96&&(S=void 0);let E=(0,o.default)(e,(0,r.Z)({shouldForwardProp:S,label:g},w)),P=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.P)(e)?i=>f(e,(0,r.Z)({},i,{theme:x({theme:i.theme,defaultTheme:n,themeId:t})})):e,R=(i,...o)=>{let s=P(i),a=o?o.map(P):[];j&&b&&a.push(e=>{let i=x((0,r.Z)({},e,{defaultTheme:n,themeId:t}));if(!i.components||!i.components[j]||!i.components[j].styleOverrides)return null;let o=i.components[j].styleOverrides,s={};return Object.entries(o).forEach(([t,n])=>{s[t]=f(n,(0,r.Z)({},e,{theme:i}))}),b(e,s)}),j&&!k&&a.push(e=>{var i;let o=x((0,r.Z)({},e,{defaultTheme:n,themeId:t}));return f({variants:null==o||null==(i=o.components)||null==(i=i[j])?void 0:i.variants},(0,r.Z)({},e,{theme:o}))}),C||a.push(u);let l=a.length-o.length;if(Array.isArray(i)&&l>0){let e=Array(l).fill("");(s=[...i,...e]).raw=[...i.raw,...e]}let c=E(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return E.withConfig&&(R.withConfig=E.withConfig),R}}()},29628:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(20539),i=n(96682);function o({props:e,name:t,defaultTheme:n,themeId:o}){let s=(0,i.Z)(n);return o&&(s=s[o]||s),(0,r.Z)({theme:s,name:t,props:e})}},1451:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/phrase-explainer",function(){return n(69118)}])},89073:function(e,t,n){"use strict";n.r(t),t.default={src:"/_next/static/media/logo-pro.d1a1836b.svg",height:97,width:117,blurWidth:0,blurHeight:0}},84166:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(63366),i=n(87462),o=n(67294),s=n(90512),a=n(4953),l=n(34867),c=n(94780),u=n(45098),d=n(29628),p=n(39707),h=n(17172),m=n(95408),x=n(98700),f=n(85893);let g=["component","direction","spacing","divider","children","className","useFlexGap"],j=(0,h.Z)(),y=(0,u.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Z(e){return(0,d.Z)({props:e,name:"MuiStack",defaultTheme:j})}let v=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],b=({ownerState:e,theme:t})=>{let n=(0,i.Z)({display:"flex",flexDirection:"column"},(0,m.k9)({theme:t},(0,m.P$)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){let r=(0,x.hB)(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),o=(0,m.P$)({values:e.direction,base:i}),s=(0,m.P$)({values:e.spacing,base:i});
1"object"==typeof o&&Object.keys(o).forEach((e,t,n)=>{if(!o[e]){let r=t>0?o[n[t-1]]:"column";o[e]=r}}),n=(0,a.Z)(n,(0,m.k9)({theme:t},s,(t,n)=>e.useFlexGap?{gap:(0,x.NA)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${v(n?o[n]:e.direction)}`]:(0,x.NA)(r,t)}}))}return(0,m.dt)(t.breakpoints,n)};var w=n(77527),k=n(44001),C=function(e={}){let{createStyledComponent:t=y,useThemeProps:n=Z,componentName:a="MuiStack"}=e,u=()=>(0,c.Z)({root:["root"]},e=>(0,l.ZP)(a,e),{}),d=t(b);return o.forwardRef(function(e,t){let a=n(e),l=(0,p.Z)(a),{component:c="div",direction:h="column",spacing:m=0,divider:x,children:j,className:y,useFlexGap:Z=!1}=l,v=(0,r.Z)(l,g),b=u();return(0,f.jsx)(d,(0,i.Z)({as:c,ownerState:{direction:h,spacing:m,useFlexGap:Z},ref:t,className:(0,s.Z)(b.root,y)},v,{children:x?function(e,t){let n=o.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(o.cloneElement(t,{key:`separator-${i}`})),e),[])}(j,x):j}))})}({createStyledComponent:(0,w.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,k.i)({props:e,name:"MuiStack"})})},69118:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(85893),i=n(3314),o=n(68573),s=n(84925),a=n(10018),l=n(67294),c=n(29160),u=n(9008),d=n.n(u),p=n(95503),h=n(96783),m=n(62106),x=n(21126),f=n(3283);function g(){let[e,t]=(0,l.useState)(null),[n,u]=(0,l.useState)(null),[g,j]=(0,l.useState)(!1),y=(0,l.useRef)(),Z=(0,l.useCallback)((e,t)=>{"clickaway"!==t&&u(null)},[u]),v=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/explain-phrase",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:y.current.value.trim()})}),n=await e.json();if(200!==e.status)throw n.error||Error("Request failed with status ".concat(e.status));t(n.result),j(!1)}catch(e){j(!1),u(e.message)}},[y]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d(),{children:[(0,r.jsx)("title",{children:"Phrase Explainer AI Tool"}),(0,r.jsx)("meta",{name:"description",content:"Common or uncommon phrases made easy! Our AI tool breaks down any expression for simple understanding. No more confusion! Try it free today."})]}),(0,r.jsx)(f.M,{header:"Choose your explainer tool:",items:[{name:"Explain The Meaning",href:"/explain"},{name:"Word Explainer",href:"/word-explainer"},{name:"Phrase Explainer",href:"/phrase-explainer"},{name:"Quote Explainer",href:"/quote-explainer"},{name:"Concept Explainer",href:"/concept-explainer"},{name:"Acronym Explainer",href:"/acronym-explainer"},{name:"Idiom Explainer",href:"/idiom-explainer"},{name:"Lyrics Explainer",href:"/lyrics-explainer"}]}),(0,r.jsx)(i.Z,{mx:{xs:2,md:6},children:(0,r.jsxs)(o.ZP,{container:!0,spacing:4,children:[(0,r.jsx)(o.ZP,{item:!0,xs:12,md:7,lg:9,children:(0,r.jsxs)(x.L,{header:"Phrase Explainer",children:[null===e&&(0,r.jsx)(p.m,{inputRef:y,isLoading:g,setIsLoading:j,sendText:v,placeholder:"Enter your text here (e.g. Barking up the wrong tree)"}),null!==e&&(0,r.jsx)(m.x,{inputRef:y,isLoading:g,setIsLoading:j,response:e,setResponse:t,sendText:v,setError:u})]})}),(0,r.jsx)(o.ZP,{item:!0,xs:12,md:5,lg:3,children:(0,r.jsx)(h.t,{})})]})}),(0,r.jsx)(c.$,{}),(0,r.jsx)(s.Z,{anchorOrigin:{vertical:"top",horizontal:"center"},open:null!==n,onClose:Z,autoHideDuration:6e3,children:(0,r.jsx)(a.Z,{severity:"error",children:n})})]})}},96783:function(e,t,n){"use strict";n.d(t,{t:function(){return m}});var r=n(85893),i=n(89073),o=n(61730),s=n(3314),a=n(96788),l=n(25675),c=n.n(l),u=n(41664),d=n.n(u);n(67294);var p=n(33299),h=n(18745);let m=e=>{var t;let{forceMobileLayout:n=!1}=e,l=(0,h.Z)(),u=(0,o.Z)(l.breakpoints.down("md")),m=n||u,{data:x}=(0,p.useSession)();return(null==x?void 0:null===(t=x.user)||void 0===t?void 0:t.subscriptionActive)?null:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(d(),{href:"/pricing",children:(0,r.jsxs)(s.Z,{display:"flex",sx:{backgroundColor:"#1B1464",borderRadius:"30px",padding:{xs:"40px 20px",md:"26px"},mb:4,color:"#F8DCD5",position:"relative",overflow:"hidden",flexDirection:m?"row":"column",justifyContent:m?"flex-start":"space-between",gap:m?4:0,height:m?void 0:"450px"},children:[(0,r.jsx)(c(),{src:i,alt:"Pro Logo",width:116,height:93}),(0,r.jsxs)(s.Z,{sx:{backgroundColor:"highlight.green",padding:"0px 100px",color:"#FFFFFF",fontSize:m?20:32,position:"absolute",right:m?"-95px":"-115px",top:"32px",transform:"rotate(38deg)",display:"flex",alignItems:"center"},children:["$9.99!",(0,r.jsxs)("span",{style:{fontSize:m?10:16,marginLeft:"4px",display:"flex",flexDirection:"column",lineHeight:1,justifyContent:"center",height:m?"20px":"32px"},children:[(0,r.jsx)("span",{children:"a"}),(0,r.jsx)("span",{children:"month"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(a.Z,{variant:"h4",component:"h2",fontSize:{lg:30,xl:44},gutterBottom:!0,children:["Feel the ",(0,r.jsx)("br",{}),"power of"," ",(0,r.jsx)("span",{style:{color:"#FE6F6F"},children:"Pro."})]}),(0,r.jsxs)(s.Z,{component:"ul",sx:{m:0,pl:2},children:[(0,r.jsx)(a.Z,{component:"li",variant:"body1",fontSize:{xs:12,md:16},fontWeight:600,children:"18 tools"}),(0,r.jsx)(a.Z,{component:"li",variant:"body1",fontSize:{xs:12,md:16},fontWeight:600,children:"2,000 word limit"}),(0,r.jsx)(a.Z,{component:"li",variant:"body1",fontSize:{xs:12,md:16},fontWeight:600,children:"1,000 monthly credits"})]})]})]})})})}},3283:function(e,t,n){"use strict";n.d(t,{M:function(){return d}});var r=n(85893),i=n(3314),o=n(96788),s=n(84166),a=n(81873),l=n(41664),c=n.n(l);n(67294);var u=n(11163);let d=e=>{let t=(0,u.useRouter)();return(0,r.jsxs)(i.Z,{pl:{xs:2,md:6},py:{xs:3,md:0},pb:{xs:2,md:0},sx:{backgroundColor:{xs:"#F9F9FD",md:"inherit"}},mb:{xs:2,md:4},children:[(0,r.jsx)(o.Z,{variant:"h4",fontSize:{xs:24,md:44},sx:{marginBottom:2},children:e.header}),(0,r.jsx)(s.Z,{direction:"row",spacing:1,useFlexGap:!0,sx:{flexWrap:{xs:"nowrap",md:"wrap"},maxWidth:"100%",overflowX:"auto",paddingBottom:1},children:e.items.map(e=>{let n=e.href===t.pathname;return(0,r.jsx)(c(),{href:n?"#":e.href,children:(0,r.jsx)(a.Z,{label:e.name,variant:n?"filled":"outlined",sx:{borderColor:"#E6E5EF"}},e.name)},e.name)})})]})}},62106:function(e,t,n){"use strict";n.d(t,{x:function(){return y}});var r=n(85893),i=n(68573),o=n(96788),s=n(48690),a=n(52857),l=n(93319),c=n(4336),u=n(56912),d=n(84925),p=n(10018),h=n(67294),m=n(2914),x=n(62204),f=n(45697),g=n.n(f),j=n(11163);let y=e=>{let[t,n]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),[y,Z]=(0,h.useState)(null),v=(0,j.useRouter)(),b=(0,h.useCallback)(async()=>
1{if(e.dumb){v.push("/");return}e.setResponse(null)},[e.setResponse]),w=(0,h.useCallback)(async()=>{navigator.clipboard.writeText(e.response),n(!0)},[e.response]),k=(0,h.useCallback)(()=>{n(!1),g(!1)},[n,g]),C=(0,h.useCallback)(async()=>{let t=e.dumb?e.dumb.dumbId:y;if(null===t){let n={original:e.inputRef.current.value.trim(),dumb:e.response.trim()};try{let e=await fetch("/api/createShareLink",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),r=await e.json();if(200!==e.status)throw r.error||Error("Request failed with status ".concat(e.status));if(r.result.inserted)Z(r.result.dumbId),t=r.result.dumbId;else throw Error("An error occured. Please refresh and try again.")}catch(t){e.setError(t.message)}}navigator.clipboard.writeText("https://dumbitdown.ai/dumb/".concat(t)),g(!0)},[y]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.ZP,{container:!0,justifyContent:"space-between",alignItems:"center",mb:1,children:[(0,r.jsx)(i.ZP,{item:!0,children:(0,r.jsx)(o.Z,{gutterBottom:!0,variant:"h5",children:"Simple Version"})}),!0!==e.demo&&(0,r.jsx)(i.ZP,{item:!0,children:(0,r.jsxs)(i.ZP,{container:!0,spacing:.4,alignItems:"center",children:[(0,r.jsx)(o.Z,{item:!0,variant:"body1",mr:1.4,children:"Share:"}),(0,r.jsx)(i.ZP,{item:!0,children:(0,r.jsx)(s.Z,{title:"Copy text",placement:"top",children:(0,r.jsx)(a.Z,{color:"primary",onClick:w,children:(0,r.jsx)(x.Fqs,{})})})}),(0,r.jsx)(i.ZP,{item:!0,children:(0,r.jsx)(s.Z,{title:"Copy sharing link",placement:"top-end",children:(0,r.jsx)(a.Z,{color:"primary",onClick:C,children:(0,r.jsx)(m.gjK,{})})})})]})})]}),(0,r.jsx)(l.Z,{id:"response",fullWidth:!0,multiline:!0,rows:12,value:e.dumb?e.dumb.dumb:e.response.trim()}),!0!==e.demo&&(0,r.jsxs)(i.ZP,{container:!0,justifyContent:"flex-end",marginTop:1,spacing:1,children:[(0,r.jsx)(i.ZP,{item:!0,children:(0,r.jsx)(c.Z,{variant:"outlined",onClick:b,children:(0,r.jsx)(o.Z,{children:"Start again"})})}),(0,r.jsx)(i.ZP,{item:!0,children:(0,r.jsx)(c.Z,{variant:"contained",onClick:w,children:(0,r.jsx)(o.Z,{children:"Copy to clipboard"})})})]}),(0,r.jsx)(u.Z,{sx:{marginTop:"2rem",marginBottom:"2rem"}}),(0,r.jsx)(o.Z,{gutterBottom:!0,variant:"h5",mb:2,children:"Original"}),(0,r.jsx)(l.Z,{inputRef:e.inputRef,id:"input",fullWidth:!0,multiline:!0,rows:12,value:e.dumb?e.dumb.original:e.inputRef.current.value}),(0,r.jsx)(d.Z,{anchorOrigin:{vertical:"top",horizontal:"center"},open:!1!==t,onClose:k,autoHideDuration:6e3,children:(0,r.jsx)(p.Z,{severity:"info",children:"Copied text to clipboard!"})}),(0,r.jsx)(d.Z,{anchorOrigin:{vertical:"top",horizontal:"center"},open:!1!==f,onClose:k,autoHideDuration:6e3,children:(0,r.jsx)(p.Z,{severity:"info",children:"Copied sharing link to clipboard!"})})]})};y.propTypes={dumb:g().object,demo:g().bool,response:g().string,inputRef:g().object,setError:g().func,setResponse:g().func,isLoading:g().bool,setIsLoading:g().func,sendText:g().func}}},function(e){e.O(0,[5445,1228,6663,4811,6875,1812,1873,9604,2888,9774,179],function(){return e(e.s=1451)}),_N_E=e.O()}]);

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.