1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3675],{52016:function(e,t,s){function asArray(e){return[].concat(e)}function isPsuedoSelector(e){return e.startsWith(":")}function isStyleCondition(e){return isString(e)&&("*"===e||e.length>1&&":>~.+*".includes(e.slice(0,1))||isImmediatePostcondition(e))}function isValidProperty(e,t){return(isString(t)||"number"==typeof t)&&"--"!==e&&!isPsuedoSelector(e)&&!isMediaQuery(e)}function isMediaQuery(e){return e.startsWith("@media")}function isString(e){return e+""===e}function isImmediatePostcondition(e){return isString(e)&&(e.startsWith("&")||isPsuedoSelector(e))}function joinTruthy(e,t=""){return e.filter(Boolean).join(t)}function stableHash(e,t){let s=0;if(0===t.length)return s.toString();for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);s=(s<<5)-s+i,s&=s}return`${e??"cl"}_${s.toString(36)}`}s.d(t,{S:function(){return createSheet},cx:function(){return function cx(...e){let t=e.reduce((e,t)=>(t instanceof Set?e.push(...t):"string"==typeof t?e.push(t):Array.isArray(t)?e.push(cx(...t)):"object"==typeof t&&Object.entries(t).forEach(([t,s])=>{s&&e.push(t)}),e),[]);return joinTruthy(t," ").trim()}}});var i=class _Rule{constructor(e,t,s,i){this.sheet=e,this.property=t,this.value=s,this.selector=i,this.property=t,this.value=s,this.joined=`${t}:${s}`;let n=this.selector.preconditions.concat(this.selector.postconditions);this.hash=this.selector.hasConditions?this.selector.scopeClassName:stableHash(this.sheet.name,this.joined),this.key=joinTruthy([this.joined,n,this.hash])}toString(){let e=mergeSelectors(this.selector.preconditions,{right:this.hash});return e=mergeSelectors(this.selector.postconditions,{left:e}),`${e} {${_Rule.genRule(this.property,this.value)}}`}static genRule(e,t){var s;let i=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return s="content"===e?`"${t}"`:t,`${i}:${s};`}};function mergeSelectors(e,{left:t="",right:s=""}={}){let i=e.reduce((e,t)=>isPsuedoSelector(t)?e+t:isImmediatePostcondition(t)?e+t.slice(1):joinTruthy([e,t]," "),t);return joinTruthy([i,s?`.${s}`:""]," ")}var n=class _Selector{constructor(e,t=null,{preconditions:s,postconditions:i}={}){this.sheet=e,this.preconditions=[],this.scopeClassName=null,this.scopeName=null,this.postconditions=[],this.preconditions=s?asArray(s):[],this.postconditions=i?asArray(i):[],this.setScope(t)}setScope(e){return e&&(this.scopeClassName||(this.scopeName=e,this.scopeClassName=stableHash(this.sheet.name,e+this.sheet.count))),this}get hasConditions(){return this.preconditions.length>0||this.postconditions.length>0}addScope(e){return new _Selector(this.sheet,e,{preconditions:this.preconditions,postconditions:this.postconditions})}addPrecondition(e){return new _Selector(this.sheet,this.scopeClassName,{postconditions:this.postconditions,preconditions:this.preconditions.concat(e)})}addPostcondition(e){return new _Selector(this.sheet,this.scopeClassName,{preconditions:this.preconditions,postconditions:this.postconditions.concat(e)})}createRule(e,t){return new i(this.sheet,e,t,this)}},r=class{constructor(e,t){this.name=e,this.rootNode=t,this.storedStyles={},this.storedClasses={},this.style="",this.count=0,this.id=`flairup-${e}`,this.styleTag=this.createStyleTag()}getStyle(){return this.style}append(e){var t;this.style=(t=this.style)?`${t} 2${e}`:e}apply(){this.count++,this.styleTag&&(this.styleTag.innerHTML=this.style)}isApplied(){return!!this.styleTag}createStyleTag(){if("undefined"==typeof document||this.isApplied()||null===this.rootNode)return this.styleTag;let e=document.createElement("style");return e.type="text/css",e.id=this.id,(this.rootNode??document.head).appendChild(e),e}addRule(e){let t=this.storedClasses[e.key];return isString(t)?t:(this.storedClasses[e.key]=e.hash,this.storedStyles[e.hash]=[e.property,e.value],this.append(e.toString()),e.hash)}};function forIn(e,t){for(let s in e)t(s.trim(),e[s])}function createSheet(e,t){let s=new r(e,t);return{create:function(e){let t={};return(function iteratePreconditions(e,t,s){let i=[];return forIn(t,(n,r)=>{if(isStyleCondition(n))return iteratePreconditions(e,r,s.addPrecondition(n)).forEac
2h(e=>i.push(e));i.push([n,t[n],s.addScope(n)])}),i})(s,e,new n(s)).forEach(([e,n,r])=>{(function iterateStyles(e,t,s){let n=new Set;return forIn(t,(t,r)=>{let o=[];if(isStyleCondition(t))o=iterateStyles(e,r,s.addPostcondition(t));else if("."===t)o=asArray(r);else if(isMediaQuery(t))o=function(e,t,s,i){e.append(s+" {");let n=iterateStyles(e,t,i);return e.append("}"),n}(e,r,t,s);else if("--"===t)o=function(e,t,s){let n=new Set,r=[];if(forIn(t,(t,o)=>{if(isValidProperty(t,o)){r.push(i.genRule(t,o));return}let a=iterateStyles(e,o??{},s);addEachClass(a,n)}),!s.scopeClassName)return n;if(r.length){let t=r.join(" ");e.append(`${mergeSelectors(s.preconditions,{right:s.scopeClassName})} {${t}}`)}return n.add(s.scopeClassName),n}(e,r,s);else if(isValidProperty(t,r)){let i=s.createRule(t,r);e.addRule(i),n.add(i.hash)}return addEachClass(o,n)}),n})(s,n,r).forEach(s=>{t[e]=t[e]??new Set,t[e].add(s)})}),s.apply(),t},getStyle:s.getStyle.bind(s),isApplied:s.isApplied.bind(s)}}function addEachClass(e,t){return e.forEach(e=>t.add(e)),t}},15391:function(e,t,s){s.r(t);var i=s(91309),n=s(85893),r=s(67294),o=s(65400),a=s.n(o),c=s(62443),l=s(63048),h=s(24018),u=(0,r.memo)(function(e){var t=e.initValue,s=e.loading,o=e.isShowBtnCancel,u=e.isShowBtnReset,d=void 0!==u&&u,p=e.onSubmit,f=e.onCancel,y=(0,r.useRef)(null),m=(0,i._)((0,r.useState)(""),2),S=m[0],g=m[1],C=(0,r.useCallback)(function(e){"Escape"===e.key&&f(),13!==e.keyCode||e.shiftKey||(f(),p(S),e.preventDefault())},[f,p,S]);(0,r.useEffect)(function(){var e=y.current;return e&&e.addEventListener("keydown",C),function(){e&&e.removeEventListener("keydown",C)}},[C]),(0,r.useEffect)(function(){var e;null===(e=y.current)||void 0===e||e.focus(),null===S&&g(t)},[t]);var j=(0,r.useCallback)(function(e,t){g(function(e){return e+t.emoji})},[]),v=(0,r.useCallback)(function(){g("")},[]),N=(0,r.useCallback)(function(){p(S),d&&v(),f()},[d,v,S,p,f]);return(0,n.jsxs)(h.RL,{children:[(0,n.jsx)("textarea",{ref:y,value:S||"",onChange:function(e){return g(e.target.value)},rows:3,placeholder:"Write something..."}),(0,n.jsxs)("div",{className:"--bottom",children:[(0,n.jsxs)("div",{className:"act-main",children:[(0,n.jsxs)(a(),{loading:s,size:"small",className:"--btn --submit",onClick:N,children:[(0,n.jsx)("i",{"aria-hidden":!0,className:"fal fa-check"}),(0,n.jsx)("span",{children:"Submit"})]}),d&&(0,n.jsxs)(a(),{size:"small",className:"--btn --cancel",onClick:v,children:[(0,n.jsx)("i",{"aria-hidden":!0,className:"fal fa-undo-alt"}),(0,n.jsx)("span",{children:"Reset"})]}),(void 0===o||o)&&(0,n.jsxs)(a(),{size:"small",className:"--btn --cancel",onClick:f,children:[(0,n.jsx)("i",{"aria-hidden":!0,className:"fal fa-times"}),(0,n.jsx)("span",{children:"Cancel"})]})]}),(0,n.jsx)("div",{className:"act-extra",children:(0,n.jsx)(c.Z,{trigger:"click",content:(0,n.jsx)(l.ZP,{onEmojiClick:j}),onOpenChange:function(e){var t;e||null===(t=y.current)||void 0===t||t.focus()},zIndex:101,children:(0,n.jsx)("i",{"aria-hidden":!0,className:"fas fa-grin-alt"})})})]})]})});t.default=u}}]); 3//# sourceMappingURL=3675.41a057fbb060b744.js.map
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.