PageSourceSearch

https://www.clipmode.ai/_next/static/chunks/633.f98d96444647d33c.js

js clipmode.ai collected 2026-10-05 11:56:07 UTC 7,145 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[633],{27139:function(n,t,e){"use strict";e.d(t,{N:function(){return c},W:function(){return l}});var r=e(57437);e(2265);var i=e(26440),a=e(99376),u=e(94371),o=e(80730);function l(n,t){return!!String(null!=n?n:"").trim().startsWith("http")&&(0,o.Jq)(t)}function c(n){let{imageUrl:t,model:e,onNavigate:l,label:c="Animate this",variant:s="chakra",className:f,style:d,chakraProps:p}=n,m=(0,a.useRouter)(),h=(0,a.usePathname)(),g=String(null!=t?t:"").trim(),v=(0,o.WD)(e);if(!v||!g.startsWith("http"))return null;let x=n=>{n.stopPropagation(),n.preventDefault(),(0,u.j)("animate_started",{model_username:e.username,image_host:(()=>{try{return new URL(g).host}catch(n){return null}})(),same_page:(0,o.Kc)(h,e)}),null==l||l();let t=(0,o.Tq)(v,g);(0,o.Kc)(h,e)?m.replace(t):m.push(t)};return"compact"===s?(0,r.jsx)("button",{type:"button",className:f,style:d,onClick:x,"aria-label":c,children:c}):(0,r.jsx)(i.Button,{onClick:x,bg:"transparent",color:"white",minH:"50px",w:"100%",border:"1px solid white",borderRadius:"12px",fontSize:{base:"14px",md:"16px","2xl":"20px"},_hover:{opacity:.9,bg:"gray.600"},...p,children:c})}},46426:function(n,t,e){"use strict";e.d(t,{g:function(){return i}});var r=e(57437);function i(n){let{className:t}=n;return(0,r.jsx)("img",{src:"/eu-ai-icons/eu-ai-label-generated-white.svg",alt:"AI-generated",className:t?"ppm-ai-generated-mark ".concat(t):"ppm-ai-generated-mark",draggable:!1})}},80730:function(n,t,e){"use strict";e.d(t,{CZ:function(){return s},Jq:function(){return u},Kc:function(){return c},Tq:function(){return l},WD:function(){return o}});var r=e(62839);let i="animate",a="image";function u(n){var t;return!!(0,r.Zm)()&&!!String(null!==(t=n.username)&&void 0!==t?t:"").trim()&&!n.isVideo&&!n.isUnified}function o(n){if(!u(n))return null;let t=String(n.username).trim(),e=!1===n.isOwned?"/studio/public-models/".concat(encodeURIComponent(t)):"/studio/mymodels/".concat(encodeURIComponent(t)),r=!!(n.isFlux||n.isExpresso);return"".concat(e,"/").concat(r?"create-flux":"create")}function l(n,t){let e=new URLSearchParams;e.set(i,"1");let r=null==t?void 0:t.trim();r&&e.set(a,r);let u=e.toString();return u?"".concat(n,"?").concat(u):n}function c(n,t){let e=o(t);return!!(e&&n===e)}function s(n){var t;return{openAnimate:"1"===n.get(i),imageUrl:(null===(t=n.get(a))||void 0===t?void 0:t.trim())||null}}},62839:function(n,t,e){"use strict";e.d(t,{Gr:function(){return o},LV:function(){return f},Nh:function(){return u},Ny:function(){return l},S1:function(){return c},Zm:function(){return i},nV:function(){return a},ub:function(){return d}});var r=e(40257);function i(n){var t,e;return"off"!==function(n){let t=(null!=n?n:"").trim().toLowerCase();return"1"===t||"true"===t||"on"===t?"on":"0"===t||"false"===t||"off"===t?"off":null}(null!==(e=null!==(t=null==n?void 0:n.clipMode)&&void 0!==t?t:"")&&void 0!==e?e:r.env.CLIP_MODE_ENABLED)}let a=9,u=[5,10,15],o=5,l="480p",c="9:16",s={5:{"480p":20,"768p":30},10:{"480p":40,"768p":50},15:{"480p":50,"768p":70}};function f(n){return s[n.duration][n.resolution]}let d=[{value:"9:16",label:"Portrait",preview:"9 / 16"},{value:"3:4",label:"3:4",preview:"3 / 4"},{value:"1:1",label:"Square",preview:"1 / 1"},{value:"4:3",label:"4:3",preview:"4 / 3"},{value:"16:9",label:"Landscape",preview:"16 / 9"}]},21529:function(){},47400:function(n,t,e){"use strict";e.d(t,{mergeRefs:function(){return i},useMergeRefs:function(){return a}});var r=e(2265);function i(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return n=>{t.forEach(t=>{!function(n,t){if(null!=n){if("function"==typeof n){n(t);return}try{n.current=t}catch(e){throw Error("Cannot assign value '".concat(t,"' to ref '").concat(n,"'"))}}}(t,n)})}}function a(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return(0,r.useMemo)(()=>i(...t),t)}},45796:function(n,t,e){"use strict";e.d(t,{D:function(){return r},useButtonGroup:function(){return i}});let[r,i]=(0,e(34008).createContext)({strict:!1,name:"ButtonGroupContext"})},57833:function(n,t,e){"use strict";e.d(t,{ButtonSpinner:function(){return c}});var r=e(57437),i=e(39572),a=e(24377),u=e(2265),o=e(72940),l=e(81284);function c(n){let{label:t,placement:e,spacing:c="0.5rem",children:s=(0,r.jsx)(o.Spinner,{color:"currentColor",width:"1em",height:"1em"}),className:f,__css:d,...p}=n,m=(0,a.cx)("chakra-button__spinner",f),h="start"===e?"marginEnd":"marginStart",g=(0,u.useMemo)(()=>(0,i.k0)({display:"flex",alignItems:"center",position:t?"relative":"absolute",[h]:t?c:0,fontSize:"1em",lineHeight:"normal",...d}),[d,t,h,c]);return(0,r.jsx)(l.chakra.div,{className:m,...p,__css:g,children:s})}c.displayName="ButtonSpinner"},26440:function(n,t,e){"use strict";e.d(t,{Button:function(){return h}});var r=e(57437),i=e(47400),a=e(22223),u=e(97291),o=e(24377),l=e(2265),c=e(45796),s=e(81284);function f(n){let{children:t,className:e,...i}=n,a=(0,l.isValidElement)(t)?(0,l.cloneElement)(t,{"aria-hidden":!0,focusable:!1}
1):t,u=(0,o.cx)("chakra-button__icon",e);return(0,r.jsx)(s.chakra.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:u,children:a})}f.displayName="ButtonIcon";var d=e(57833),p=e(44109),m=e(79585);let h=(0,p.forwardRef)((n,t)=>{let e=(0,c.useButtonGroup)(),f=(0,m.useStyleConfig)("Button",{...e,...n}),{isDisabled:p=null==e?void 0:e.isDisabled,isLoading:h,isActive:v,children:x,leftIcon:b,rightIcon:y,loadingText:S,iconSpacing:_="0.5rem",type:k,spinner:j,spinnerPlacement:w="start",className:N,as:C,shouldWrapChildren:B,...E}=(0,a.L)(n),R=(0,l.useMemo)(()=>{let n={...null==f?void 0:f._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...f,...!!e&&{_focus:n}}},[f,e]),{ref:I,type:L}=function(n){let[t,e]=(0,l.useState)(!n);return{ref:(0,l.useCallback)(n=>{n&&e("BUTTON"===n.tagName)},[]),type:t?"button":void 0}}(C),P={rightIcon:y,leftIcon:b,iconSpacing:_,children:x,shouldWrapChildren:B};return(0,r.jsxs)(s.chakra.button,{disabled:p||h,ref:(0,i.useMergeRefs)(t,I),as:C,type:null!=k?k:L,"data-active":(0,u.P)(v),"data-loading":(0,u.P)(h),__css:R,className:(0,o.cx)("chakra-button",N),...E,children:[h&&"start"===w&&(0,r.jsx)(d.ButtonSpinner,{className:"chakra-button__spinner--start",label:S,placement:"start",spacing:_,children:j}),h?S||(0,r.jsx)(s.chakra.span,{opacity:0,children:(0,r.jsx)(g,{...P})}):(0,r.jsx)(g,{...P}),h&&"end"===w&&(0,r.jsx)(d.ButtonSpinner,{className:"chakra-button__spinner--end",label:S,placement:"end",spacing:_,children:j})]})});function g(n){let{leftIcon:t,rightIcon:e,children:i,iconSpacing:a,shouldWrapChildren:u}=n;return u?(0,r.jsxs)("span",{style:{display:"contents"},children:[t&&(0,r.jsx)(f,{marginEnd:a,children:t}),i,e&&(0,r.jsx)(f,{marginStart:a,children:e})]}):(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(f,{marginEnd:a,children:t}),i,e&&(0,r.jsx)(f,{marginStart:a,children:e})]})}h.displayName="Button"},97291:function(n,t,e){"use strict";e.d(t,{P:function(){return r},Q:function(){return i}});let r=n=>n?"":void 0,i=n=>!!n||void 0}}]);

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.