PageSourceSearch

https://baskadia.com/_next/static/chunks/pages/auth/upload/image/preview/page-b0f9e24cda482cfc.js

js baskadia.com collected 2026-10-01 10:34:36 UTC 8,381 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3926],{67265:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(81225),a=r(44168),i=r(67294),o=(r(45697),r(86010)),s=r(52543),c=(0,r(63786).Z)(i.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var l=i.forwardRef((function(e,t){var r=e.alt,s=e.children,l=e.classes,u=e.className,d=e.component,f=void 0===d?"div":d,p=e.imgProps,h=e.sizes,v=e.src,m=e.srcSet,y=e.variant,g=void 0===y?"circular":y,k=(0,a.Z)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),b=null,x=function(e){var t=e.src,r=e.srcSet,n=i.useState(!1),a=n[0],o=n[1];return i.useEffect((function(){if(t||r){o(!1);var e=!0,n=new Image;return n.src=t,n.srcSet=r,n.onload=function(){e&&o("loaded")},n.onerror=function(){e&&o("error")},function(){e=!1}}}),[t,r]),a}({src:v,srcSet:m}),Z=v||m,S=Z&&"error"!==x;return b=S?i.createElement("img",(0,n.Z)({alt:r,src:v,srcSet:m,sizes:h,className:l.img},p)):null!=s?s:Z&&r?r[0]:i.createElement(c,{className:l.fallback}),i.createElement(f,(0,n.Z)({className:(0,o.Z)(l.root,l.system,l[g],u,!S&&l.colorDefault),ref:t},k),b)})),u=(0,s.Z)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(l)},95477:function(e,t,r){"use strict";var n=r(81225),a=r(44168),i=r(67294),o=(r(45697),r(86010)),s=r(52543),c=r(93871),l=44,u=i.forwardRef((function(e,t){var r=e.classes,s=e.className,u=e.color,d=void 0===u?"primary":u,f=e.disableShrink,p=void 0!==f&&f,h=e.size,v=void 0===h?40:h,m=e.style,y=e.thickness,g=void 0===y?3.6:y,k=e.value,b=void 0===k?0:k,x=e.variant,Z=void 0===x?"indeterminate":x,S=(0,a.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),D={},E={},_={};if("determinate"===Z||"static"===Z){var w=2*Math.PI*((l-g)/2);D.strokeDasharray=w.toFixed(3),_["aria-valuenow"]=Math.round(b),D.strokeDashoffset="".concat(((100-b)/100*w).toFixed(3),"px"),E.transform="rotate(-90deg)"}return i.createElement("div",(0,n.Z)({className:(0,o.Z)(r.root,s,"inherit"!==d&&r["color".concat((0,c.Z)(d))],{determinate:r.determinate,indeterminate:r.indeterminate,static:r.static}[Z]),style:(0,n.Z)({width:v,height:v},E,m),ref:t,role:"progressbar"},_,S),i.createElement("svg",{className:r.svg,viewBox:"".concat(22," ").concat(22," ").concat(l," ").concat(l)},i.createElement("circle",{className:(0,o.Z)(r.circle,p&&r.circleDisableShrink,{determinate:r.circleDeterminate,indeterminate:r.circleIndeterminate,static:r.circleStatic}[Z]),style:D,cx:l,cy:l,r:(l-g)/2,fill:"none",strokeWidth:g})))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(u)},36847:function(e,t,r){"use strict";var n;t.Z=void 0;var a=(0,((n=r(65129))&&n.__esModule?n:{default:n}).default)("M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z");t.Z=a},83968:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/upload/image/preview/page",function(){return r(24320)}])},24320:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return I}});var n=r(47568),a=r(26042),i=r(69396),o=r(828),s=r(20414),c=r(85893),l=r(67294),u=r(9008),d=r.n(u),f=r(11163),p=r(60253),h=r(72091),v=r(33681),m=r(8936),y=r(49384),g=r(61164),k=r(13048),b=r(92674),x=r(58366),Z=r(62284),S=r(38584),D=r(29077),E=r(57206),_=r(86263),w=r(73844),N=r(67702),I=!0;t.default=function(){var e,t=(0,f.useRouter)().query,r="string"===typeof t.id?t.id:"",u=(0,k.Z)(r?"/auth/page/".concat(r,"?for=preview"):null),I=u.data,P=u.mutate;(0,k.Z)((null===I||void 0===I?void 0:I.NextPageID)?"/auth/page/".concat(I.NextPageID,"?for=preview"):null);var C=(0,p.$G)().t,j=(0,h.Ds)().enqueueSnackbar,T=(0,b.Z)(),A=(0,o.Z)((0,g.o)(),2),B=A[0].disabled,M=A[1],z=(0,o.Z)(l.useState(!1),2),R=z[0],F=z[1],L=(0,o.Z)(l.useState(!1),2),O=L[0],U=L[1],q=null===I||void 0===I||null===(e=I.Pages)||void 0===e?void 0:e[0],H=(null===q||void 0===q?void 0:q.Body)||"[]",$="".concat((null===I||void 0===I?void 0:I.Title)||C("untitled")||""," - ").concat((null===q||void 0===q?void 0:q.Title)||C("untitled")||""),G=l.useMemo((function(){var e=[];try{e=JSON.parse(H)}catch(t){(0,y.kg)(t)}return e}),[H]),J=l.useCallback((function(){return F(!1)}),[]),V=l.useCallback((function(){return U(!1)}),[]),X=l.useCallback((function(){return M({type:"SET_DISABLED",payload:!0})}),[M]),W=l.useCallback((function(){return M({type:"SET_DISABLED",payload:!1})}),[M]),K=l.useCallback(function(){var e=(0,n.Z)((function(e){var t;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,P(e,!1)];case 1:return r.sent(),[3,3];case 2:return t=r.sent(),(0,y.kg)(t),[3,3];case 3:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}(),[P]),Q=l.useCallback((0,n.Z)((function(){var e,t,r,n;return(0,s.__generator)(this,(function(o){switch(o.label){case 0:if(!G.length)return j(C("content-is-empty"),{variant:"error"}),[2];if(M({type:"SET_DISABLED",payload:!0}),!(null===q||void 0===q?void 0:q.Unpublished))return[3,5];o.label=1;case 1:if(o.trys.push([1,4,,5]),!(null===q||void 0===q?void 0:q.ID))throw new Error("page.ID is undefined");return[4,T("/auth/page/".concat(q.ID),{method:"PUT",body:JSON.stringify({unpublished:!1})})];case 2:if(t=o.sent(),!(r=null===t||void 0===t||null===(e=t.Pages)||void 0===e?void 0:e[0]))throw new Error("newPage is undefined");return[4,P((0,i.Z)((0,a.Z)({},I),{Pages:[r]}),!1)];case 3:return o.sent(),[3,5];case 4:return n=o.sent(),(0,y.kg)(n),j((null===I||void 0===I?void 0:I.Published)?C("failed-to-publish-page"):C("failed-to-publish-post"),{variant:"error"}),M({type:"SET_DISABLED",payload:!1}),[2];case 5:return M({type:"SET_DISABLED",payload:!1}),(null===I||void 0===I?void 0:I.Published)?U(!0):F(!0),[2]}}))})),[I,M,j,T,G,P,null===q||void 0===q?void 0:q.ID,null===q||void 0===q?void 0:q.Unpublished,C]);return l.useEffect((function(){M({type:"SET_ON_PUBLISH",payload:Q})}),[M,Q]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d(),{children:(0,c.jsx)("title",{children:"Baskadia"})}),!I&&(0,c.jsx)(v.Z,{}),I&&(0,c.jsxs)(Z.Z,{component:"main",style:{margin:"16px auto"},children:[(0,c.jsxs)(_.Z,{children:[(0,c.jsx)(w.Z,{children:(0,c.jsx)(x.Z,{content:I})}),!G.length&&(0,c.jsx)(w.Z,{children:(0,c.jsx)(m.Z,{severity:"error",variant:"filled",children:C("content-is-empty")})}),(0,c.jsx)(E.Z,{items:G,title:$}),(0,c.jsx)(N.Z,{content:I})]}),(0,c.jsx)(D.Z,{content:I,disabled:B,open:R,onClose:J,onDisable:X,onEnable:W,onContentUpdate:K}),(0,c.jsx)(S.Z,{content:I,open:O,onClose:V})]})]})}}},function(e){e.O(0,[3576,868,3138,2387,4794,9803,3322,3518,5992,3934,8265,8477,1122,9375,9774,2888,179],(function(){return t=83968,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.