PageSourceSearch

https://samugiken.com/_next/static/chunks/pages/admin/blog/[blogId]-0d29951d4aa044c2.js

js samugiken.com collected 2026-10-07 01:50:31 UTC 25,540 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8992,9810],{33540:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/blog/[blogId]",function(){return n(96636)}])},4180:function(e,t){"use strict";t.Z={src:"/_next/static/media/samu-giken.1bf2ec60.webp",height:549,width:1920,blurDataURL:"data:image/webp;base64,UklGRmQAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAAGjk6MjtENBAZNi4qQzcvCgBWUDggLAAAAJABAJ0BKggAAgACQDgloAJ0ugADmAD+6ez/dAAp+z/+0s/+pZ/9Sz/NAAAA",blurWidth:8,blurHeight:2}},49810:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var l=n(52676),a=n(75271),i=n(46035),r=n(33022),s=n(40150),o=n(28994),d=n(85304),u=n(4180),c=n(16624),p=n(27026),m=n.n(p),h=n(78051),x=n(98807),f=n(15036),g=n(32623),v=n.n(g);let b=e=>{let{isMobile:t,isDrawerOpen:n,setIsDrawerOpen:a,collapsed:i,setCollapsed:r,fullName:s}=e,{logout:o}=(0,d.a)();return(0,l.jsxs)("div",{style:{borderBottom:"1px solid #e8e8e8",position:"fixed",width:"100%",zIndex:100},className:"flex items-center justify-between h-16 px-6 bg-white",children:[(0,l.jsxs)("div",{className:"flex items-center h-full gap-2",children:[(0,l.jsx)(h.ZP,{onClick:()=>{t?a(!n):r(!i)},"aria-controls":"sidebar",className:"flex items-center justify-center w-8 px-1 py-0",icon:(0,l.jsx)("svg",{className:"w-5 h-5 text-gray-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})}),!t&&(0,l.jsx)(m(),{href:"/",className:"h-full",children:(0,l.jsx)(v(),{src:u.Z,alt:"Samugiken",className:"w-[100%] h-[60px]"})})]}),(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"flex items-center justify-center col-row",children:(0,l.jsx)(x.Z,{arrow:!0,placement:"bottomRight",overlayClassName:"shadow-[rgba(0,0,0,0.35)_0_5px_15px] rounded-xl top-10",trigger:["click"],dropdownRender:()=>(0,l.jsxs)("div",{className:"flex flex-col p-3 bg-white rounded-md shadow-md gap-y-1",children:[(0,l.jsx)(m(),{href:"/my-profile",className:"font-medium leading-[normal] text-primary hover:text-primary",children:(0,l.jsx)("div",{className:"cursor-pointer rounded-[4px]  p-3 duration-100 hover:bg-primary/10",children:"My Profile"})}),(0,l.jsx)(f.Z,{className:"!my-2"}),(0,l.jsx)(h.ZP,{type:"primary",danger:!0,onClick:o,children:"Logout"})]}),children:(0,l.jsxs)("div",{className:"flex items-center cursor-pointer gap-x-3",children:[(0,l.jsx)("div",{className:"flex items-center gap-2 ml-2",children:(0,l.jsx)("span",{className:"font-semibold",children:s})}),(0,l.jsx)(c.ZP,{name:s,round:!0,maxInitials:1,size:"35",textSizeRatio:2,fgColor:"white",color:"black"})]})})})})]})};var j=n(73640),y=n(62581),N=n(26134),A=n(1952),w=n(7144),Z=n(42439),I=n(88483),E=n(42720),C=n(43146),k=n(57221),R=n(84176),T=n(54216),S=n(12285),D=n(20188),_=n(19254);let O=e=>{var t,n,i,r,s,o,u,c,p,h,x;let{activeMenu:f,activeDropdown:g}=e,[v,b]=(0,a.useState)(f),{user:O}=(0,d.a)(),P=null==O?void 0:O.role.accessRights,U=e=>{b([e])},L=[{key:"dashboard",label:(0,l.jsx)(m(),{href:y.Z.ADMIN_DASHBOARD,children:"Dashboard"}),icon:(0,l.jsx)(A.Z,{width:16,height:16}),onClick:()=>U("dashboard")},...(0,N.f)(null==P?void 0:null===(t=P.PRODUCT)||void 0===t?void 0:t.READ,[{key:"product",label:(0,l.jsx)(m(),{href:y.Z.PRODUCT,children:"Product"}),icon:(0,l.jsx)(w.Z,{width:16,height:16}),onClick:()=>U("product")}]),...(0,N.f)(null==P?void 0:null===(n=P.REVIEW)||void 0===n?void 0:n.READ,[{key:"review",label:(0,l.jsx)(m(),{href:y.Z.REVIEW,children:"Reviews"}),icon:(0,l.jsx)(Z.Z,{width:16,height:16}),onClick:()=>U("review")}]),...(0,N.f)(null==P?void 0:null===(i=P.WARRANTY)||void 0===i?void 0:i.READ,[{key:"warranty",label:"Warranty",icon:(0,l.jsx)(_.Z,{width:16,height:16}),children:[{key:"warranty-register",label:(0,l.jsx)(m(),{href:y.Z.WARRANTY_REGISTER,children:"Warranty Register"}),onClick:()=>U("warranty-register")},{key:"warranty-claim",label:(0,l.jsx)(m(),{href:y.Z.WARRANTY_CLAIM,children:"Warranty Claim"}),onClick:()=>U("warranty-claim")}]}]),...(0,N.f)(null==P?void 0:null===(r=P.COUPON)||void 0===r?void 0:r.READ,[{key:"c
1oupon",label:(0,l.jsx)(m(),{href:y.Z.COUPON,children:"Coupon"}),icon:(0,l.jsx)(I.Z,{width:16,height:16}),onClick:()=>U("coupon")}]),...(0,N.f)(null==P?void 0:null===(s=P.ORDER)||void 0===s?void 0:s.READ,[{key:"order",label:(0,l.jsx)(m(),{href:y.Z.ORDER,children:"Orders"}),icon:(0,l.jsx)(_.Z,{width:16,height:16}),onClick:()=>U("order")},{key:"abandonment",label:(0,l.jsx)(m(),{href:y.Z.ABANDONMENT,children:"Abandonment"}),icon:(0,l.jsx)(E.Z,{width:16,height:16}),onClick:()=>U("abandonment")}]),...(0,N.f)(null==P?void 0:null===(o=P.BLOG)||void 0===o?void 0:o.READ,[{key:"blog",label:(0,l.jsx)(m(),{href:y.Z.BLOG,children:"Blog"}),icon:(0,l.jsx)(C.Z,{width:16,height:16}),onClick:()=>U("blog")}]),...(0,N.f)(null==P?void 0:null===(u=P.OUR_PARTNERS)||void 0===u?void 0:u.READ,[{key:"our-partners",label:(0,l.jsx)(m(),{href:y.Z.OUR_PARTNERS,children:"Our Partners"}),icon:(0,l.jsx)(k.Z,{width:16,height:16}),onClick:()=>U("our-partners")}]),...(0,N.f)(null==P?void 0:null===(c=P.CONTENT_MANAGEMENT)||void 0===c?void 0:c.READ,[{key:"content",label:"Content Management",icon:(0,l.jsx)(R.Z,{width:16,height:16}),children:[{key:"content-banners",label:(0,l.jsx)(m(),{href:y.Z.CONTENT_BANNER,children:"Banners"}),onClick:()=>U("content-banners")},{key:"content-reviews",label:(0,l.jsx)(m(),{href:y.Z.CONTENT_REVIEW,children:"Customer Reviews"}),onClick:()=>U("content-reviews")},{key:"content-videos",label:(0,l.jsx)(m(),{href:y.Z.CONTENT_VIDEO,children:"Product Videos"}),onClick:()=>U("content-videos")},{key:"content-popups",label:(0,l.jsx)(m(),{href:y.Z.CONTENT_POPUP,children:"Popups"}),onClick:()=>U("content-popups")}]}]),...(0,N.f)(null==P?void 0:null===(p=P.USER)||void 0===p?void 0:p.READ,[{key:"user",label:(0,l.jsx)(m(),{href:y.Z.USER,children:"User"}),icon:(0,l.jsx)(T.Z,{width:16,height:16}),onClick:()=>U("user")}]),...(0,N.f)(null==P?void 0:null===(h=P.ROLE)||void 0===h?void 0:h.READ,[{key:"role",label:(0,l.jsx)(m(),{href:y.Z.ROLE,children:"Role"}),icon:(0,l.jsx)(S.Z,{width:16,height:16}),onClick:()=>U("role")}]),...(0,N.f)(null==P?void 0:null===(x=P["SYSTEM_CONFIG/CATEGORY"])||void 0===x?void 0:x.READ,[{key:"system-config",label:(0,l.jsx)(m(),{href:y.Z.SYSTEM_CONFIG,children:"System Config"}),icon:(0,l.jsx)(D.Z,{width:16,height:16}),onClick:()=>U("category")}])];return(0,l.jsx)(j.Z,{theme:"light",mode:"inline",defaultOpenKeys:g||[],defaultSelectedKeys:v,items:L,className:"h-full font-medium"})};var P=n(63309);let{Sider:U,Content:L}=r.default;var M=e=>{let{children:t,user:n,activeMenu:c=[],activeDropdown:p=[],seoConfig:m,withPadding:h=!0,card:x=!0,contentClassName:f}=e,g=(0,o.ac)("(max-width: 768px)"),[j,y]=(0,a.useState)(!1),[N,A]=(0,a.useState)(!1);return(0,l.jsx)(d.H,{user:n,children:(0,l.jsxs)(r.default,{className:"!min-h-screen",children:[(0,l.jsx)(i.PB,{...m}),(0,l.jsx)(b,{isMobile:g,isDrawerOpen:N,setIsDrawerOpen:A,collapsed:j,setCollapsed:y,fullName:(null==n?void 0:n.firstName)+" "+(null==n?void 0:n.lastName)||""}),(0,l.jsx)("div",{className:"mt-[64px]"}),(0,l.jsxs)(r.default,{hasSider:!0,style:{minHeight:"100%"},children:[g?(0,l.jsx)(s.Z,{placement:"left",open:N,onClose:()=>A(!1),width:"250px",styles:{body:{padding:0}},closable:!1,children:(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("div",{className:"py-2",children:(0,l.jsx)(v(),{src:u.Z,alt:"Samugiken",className:"w-[100%] h-[70px]"})}),(0,l.jsx)(O,{activeMenu:c,activeDropdown:p})]})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:j?"duration-200 ml-[80px]":"duration-200 ml-[250px]"}),(0,l.jsx)(U,{trigger:null,collapsible:!0,collapsed:j,theme:"light",width:250,className:"hide-scrollbar",style:{overflow:"scroll",position:"fixed",marginTop:"64px",left:0,top:0,bottom:0,zIndex:100},children:(0,l.jsx)(O,{activeMenu:c,activeDropdown:p})})]}),(0,l.jsx)(L,{className:(0,P.cn)("min-h-full",h&&"px-3 py-5 md:p-9"),children:(0,l.jsx)("div",{className:(0,P.cn)(x&&"rounded-lg bg-white p-8 shadow-sm",f),children:t})})]})]})})}},5409:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var l=n(15989),a=n(39771),i=n(91340);let r=l.Z.create({baseURL:a.T5+"/api",headers:{"Content-Type":"application/json"},withCredentials:!0});r.interceptors.request.use(e=>{if((0,i.rD)()){let t=(0,i.Zd)();t&&(e.headers=e.headers||{},e.headers["x-session-id"]=t)}else e.headers&&e.headers["x-session-id"]&&delete e.headers["x-session-id"];return e});let s=l.Z.create({baseURL:a.T5+"/api",headers:{"Content-Type":"multipart/form-data"},maxContentLength:1/0,maxBodyLength:1/0,withCredentials:!0});t.Z=r},85304:function(e,t,n){"use strict";n.d(t,{H:function(){return m},a:function(){return h}});var l=n(52676),a=n(75271),i=n(76517),r=n(73414),s=n(71030),o=n(83214),d=n(62581),u=n(69504),c=n(91340);let p=(0,a.createContext)(null),m=e=>{let{children:t,user:n}=e,m=(0,r.useRouter)(),{mutate:h}=(0,s.D)({mutationFn:u.kS,onError:e=>i.Am.error((0,o._g)(e)),onSuccess:()=>{m.push(d.Z.LOGIN)}});return(0,a.useEffect)(()=>{n?(0,c.hv)():(0,c.wN)()},[n]),(0,l.jsx)(p.Provider,{value:{user:n,logout:h},children:t})},h=()=>{let e=(0,a.useContext)(p);if(!e)throw Error("useAuth must be used within a AuthProvider");return e}},42689:function(e,t,n){"use strict";var l,a;n.d(t,{s:function(){return l}}),(a=l||(l={})).PUBLISHED="PUBLISHED",a.UNPUBLISHED="UNPUBLISHED"},86516:function(e,t,n){"use strict";var l=n(52676),a=n(43532),i=n(78051),r=n(57786),s=n(57065),o=n(29607),d=n(76517),u=n(39771),c=n(83471),p=n(88290);let{Dragger:m}=a.default;t.Z=e=>{let{value:t,onChange:n,disabled:h,aspect:x}=e;if(t)return(0,l.jsxs)("div",{className:"relative w-full h-32",children:[(0,l.jsx)("img",{src:t.url,alt:t.name,className:"object-contain w-full h-full rounded-lg border border-gray-200 bg-neutral-50"}),(0,l.jsx)("div",{className:"absolute top-2 right-2",children:(0,l.jsx)(i.ZP,{danger:!0,size:"small",icon:(0,l.jsx)(s.Z,{size:12}),onClick:()=>n(null),disabled:h})})]});let f=(0,l.jsxs)(m,{disabled:h,customRequest:e=>
1(0,c.c)(p.T.CONTENT_IMAGE,e),showUploadList:!1,onChange:e=>{"done"===e.file.status&&n(e.file.response)},beforeUpload:e=>!(e.size/1024/1024>u.Pg)||(d.Am.error("File too large (max ".concat(u.Pg,"MB)")),a.default.LIST_IGNORE),children:[(0,l.jsx)(o.Z,{size:40,className:"mx-auto"}),(0,l.jsx)("p",{children:"Click or drag image to upload"})]});return(0,l.jsx)("div",{className:"h-32 [&_.ant-upload-wrapper]:!h-full [&_.ant-upload-drag]:!h-full",children:x?(0,l.jsx)(r.Z,{aspect:x,children:f}):f})}},83471:function(e,t,n){"use strict";n.d(t,{$:function(){return r},c:function(){return i}});var l=n(5409),a=n(22903);let i=async(e,t,n)=>{let i=new FormData;i.append("file",t.file);try{let r=await l.J.post(null!=n?n:"/file/upload/".concat(e),i),s=(0,a.I)(r.data.key),o={uid:r.data.refId,name:r.data.name,url:s,status:"done",type:t.file.type,originFileObj:t.file};t.onSuccess(o)}catch(e){t.onError(e)}},r=async(e,t,n)=>{let i=new FormData;i.append("video",t.file);try{let r=await l.J.post(null!=n?n:"/video/upload/".concat(e),i),s=(0,a.I)(r.data.key),o={uid:r.data.refId,name:r.data.name,url:s,status:"done",type:t.file.type,originFileObj:t.file};return t.onSuccess(o),{success:!0,fileObject:o}}catch(e){return t.onError(e),{success:!1,error:e.response.data.message}}}},88290:function(e,t,n){"use strict";var l,a,i,r;n.d(t,{T:function(){return l},Z:function(){return a}}),(i=l||(l={})).PRODUCT_IMAGE="product-image",i.BLOG_IMAGE="blog-image",i.WARRANTY_CLAIM="warranty-claim",i.REVIEW="review",i.CONTENT_IMAGE="content-image",(r=a||(a={})).warranty_claim="warranty-claim",r.description="product-description",r.review="review"},96636:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return F}});var l=n(52676),a=n(49810),i=n(75271),r=n(33561),s=n(69834),o=n(71030),d=n(76517),u=n(52043),c=n.n(u),p=n(97589),m=n.n(p),h=n(57786),x=n(99388),f=n(4948),g=n(43532),v=n(18060),b=n(99508),j=n(78051),y=n(29350),N=n(77471),A=n(3833),w=n(21844),Z=n(88463),I=n(97897),E=n(39649),C=n(58929),k=n(2194),R=n(94799),T=n(29607),S=n(42689),D=n(33782),_=n(83214),O=n(88290),P=n(83471),U=n(22903),L=n(86516),M=n(39771);let{Option:B}=f.default,{Dragger:z}=g.default;var F=!0;t.default=e=>{var t,n,u,p;let{user:F}=e,{blogId:H}=(0,r.useRouter)().query,[G]=v.Z.useForm(),W=v.Z.useWatch("status",G),V=v.Z.useWatch("popupActive",G),[Y,q]=(0,i.useState)(null),[J,Q]=(0,i.useState)(null),[K,X]=(0,i.useState)(null),$=(0,s.a)({queryKey:["blog",H],enabled:!!H,queryFn:async()=>await (0,D.zv)({id:H}),select:e=>e.data});(0,i.useEffect)(()=>{var e,t,n,l,a,i,r,s,o;$.data&&($.data.featuredImage&&q({uid:(null===(e=$.data.featuredImage)||void 0===e?void 0:e.refId)||"",name:(null===(t=$.data.featuredImage)||void 0===t?void 0:t.name)||"",type:(null===(n=$.data.featuredImage)||void 0===n?void 0:n.mimeType)||"",status:"done",url:(0,U.I)((null===(l=$.data.featuredImage)||void 0===l?void 0:l.key)||"")}),$.data.popupDesktopImage&&Q({uid:$.data.popupDesktopImage.refId,name:$.data.popupDesktopImage.name,url:(0,U.I)($.data.popupDesktopImage.key),status:"done"}),$.data.popupMobileImage&&X({uid:$.data.popupMobileImage.refId,name:$.data.popupMobileImage.name,url:(0,U.I)($.data.popupMobileImage.key),status:"done"}),G.setFieldsValue({title:$.data.title,slug:$.data.slug,content:$.data.content||"",status:$.data.status||S.s.UNPUBLISHED,publishedAt:$.data.publishedAt?c()($.data.publishedAt):null,tags:$.data.tags||[],popupActive:null!==(a=$.data.popupActive)&&void 0!==a&&a,popupLink:null!==(i=$.data.popupLink)&&void 0!==i?i:"",popupCtaText:null!==(r=$.data.popupCtaText)&&void 0!==r?r:"",popupScrollPercent:null!==(s=$.data.popupScrollPercent)&&void 0!==s?s:50,popupTabText:null!==(o=$.data.popupTabText)&&void 0!==o?o:""}))},[$.data,G]);let ee=(0,o.D)({mutationFn:D.zZ,onSuccess:()=>{$.refetch()}}),et=(0,i.useMemo)(()=>{var e,t;let n=null===(e=$.data)||void 0===e?void 0:e.refId,l=null===(t=$.data)||void 0===t?void 0:t.slug;return n&&l?"/blog/".concat(n,"/").concat(l):null},[null===(t=$.data)||void 0===t?void 0:t.refId,null===(n=$.data)||void 0===n?void 0:n.slug]),en=$.isLoading||$.isFetching||(null===(u=$.data)||void 0===u?void 0:u.status)!==S.s.PUBLISHED||!(null===(p=$.data)||void 0===p?void 0:p.publishedAt)||!et;return(0,l.jsx)(a.Z,{user:F,activeMenu:["blog"],card:!1,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex items-center justify-end mb-6",children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(j.ZP,{htmlType:"button",icon:(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(k.Z,{size:16})}),disabled:en,onClick:()=>{et&&window.open(et,"_blank","noopener,noreferrer")},children:"Preview"}),(0,l.jsx)(j.ZP,{type:"primary",htmlType:"submit",icon:(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(R.Z,{size:16})}),loading:ee.isPending,disabled:ee.isPending,onClick:()=>G.submit(),children:"Save Blog"})]})}),(0,l.jsx)(v.Z,{form:G,layout:"vertical",autoComplete:"off",onFinish:e=>{var t,n,l,a,i,r,s,o;if(!(null==Y?void 0:Y.uid)){G.setFields([{name:"coverImage",errors:["Cover image is required"]}]);return}if(e.popupActive&&(!(null==J?void 0:J.uid)||!(null==K?void 0:K.uid))){d.Am.error("An active popup needs both a desktop and a mobile image");return}let u={id:H,title:null===(t=e.title)||void 0===t?void 0:t.trim(),slug:e.slug,content:e.content||"",status:e.status,publishedAt:e.status===S.s.PUBLISHED?e.publishedAt:null,featuredImageId:Y.uid,tags:e.tags||[],popupActive:null!==(i=e.popupActive)&&void 0!==i&&i,popupDesktopImageId:null!==(r=null==J?void 0:J.uid)&&void 0!==r?r:null,popupMobileImageId:null!==(s=null==K?void 0:K.uid)&&void 0!==s?s:null,popupLink:(null===(n=e.popupLink)||void 0===n?void 0:n.trim())?e.popupLink.trim():null,popupCtaText:(null===(l=e.popupCtaText)||void 0===l?void 0:l.trim())?e.popupCtaText.trim():null,popupScrollPercent:null!==(o=e.popupScrollPercent)&&void 0!==o?o:null,popupTabText:(null===(a=e.popupTabText)||void 0===a?void 0:a.trim())?e.popupTabText.trim():null};d.Am.promise(ee.mutateAsync(u),{pending:"Updating blog...",success:"Blog updated successfully",error:{render(e){let{data:t}=e;return"Failed to update blog: "+(0,_._g)(t)}}})},onValuesChange:e=>{"status"in e&&e.status!==S.s.PUBLISHED&&G.setFieldValue("publishedAt",null)},validateMessages:{required:"${label} is required"},initialValues:{status:S.s.UNPUBLISHED},children:(0,l.jsxs)(y.Z,{gutter:24,children:[(0,l.jsx)(N.Z,{span:16,children:(0,l.jsxs)(A.Z,{title:"Blog Information",className:"!mb-6",children:[(0,l.jsxs)(y.Z,{gutter:16,children:[(0,l.jsx)(N.Z,{span:24,children:(0,l.jsx)(v.Z.Item,{name:"title",label:"Title",rules:[{required:!0}],children:(0,l.jsx)(w.default,{onBlur:e=>{G.setFieldValue("slug",m()(e.target.value||"",{lower:!0}))}})})}),(0,l.jsx)(N.Z,{span:12,children:(0,l.jsx)(v.Z.Item,{name:"slug",label:"Slug",hidden:!0,children:(0,l.jsx)(w.default,{disabled:!0})})})]}),(0,l.jsx)(v.Z.Item,{name:"content",label:"Content",trigger:"onEditorChange",className:"mb-5",labelCol:{flex:"35px"},layout:"vertical",rules:[{required:!0}],children:(0,l.jsx)(x.M,{tinymceScriptSrc:"/tinymce/js/tinymce/tinymce.min.js",init:{contextmenu:!1,invalid_elements:"pre",menubar:!1,height:800,plugins:["advlist","autolink","lists","link","searchreplace","code","preview","wordcount","
1image","fullscreen"],block_formats:"Header 1=h1;Header 2=h2;Header 3=h3;Paragraph=p",toolbar:"blocks |numlist bullist |link |bold italic |image |undo redo |subscript superscript |alignleft aligncenter alignright alignjustify |outdent indent |fontsize |forecolor backcolor |fullscreen",content_style:"@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;700&display=swap'); body { font-family: 'Manrope', sans-serif; font-size:14px }img {max-width: 100%; height: auto;}h2 {margin-top: 1.5rem; margin-bottom: 0}p {margin: 0; padding-top: 0.5rem; padding-bottom: 1rem;}table {border-color: rgb(229,231,235); border-width: 1px; border-style: solid}tr {border-color: rgb(229,231,235); border-width: 1px; border-style: solid}td {border-color: rgb(229,231,235); border-width: 1px; border-style: solid; padding: 0.75rem}",object_resizing:!1,promotion:!1,images_upload_handler:e=>new Promise(async(t,n)=>{try{let l=e.blob(),a=l.size/1024/1024,i=M.zo;if(a>i)return n({message:"File too large",remove:!0});let r=await (0,D.F8)(l);t((0,U.I)(r.data.key))}catch(e){n(e)}}),paste_data_images:!0,paste_as_text:!0,extended_valid_elements:"h2[class=content-title]",relative_urls:!1}})})]})}),(0,l.jsxs)(N.Z,{span:8,children:[(0,l.jsxs)(A.Z,{title:"Status & Visibility",className:"!mb-6",children:[(0,l.jsx)(v.Z.Item,{name:"status",label:"Status",rules:[{required:!0}],children:(0,l.jsxs)(f.default,{children:[(0,l.jsx)(B,{value:S.s.PUBLISHED,children:"Published"}),(0,l.jsx)(B,{value:S.s.UNPUBLISHED,children:"Unpublished"})]})}),W===S.s.PUBLISHED&&(0,l.jsx)(v.Z.Item,{name:"publishedAt",label:"Publish Date",rules:[{required:!0}],children:(0,l.jsx)(Z.default,{showTime:!0,className:"w-full",format:"YYYY-MM-DD HH:mm"})})]}),(0,l.jsx)(A.Z,{title:"Tags",className:"!mb-6",children:(0,l.jsx)(v.Z.Item,{name:"tags",label:"Tags",tooltip:"Type a tag and press Enter. Tags are free text and help customers find related posts.",children:(0,l.jsx)(f.default,{mode:"tags",allowClear:!0,tokenSeparators:[","],placeholder:"Add tags...",open:!1,suffixIcon:null})})}),(0,l.jsx)(A.Z,{title:"Blog Image (16:9)",className:"!mb-6",children:Y?(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex justify-center pb-3",children:(0,l.jsx)(I.Z,{src:Y.url,alt:"Blog cover image"})}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(j.ZP,{danger:!0,size:"large",onClick:()=>{q(null)},children:"Remove"})})]}):(0,l.jsx)(v.Z.Item,{name:"coverImage",label:"Cover Image",valuePropName:"fileList",getValueFromEvent:e=>Array.isArray(e)?e:null==e?void 0:e.fileList,rules:[{required:!0}],children:(0,l.jsx)(h.Z,{aspect:16/9,children:(0,l.jsxs)(z,{customRequest:e=>(0,P.c)(O.T.BLOG_IMAGE,e,"/admin/blog/blog-featured-image"),showUploadList:!1,onChange:e=>{"done"===e.file.status&&q(e.file.response)},beforeUpload:e=>!(e.size/1024/1024>M.fT)||(d.Am.error("File too large"),g.default.LIST_IGNORE),children:[(0,l.jsx)(T.Z,{size:48}),(0,l.jsx)("p",{children:"Click or drag file to this area to upload"})]})})})}),(0,l.jsxs)(A.Z,{title:"Scroll Popup (optional)",className:"!mb-6",children:[(0,l.jsx)(v.Z.Item,{name:"popupActive",label:"Show popup on this blog",valuePropName:"checked",children:(0,l.jsx)(E.Z,{})}),V&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsxs)("p",{className:"mb-1 text-sm",children:[(0,l.jsx)("span",{className:"text-red-500",children:"*"})," Desktop Image"]}),(0,l.jsx)(L.Z,{value:J,onChange:Q})]}),(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsxs)("p",{className:"mb-1 text-sm",children:[(0,l.jsx)("span",{className:"text-red-500",children:"*"})," Mobile Image"]}),(0,l.jsx)(L.Z,{value:K,onChange:X})]}),(0,l.jsx)(v.Z.Item,{name:"popupLink",label:"Link (optional)",children:(0,l.jsx)(w.default,{placeholder:"https://… (where the popup / button redirects)"})}),(0,l.jsx)(v.Z.Item,{name:"popupCtaText",label:"CTA button text (optional)",children:(0,l.jsx)(w.default,{placeholder:"e.g. Sign Up (leave blank to hide the button)"})}),(0,l.jsx)(v.Z.Item,{name:"popupScrollPercent",label:"Show after scrolling (%)",tooltip:"The popup appears once the reader scrolls past this percentage of the article.",rules:[{required:!0}
1],children:(0,l.jsx)(C.Z,{min:0,max:100,className:"w-full",addonAfter:"%"})}),(0,l.jsx)(v.Z.Item,{name:"popupTabText",label:"Side tab label",tooltip:"Text shown on the sticky tab at the right edge that reopens the popup. Defaults to 'Offer' if left blank.",children:(0,l.jsx)(w.default,{maxLength:30,placeholder:"e.g. Offer"})})]})]})]})]})})]})})}},69504:function(e,t,n){"use strict";n.d(t,{A9:function(){return d},IU:function(){return i},c0:function(){return o},kS:function(){return r},o9:function(){return s},x4:function(){return a}});var l=n(5409);let a=async e=>l.Z.post("/auth/login",e),i=async e=>l.Z.post("/auth/signup",e),r=async()=>l.Z.post("/auth/logout"),s=async e=>l.Z.post("/auth/forget-password",e),o=async e=>l.Z.post("/auth/password-reset/confirm",e),d=async e=>l.Z.post("/auth/verify-user",e)},33782:function(e,t,n){"use strict";n.d(t,{De:function(){return a},F8:function(){return c},Vh:function(){return r},X4:function(){return d},YO:function(){return o},sd:function(){return u},zZ:function(){return s},zv:function(){return i}});var l=n(5409);let a=e=>l.Z.get("/admin/blog",{params:e}),i=e=>l.Z.get("/admin/blog/".concat(e.id)),r=e=>l.Z.post("/admin/blog",e),s=e=>l.Z.put("/admin/blog/".concat(e.id),e),o=e=>l.Z.put("/admin/blog/".concat(e.id,"/status"),e),d=e=>l.Z.delete("/admin/blog/".concat(e.id)),u=e=>l.Z.get("/public/blog",{params:e}),c=async e=>{let t=new FormData;return t.append("file",e),l.J.post("/admin/blog/blog-featured-image",t)}},62581:function(e,t,n){"use strict";var l,a;n.d(t,{Z:function(){return l}}),(a=l||(l={})).LOGIN="/login",a.ADMIN_DASHBOARD="/admin/dashboard",a.HOME="/",a.USER="/admin/user",a.ROLE="/admin/role",a.NEW_ROLE="/admin/role/new",a.SYSTEM_CONFIG="/admin/system-config",a.PRODUCT="/admin/product",a.BLOG="/admin/blog",a.ORDER="/admin/order",a.ABANDONMENT="/admin/abandonment",a.WARRANTY_REGISTER="/admin/warranty-register",a.WARRANTY_CLAIM="/admin/warranty-claim",a.COUPON="/admin/coupon",a.OUR_PARTNERS="/admin/our-partners",a.REVIEW="/admin/review",a.CONTENT_BANNER="/admin/content/banners",a.CONTENT_REVIEW="/admin/content/reviews",a.CONTENT_VIDEO="/admin/content/videos",a.CONTENT_POPUP="/admin/content/popups"},26134:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});let l=(e,t,n)=>void 0===t?void 0!==n?n:Array.isArray(t)?[]:{}:e?t:void 0!==n?n:Array.isArray(t)?[]:{}},83214:function(e,t,n){"use strict";n.d(t,{_g:function(){return i},i$:function(){return r}});var l=n(52043),a=n.n(l);let i=e=>{if("response"in e){var t,n;return null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.message}return e.message},r=(e,t)=>{let n=a()(e);return e&&n.isValid()?a()(e).format("DD MMM YYYY, hh:mm a"):t||null}},22903:function(e,t,n){"use strict";n.d(t,{B:function(){return a},I:function(){return l}});let l=e=>"".concat("https://cdn.samugiken.com","/").concat("production","/").concat(encodeURIComponent(e)),a=e=>"".concat("https://cdn.samugiken.com","/").concat("production","/").concat(encodeURIComponent(e))},91340:function(e,t,n){"use strict";n.d(t,{Zd:function(){return i},hv:function(){return s},rD:function(){return o},wN:function(){return r}});let l="session_id",a="session_header_enabled";function i(){try{let e=localStorage.getItem(l);if(e&&e.length>0)return e;let t="undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():d();return localStorage.setItem(l,t),t}catch(e){return d()}}function r(){try{localStorage.setItem(a,"1")}catch(e){}}function s(){try{localStorage.setItem(a,"0"),localStorage.removeItem(l)}catch(e){}}function o(){try{return"1"===localStorage.getItem(a)}catch(e){return!1}}function d(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}},function(e){e.O(0,[5989,4237,7610,8174,9834,8051,9513,4540,928,4298,4190,6631,6220,9575,7444,9406,150,1887,5934,8060,7645,8463,3532,6138,8929,7897,3037,2888,9774,179],function(){return e(e.s=33540)}),_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.