1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[479],{6878:function(n,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cms/animal/$element/animal.fact",function(){return a(8586)}])},7752:function(n,t,a){"use strict";a.d(t,{Z:function(){return d}});var e=a(5893);a(7294);var c=a(3665),l=a.n(c),s=a(3990),o=a(5089),r=a(1664),i=a.n(r);function d(n){let{children:t,className:a="",color:c,variant:r,disabled:d,onClick:u,loading:_,active:m,activeColor:x,rounded:f,size:b,href:p,target:h}=n,v=["primary","secondary","gray","danger"],g=["filled","outlined","text"],N=v.find(n=>n===(m&&x||c))||v[0],j=g.find(n=>n===r)?r:g[0],y=["xs","sm","md","lg"].find(n=>n===b)?b:"md",w=["normal","full"].find(n=>n===f)?f:"normal",C=(0,o.y)(l(),["btn","btn--".concat(N),"btn--".concat(j),"btn--".concat(y),"btn--rounded","btn--rounded--".concat(w)]),k=p?i():"button";return _||d?(0,e.jsx)("div",{className:"".concat(C," ").concat(a),disabled:_||d,children:_?(0,e.jsx)(s.Cd,{className:"text-lg animate-spin"}):t}):(0,e.jsx)(k,{href:p,target:h,className:"".concat(C," ").concat(a),disabled:d,onClick:n=>{!d&&u&&u(n)},"aria-label":m?"active":"",children:t})}},1075:function(n,t,a){"use strict";a.d(t,{F:function(){return o},Z:function(){return s}});var e=a(5893);a(7294);var c=a(3258),l=a.n(c);function s(n){let{id:t,children:a,className:c="",shadow:s,thisRef:o,loading:r,style:i}=n,d=["sm","default","md","lg","xl","2xl","none"].find(n=>n===s)?s:"default",u="".concat(l().card," ").concat(l()["card--shadow-".concat(d)]," ").concat(c);return(0,e.jsxs)("div",{id:t,ref:o,className:u,style:i,children:[r&&(0,e.jsx)("div",{className:"absolute inset-0 w-full h-full rounded bg-slate-300"}),a]})}let o=l()},1354:function(n,t,a){"use strict";a.d(t,{Z:function(){return l}});var e=a(5893);a(7294);var c=a(1075);function l(n){let{children:t,className:a="",padding:l,component:s}=n,o=["sm","md","lg","xl","2xl"].find(n=>n===l)?l:"md",r=s||"div";return(0,e.jsx)(r,{className:"".concat(c.F.card__content," ").concat(c.F["padding--".concat(o)]," ").concat(a),children:t})}},9413:function(n,t,a){"use strict";a.d(t,{Z:function(){return s}});var e=a(5893);a(7294);var c=a(7333),l=a.n(c);function s(n){return(0,e.jsx)("input",{...n,className:"".concat(l().input," ").concat((null==n?void 0:n.className)||"")})}s.styles=l()},2421:function(n,t,a){"use strict";a.d(t,{Z:function(){return o}});var e=a(5893);a(7294);var c=a(8973),l=a(587),s=a.n(l);function o(n){let{id:t,containerClassName:a="",className:l="",children:o,label:r,endAdornment:i,startAdornment:d,note:u,noteTypographyProps:_={},validation:m,validationTypographyProps:x={},focused:f,border:b=!0,required:p}=n;return(0,e.jsxs)("label",{id:t,className:"".concat(s().input__container," ").concat(a),children:[r&&(0,e.jsxs)("div",{className:"text-xs font-semibold",children:[r,p&&(0,e.jsx)("span",{className:"text-danger",children:"*"})]}),(0,e.jsxs)("div",{className:"".concat(s().input__content," ").concat(!b&&s()["input__content--borderless"]," ").concat(l),"aria-label":f?"focus":m?"validation":"",children:[d,o,i]}),u&&(0,e.jsx)(c.Z,{..._,variant:"body2",children:u}),m&&(0,e.jsx)(c.Z,{...x,variant:"body2",className:"text-danger ".concat((null==x?void 0:x.className)||""),children:m})]})}},2772:function(n,t,a){"use strict";a.d(t,{Z:function(){return o}});var e=a(5893),c=a(7294),l=a(2421),s=a(9413);function o(n){var t;let{id:a,containerClassName:o="",className:r="",children:i,label:d,endAdornment:u,startAdornment:_,note:m,noteTypographyProps:x={},validation:f,validationTypographyProps:b={},textareaProps:p={},focused:h,value:v,onChange:g,name:N,rows:j}=n,[y,w]=(0,c.useState)(!1),C={onFocus:n=>{w(!0),p.onFocus&&p.onFocus(n)},onBlur:n=>{w(!1),p.onBlur&&p.onBlur(n)}};return(0,c.useEffect)(()=>{w(h)},[h]),(0,e.jsx)(l.Z,{id:a,containerClassName:o,className:r,children:i,label:d,endAdornment:u,startAdornment:_,note:m,noteTypographyProps:x,validation:f,validationTypographyProps:b,focused:h,focused:y,note:(null==p?void 0:p.maxLength)&&"".concat(null==p?void 0:null===(t=p.value)||void 0===t?void 0:t.length,"/").concat(null==p?void 0:p.maxLength),noteTypographyProps:{className:"text-right"}
1,children:(0,e.jsx)("textarea",{...p,name:N,value:v,onChange:g,onFocus:C.onFocus,onBlur:C.onBlur,className:"".concat(s.Z.styles.input," ").concat((null==p?void 0:p.className)||""),rows:j})})}},8973:function(n,t,a){"use strict";a.d(t,{Z:function(){return o}});var e=a(5893),c=a(5337),l=a.n(c),s=a(7294);function o(n){let{children:t,className:a="",variant:c,component:o,loading:r,font:i}=n,d=[{variant:"h1",component:"h1",className:"text-4xl lg:text-6xl ".concat("global"===i?"":l().className)},{variant:"h2",component:"h2",className:"text-3xl lg:text-5xl ".concat("global"===i?"":l().className)},{variant:"h3",component:"h3",className:"text-2xl lg:text-4xl ".concat("global"===i?"":l().className)},{variant:"h4",component:"h4",className:"text-xl lg:text-3xl ".concat("global"===i?"":l().className)},{variant:"h5",component:"h5",className:"text-lg lg:text-2xl ".concat("global"===i?"":l().className)},{variant:"h6",component:"h6",className:"text-base lg:text-xl ".concat("global"===i?"":l().className)},{variant:"subtitle1",component:"h6",className:"text-base"},{variant:"subtitle2",component:"h6",className:"text-sm font-medium opacity-90"},{variant:"subtitle3",component:"h6",className:"text-xs font-medium opacity-90"},{variant:"body1",component:"p",className:"text-base"},{variant:"body2",component:"p",className:"text-base opacity-80"},{variant:"caption",component:"span",className:"text-xs opacity-80"}],u=d.find(n=>n.variant===c)||d.find(n=>"body1"===n.variant),_=o||u.component||"div";return(0,e.jsxs)(n=>{let{children:t}=n;return r?(0,e.jsx)("div",{className:"relative",children:t}):(0,e.jsx)(s.Fragment,{children:t})},{children:[r&&(0,e.jsx)("div",{className:"absolute inset-0 z-10 rounded bg-slate-100"}),(0,e.jsx)(_,{className:"".concat(u.className," ").concat(a),children:t})]})}},5089:function(n,t,a){"use strict";a.d(t,{y:function(){return e}});let e=function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=[];for(let e=0;e<t.length;e++){let c=t[e];""!==c&&a.push(n[c])}return a.join(" ")}},8586:function(n,t,a){"use strict";a.r(t),a.d(t,{default:function(){return r}});var e=a(5893),c=a(7752),l=a(1075),s=a(1354),o=a(2772);function r(n){let{fact:t,reference:a,onChange:r,onClose:i,onSave:d}=n;return(0,e.jsx)("div",{className:"fixed inset-0 z-30 flex flex-col items-center justify-center p-5 bg-black bg-opacity-50",children:(0,e.jsxs)(l.Z,{className:"w-full max-w-xl divide-y",children:[(0,e.jsxs)(s.Z,{className:"flex flex-col ",children:[(0,e.jsx)("span",{className:"mb-3 text-lg font-semibold",children:"Edit Fakta Unik"}),(0,e.jsxs)("div",{className:"flex flex-col w-full space-y-2",children:[(0,e.jsx)(o.Z,{label:"Fakta Unik",name:"fakta_unik",value:t,onChange:r,rows:4}),(0,e.jsx)(o.Z,{label:"Referensi Fakta",name:"referensi_fakta",value:a,onChange:r,rows:4})]})]}),(0,e.jsxs)(s.Z,{className:"flex justify-end space-x-2",children:[(0,e.jsx)(c.Z,{variant:"text",onClick:i,children:"Cancel"}),(0,e.jsx)(c.Z,{onClick:d,children:"Save Fakta Unik"})]})]})})}},5337:function(n){n.exports={style:{fontFamily:"'__Lilita_One_aa659e', '__Lilita_One_Fallback_aa659e'",fontWeight:400,fontStyle:"normal"},className:"__className_aa659e"}},3665:function(n){n.exports={btn:"Button_btn__alSGT","btn--primary":"Button_btn--primary__0LLrL","btn--filled":"Button_btn--filled__JkSz0","btn--outlined":"Button_btn--outlined__uNYJP","btn--text":"Button_btn--text__8ux5v","btn--secondary":"Button_btn--secondary__3T18W","btn--danger":"Button_btn--danger__yTYjm","btn--gray":"Button_btn--gray__h6spw","btn--rounded":"Button_btn--rounded__bp4X5","btn--rounded--full":"Button_btn--rounded--full__dRpq1","btn--xs":"Button_btn--xs__5K_EG","btn--sm":"Button_btn--sm___WQfW","btn--md":"Button_btn--md__0LVns","btn--lg":"Button_btn--lg__UZGY7"}},3258:function(n){n.exports={card:"Card_card__YWHGX","card--shadow-none":"Card_card--shadow-none__jt1p2","card--shadow-sm":"Card_card--shadow-sm__fjtV_","card--shadow-default":"Card_card--shadow-default__Icl0y","card--shadow-md":"Card_card--shadow-md__O__Zp","card--shadow-lg":"Card_card--shadow-lg___A1qV","card--shadow-xl":"Card_card--shadow-xl__U1O4w","card--shadow-2xl":"Card_card--shadow-2xl__KQjR1",card__content:"Card_card__content__bYNbc","padding--sm":"Card_padding--sm__cllFR","padding--md":"Card_padding--md__wALOj","padding--lg":"Card_padding--lg__aXsif","padding--xl":"Card_padding--xl__SavYx","padding--2xl":"Card_padding--2xl__2PbZt"}},7333:function(n){n.exports={input:"Input_input__MPP3N"}}
1,587:function(n){n.exports={input__container:"InputContainer_input__container__kD866",input__content:"InputContainer_input__content__YmI4e","input__content--borderless":"InputContainer_input__content--borderless__llnO_"}}},function(n){n.O(0,[3609,4949,9774,2888,179],function(){return n(n.s=6878)}),_N_E=n.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.