1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6161],{16768:(e,t,a)=>{"use strict";a.d(t,{JR:()=>o,MR:()=>l,Qz:()=>s,TP:()=>i,cN:()=>r,vJ:()=>d});var n=a(27094);let s=e=>t=>{t({type:n._0,payload:e})},i=e=>t=>{t({type:n.lI,payload:e})},l=(e,t)=>a=>{a({type:n.Ps,payload:{template:e,activePage:t}})},o=e=>t=>{t({type:n.$w,payload:e})},r=e=>t=>{t({type:n.oQ,payload:e})},d=e=>t=>{t({type:n.Gl,payload:e})}},19906:(e,t,a)=>{"use strict";let n,s;a.d(t,{$F:()=>r,$V:()=>Y,$r:()=>k,Al:()=>eo,BC:()=>ep,Bx:()=>ec,CZ:()=>ex,DI:()=>N,Db:()=>b,Dq:()=>H,Ds:()=>es,GC:()=>y,IO:()=>z,Ii:()=>B,Kz:()=>U,L0:()=>_,M:()=>ei,M2:()=>A,MV:()=>ey,NR:()=>m,N_:()=>X,R$:()=>w,ST:()=>S,Sf:()=>d,T$:()=>J,TB:()=>v,Tu:()=>eu,UO:()=>P,Uq:()=>ea,W5:()=>O,WB:()=>f,WM:()=>$,X7:()=>E,Xh:()=>j,Xu:()=>ed,Z1:()=>C,Zs:()=>er,_0:()=>x,_I:()=>el,a2:()=>D,b:()=>F,bq:()=>W,c5:()=>em,cx:()=>R,dP:()=>en,fX:()=>g,gP:()=>h,jJ:()=>M,ji:()=>G,ju:()=>Q,mh:()=>T,oP:()=>et,oY:()=>L,pQ:()=>K,qZ:()=>eh,sP:()=>q,tW:()=>I,vv:()=>eg,xH:()=>u,xq:()=>Z,y8:()=>V});var i=a(80070),l=a(27094),o=a(14204);let r=(e,t,a)=>s=>{n=e,s({type:l.SF,template:t,MainDiv:e,rawHtml:a})},d=e=>t=>{s=e,t({type:l.Fh,payload:e,tempParent:n})},c=()=>e=>{e({type:l.c2,payload:s})},p=()=>e=>{e({type:l.G$})},h=()=>e=>{e({type:l.I1})},u=e=>{let{rgb:t}=e;return e=>{e({type:l.Qf,payload:t}),e(c())}},m=e=>{let{rgb:t}=e;return e=>{e({type:l.PR,payload:t}),e(c())}},y=(e,t)=>a=>{a({type:l.F2,payload:e,cssText:t}),a(c())},g=e=>t=>{t({type:l.SG,payload:e}),t(c())},x=e=>t=>{t({type:l.Bi,payload:e}),t(c())},w=e=>t=>{t({type:l.if,payload:e}),t(c())},v=(e,t)=>a=>{a({type:l.c5,payload:{isUnderline:e,color:t}}),e&&window.activeMarkerDrawing&&(window.activeMarkerDrawing.cleanup(),window.activeMarkerDrawing=null)},f=(e,t)=>a=>{a({type:l.t,payload:{lineThrough:e,color:t}}),e&&window.activeMarkerDrawing&&(window.activeMarkerDrawing.cleanup(),window.activeMarkerDrawing=null)},k=(e,t)=>a=>{a({type:l.g8,payload:{highLight:e,color:t}}),e&&window.activeMarkerDrawing&&(window.activeMarkerDrawing.cleanup(),window.activeMarkerDrawing=null)},j=()=>e=>{e({type:l.QV})},S=e=>t=>{t({type:l.q6,payload:e}),t(c())},C=(e,t,a,n,s)=>i=>{i({type:l.kN,payload:e,width:t,height:a,fontSize:n,lineHeight:s}),i(p())},_=(e,t)=>a=>{a({type:l._t,currentPage:e,nextPage:t})},b=(e,t)=>a=>{a({type:l.kd,removedPage:e,nextSibling:t})},N=e=>t=>{t({type:l.tJ,payload:e}),t(c())},F=e=>t=>{t({type:l.Ty,payload:e})},T=e=>t=>{t({type:l.Nm,payload:e})},I=e=>t=>{t({type:l.gV,payload:e})},L=e=>t=>{t({type:l.KO,payload:e})},E=e=>t=>{t({type:l.I8,payload:e})},A=e=>t=>{t({type:l.FV,payload:e})},B=e=>t=>{t({type:l.O5,payload:e})},M=e=>t=>{t({type:l.Bd,payload:e})},D=e=>t=>{t({type:l.C2,payload:e})},H=e=>t=>{t({type:l.rY,payload:e}),t(c())},P=e=>t=>{t({type:l.Tg,payload:e})},R=e=>t=>{t({type:l.tm,payload:e})},G=e=>t=>{t({type:l.Ts,payload:e})},V=e=>t=>{t({type:l.Xe,payload:e})},z=e=>t=>{t({type:l.jN,payload:e})},O=e=>t=>{t({type:l.ZO,payload:e})},Z=e=>t=>{t({type:l.Y_,payload:e})},W=(e,t,a)=>n=>{n({type:l.H,bold:e,underline:t,italic:a})},X=e=>t=>{t({type:l.AU,payload:e})},Y=()=>e=>{e(o.IE.clearHistory()),e({type:l.eH})},U=(e,t)=>async a=>{try{e||t||a(o.IE.undo()),a({type:l.jg}),(e||t)&&a(o.IE.undo())}catch(e){a({type:l.ff,payload:{msg:"Ooops! Some thing went wrong onUndo!"}})}},q=()=>async e=>{try{e(o.IE.redo()),e({type:l.Pl})}catch(t){e({type:l.ff,payload:{msg:"Ooops! Some thing went wrong onRedo!"}})}},J=e=>t=>{t({type:l.xw,payload:e}),t(c())},$=e=>t=>{t({type:l.IT,payload:e})},Q=()=>e=>{(0,i.Ch)(),e({type:l.K5})},K=e=>t=>{t({type:l.t7,payload:e}),t(ee())},ee=()=>e=>{e({type:l.rE})},et=e=>t=>{t({type:l.cx,payload:e})},ea=(e,t,a)=>{let n=(0,i.kZ)(e,t,a);return{type:l.jR,payload:n[0],target:n[1]}},en=(e,t,a)=>({type:l.fG,payload:t,target:e}),es=e=>t=>{t({type:l.wy,payload:e})},ei=(e,t,a)=>n=>{n({type:l.Ir,payload:{type:e,msg:t,page:a}})},el=(e,t)=>a=>{a({type:l.yE,payload:{id:e,checked:t}})},eo=e=>t=>{t({type:l.f_,payload:e})},er=e=>t=>{t({type:l.tp,payload:e})},ed=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;return n=>{n({type:l.SL,payload:{isMarker:e,markerColor:t,markerWidth:a}})}},ec=e=>t=>{t({type:l.e8,payload:{is_eraser:e}})}
1,ep=e=>t=>{t({type:l.MG,payload:e})},eh=e=>t=>{t({type:l.IJ,payload:e})},eu=(e,t)=>({type:l.i4,payload:{commentId:e,elementId:t}}),em=e=>t=>{t({type:l.ad,payload:e})},ey=()=>e=>{e({type:l.y7})},eg=(e,t,a,n,s,i,o)=>r=>{r({type:l.uB,payload:{id:e,text:t,fontFamily:a,fontSize:n,color:s,alignment:i,icon:o}})},ex=()=>e=>{e({type:l.C6})}},22856:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>D});var n=a(95155),s=a(12115),i=a(900),l=a(42221),o=a(80070),r=a(34540),d=a(19906),c=a(73702),p=a(80452),h=a(43025),u=a(26812);a(58388);var m=a(25488),y=a(2691),g=a(27113),x=a(77803),w=a(92066),v=a(16768);let f=e=>{let{THIS:t}=e,a=(0,r.wA)(),{pdfTemplate:s,pdfToken:i}=(0,r.d4)(e=>e.pdfData),{actionHistory:l}=(0,r.d4)(e=>e.textEditor.present),{originalPdfLink:c,activePage:p,thumbnails:h}=s,u=async e=>{try{if(e===p)return;t.setState({textstate:!1}),l.length>0&&(t.setState({isSaving:!0}),await (0,o.U8)(p,i),t.setState({isSaving:!1}),a((0,d.Al)([]))),m(e)}catch(e){console.log(e)}t.setState({activeButton:""})},m=async e=>{t.setState({isLoading:!0,isDisabled:!0});try{let t=await (0,o.BW)(e,i);if(t){let n=(0,o.fq)(t);a((0,v.MR)(n,e))}}catch(e){a((0,d.Ds)("Something went wrong")),console.log(e)}t.setState({isLoading:!1,isDisabled:!1,linkState:!1,targetState:""})},y=()=>{let e=document.getElementsByClassName("sideDiv")[0],t=document.getElementsByClassName("pdfSection")[0],a=document.getElementById("topbar"),n=document.getElementById("closeArrow"),s=document.getElementById("resizealbe-container"),i=screen.width<600;if(e.classList.contains("closed")){if(e.classList.remove("closed"),e.classList.add("opened"),i){if(s){s.style.transition="height 0.79s ease-in-out";let e=s.clientHeight;s.style.height=e-193+"px"}}else t.classList.add("opened"),t.classList.remove("closed"),a.style.left="230px",a.style.width="calc(100% - 230px)";setTimeout(()=>{n.style.transform="rotate(360deg)"},800)}else{if(e.classList.add("closed"),e.classList.remove("opened"),i){if(s){s.style.transition="height 0.79s ease-in-out";let e=s.clientHeight;s.style.height=e+193+"px"}}else t.classList.add("closed"),t.classList.remove("opened"),a.style.left="0px",a.style.width="100%";setTimeout(()=>{n.style.transform="rotate(180deg)"},800)}};return(0,n.jsxs)("div",{className:"sideDiv sub-sideDiv",children:[(0,n.jsx)("div",{className:"pagetemplates_section",children:(0,n.jsx)(w.A,{className:"sidebar_scroll",children:(0,n.jsx)("div",{id:"pdf-thumbs",className:"pt-2 pdf-thumbs p-3",children:h.map((e,t)=>(0,n.jsxs)("div",{onClick:()=>{u(t+1)},className:"page_templates mx-md-auto mx-2 cursor-pointer ".concat(""),children:[(0,n.jsx)("div",{children:e&&(0,n.jsx)("img",{className:"templateImg",src:e,alt:""})}),(0,n.jsxs)("p",{children:["Page ",t+1,"/",h.length]})]},t))})})}),(0,n.jsx)("div",{className:"closeTools sub-closeTools",id:"sidebarBtn",onClick:()=>{y()},children:(0,n.jsx)("div",{className:"close_btn",children:(0,n.jsx)("img",{className:"closeArrow",id:"closeArrow",style:{transform:"rotate(180deg)"},src:"/static/close_btn.svg"})})})]})};var k=a(76606),j=a(13650),S=a(3242),C=a(86690),_=a(53230),b=a(86503),N=a(30300),F=a(80891),T=a.n(F),I=a(30293);function L(){var e;
1let[t,a]=(0,s.useState)("translateX(0px) translateY(0px)"),i=(0,r.d4)(e=>e.textEditor.present),l=(0,s.useRef)(),o=(0,r.wA)(),c=i.current_element;(0,s.useEffect)(()=>{if(!c)return;let e=document.getElementById("masterid").firstChild.style.width;e=parseFloat(e);let{width:t}=getComputedStyle(l.current),{height:n}=getComputedStyle(c);t=parseFloat(t),n=(n=parseFloat(n))<=200?n:36;let s=(0,I.E)(c),i=parseInt(s.translateY)-85,o=parseInt(s.translateX);o=o+t>e?e-t-4:o,i=i-2<=0?parseInt(s.translateY)+n+4:i,a("perspective(".concat(s.perspective,") \n translateX(").concat(o,"px) \n translateY(").concat(i,"px) \n translateZ(").concat(s.translateZ,") \n rotateX(").concat(s.rotateX,") \n rotateY(").concat(s.rotateY,") \n rotateZ(0deg) \n scaleX(").concat(s.scaleX,") \n scaleY(").concat(s.scaleY,") \n scaleZ(").concat(s.scaleZ,") \n skewX(").concat(s.skewX,") \n skewY(").concat(s.skewY,")"))},[null==(e=i.textStyles)?void 0:e.transform]);let p=()=>{let e=document.getElementById("Comment_action");e&&(e.style.display="none")},h=()=>{let e=i.current_element;return e&&e.id&&e.id.startsWith("comment-")?e.id.replace("comment-",""):null};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{id:"Comment_action",ref:l,className:"".concat(T().commentact_main),style:{transform:t},children:[(0,n.jsxs)("div",{className:"d-flex flex-column",children:[(0,n.jsx)("button",{className:"".concat(T().commentact_btns),onClick:()=>{let e=h();if(!e)return;let t=i.current_element;o((0,d.Tu)(e,null==t?void 0:t.id)),t&&t.parentNode&&t.parentNode.remove(),p()},children:(0,n.jsxs)("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M17.0441 4.31435C14.0205 4.01471 10.9787 3.86035 7.94598 3.86035C6.14816 3.86035 4.35033 3.95115 2.5525 4.13275L0.700195 4.31435",stroke:"#4F4F4F","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M5.69434 3.39694L5.89409 2.20747C6.03937 1.34487 6.14833 0.700195 7.68284 0.700195H10.0618C11.5963 0.700195 11.7143 1.38119 11.8505 2.21655L12.0503 3.39694",stroke:"#4F4F4F","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M15.0919 7.18359L14.5017 16.3271C14.4018 17.7526 14.3201 18.8604 11.7868 18.8604H5.95744C3.42414 18.8604 3.34242 17.7526 3.24254 16.3271L2.65234 7.18359",stroke:"#4F4F4F","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M7.35547 13.8662H10.3791",stroke:"#4F4F4F","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M6.60254 10.2344H11.1425",stroke:"#4F4F4F","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})]})}),(0,n.jsx)("span",{className:"".concat(T().commentact_lable),children:"Trash"})]}),(0,n.jsxs)("div",{className:"d-flex flex-column",children:[(0,n.jsx)("button",{className:"".concat(T().commentact_btns),onClick:()=>{let e=h();e&&o((0,d.qZ)(e)),p()},children:(0,n.jsxs)("svg",{width:"20",height:"17",viewBox:"0 0 20 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M13.1021 8.38359C13.1021 10.2209 11.6174 11.7057 9.78007 11.7057C7.94273 11.7057 6.45801 10.2209 6.45801 8.38359C6.45801 6.54624 7.94273 5.06152 9.78007 5.06152C11.6174 5.06152 13.1021 6.54624 13.1021 8.38359Z",stroke:"#4F4F4F","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M9.7802 16.0578C13.0559 16.0578 16.1088 14.1276 18.2338 10.787C19.069 9.47861 19.069 7.27937 18.2338 5.97096C16.1088 2.63033 13.0559 0.700195 9.7802 0.700195C6.50453 0.700195 3.45157 2.63033 1.32656 5.97096C0.491406 7.27937 0.491406 9.47861 1.32656 10.787C3.45157 14.1276 6.50453 16.0578 9.7802 16.0578Z",stroke:"#4F4F4F","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})]})}),(0,n.jsx)("span",{className:"".concat(T().commentact_lable),children:"View"})]}),(0,n.jsxs)("div",{className:"d-flex flex-column",children:[(0,n.jsx)("button",{className:"".concat(T().commentact_btns),onClick:()=>{let e=h();e&&o((0,d.c5)(e)),p()},children:(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M13.4122 0.700195H6.1482C2.5162 0.700195 0.700195 2.5162 0.700195 6.1482V17.9522C0.700195 18.4516 1.1088 18.8602 1.6082 18.8602H13.4122C17.0442 18.8602 18.8602 17.0442 18.8602 13.4122V6.1482C18.8602 2.5162 17.0442 0.700195 13.4122 0.700195Z",stroke:"#4F4F4F","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M10.6061 6.00327L5.89354 10.7158C5.71194 10.8974 5.53942 11.2515 5.5031 11.5058L5.24886 13.3036C5.15806 13.9574 5.61206 14.4114 6.26582 14.3206L8.06364 14.0663C8.31788 14.03 8.67202 13.8575 8.85362 13.6759L13.5661 8.96335C14.3743 8.15523 14.7647 7.21091 13.5661 6.01235C12.3676 4.80471 11.4233 5.18607 10.6061 6.00327Z",stroke:"#4F4F4F","stroke-width":"1.4","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M9.93457 6.6748C10.3341 8.10036 11.4509 9.22628 12.8856 9.6258",stroke:"#4F4F4F","stroke-width":"1.4","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})]})}),(0,n.jsx)("span",{className:"".concat(T().commentact_lable),children:"Edit"})]})]})})}function E(){let e=(0,r.d4)(e=>e.textEditor.present),t=(null==e?void 0:e.comments)||[],a=null==e?void 0:e.activeCommentId,s=(0,r.wA)(),i=t.find(e=>e.id===a);return!i||e.isEditingComment?null:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"".concat(T().viewcomment_main),children:[(0,n.jsx)("div",{onClick:()=>{s((0,d.qZ)(null))},className:"".concat(T().viewcomment_close),children:(0,n.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M6.46387 11.0709L11.0709 6.46387",stroke:"#4F4F4F","stroke-width":"1.255","stroke-linecap":"round","stroke-linejoin":"round"}
1),(0,n.jsx)("path",{d:"M11.0709 11.0709L6.46387 6.46387",stroke:"#4F4F4F","stroke-width":"1.255","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M6.32564 16.9071H11.2094C15.2792 16.9071 16.9071 15.2792 16.9071 11.2094V6.32564C16.9071 2.25585 15.2792 0.62793 11.2094 0.62793H6.32564C2.25585 0.62793 0.62793 2.25585 0.62793 6.32564V11.2094C0.62793 15.2792 2.25585 16.9071 6.32564 16.9071Z",stroke:"#4F4F4F","stroke-width":"1.255","stroke-linecap":"round","stroke-linejoin":"round"})]})}),(0,n.jsx)("div",{className:"".concat(T().comment_area),children:(0,n.jsx)("div",{className:T().comment_content,style:{fontFamily:i.fontFamily||"Arial, sans-serif",fontSize:i.fontSize?"".concat(i.fontSize,"px"):"15px",color:i.color?"".concat(i.color," "):"#000000",textAlign:i.alignment?"".concat(i.alignment," "):"left"},children:i.text})})]})})}class A extends s.Component{componentWillUnmount(){document.removeEventListener("mousedown",this.handleClickOutsidePages)}handleClickOutsidePages(e){this.pagesBtnRef.current&&!this.pagesBtnRef.current.contains(e.target)&&this.state.isOpen&&this.setState({isOpen:!1})}componentDidMount(){window.addEventListener("pageshow",e=>{(e.persisted||"back_forward"===performance.getEntriesByType("navigation")[0].type)&&window.location.reload()}),window.addEventListener("focus",this.reInitNavbar),document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.reInitNavbar()})}componentWillUnmount(){window.removeEventListener("focus",this.reInitNavbar),document.removeEventListener("visibilitychange",this.reInitNavbar)}render(){var e,t,a,s,r,d,w,v;let{textEditor:F,mobileSize:T,widthSize:I,data:A,pdfData:B}=this.props,{screenHeight:M,screenWidth:D}=this.state,H=window.innerHeight-125,P=D.split("px")[0];(0,o.bu)(F);let R=this.props.textEditor.currentTarget?this.props.textEditor.currentTarget:this.state.targetState,G=this.itemMap.get(R);return"ie"===(0,l.o0)().name?(0,n.jsx)(i.A,{}):(0,n.jsx)(n.Fragment,{children:B.pdfTemplate.template?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.A,{THIS:this}),(0,n.jsxs)("div",{className:"d-flex flex-md-row flex-column action_section",children:[(0,n.jsx)(u.A,{THIS:this}),(0,n.jsx)(f,{THIS:this}),(0,n.jsxs)("div",{className:"pdfSection",children:[(0,n.jsx)("div",{className:"pdf_loder",children:(this.state.isLoading||this.state.isSaving||this.state.isDownloading)&&(0,n.jsx)(k.A,{loadingText:this.state.isSaving?"Saving Changes...":this.state.isDownloading?"Downloading...":"Loading..."})}),(0,n.jsx)("div",{id:"resizealbe-container",children:(0,n.jsxs)("div",{id:"scalable-container",style:{float:"left"},children:[(0,n.jsxs)("div",{className:"scalable-div",children:[(0,n.jsx)(h.A,{THIS:this,selectedTarget:R,item:G,isMobile:T}),(0,n.jsx)("div",{id:"masterid",className:"position-absolute masterDiv",children:(0,n.jsx)(p.A,{t:B.pdfTemplate.template,handleClick:e=>(0,o.hC)(e,this),doubleClick:o.qG,enterIssue:o.iG,onInput:()=>this.props.HandleText(),isDblTouchTap:c.A,temp_resize:this.state.temp_resize,THIS:this,isMobile:T,template_height:H,screen_width:P})})]}),(0,n.jsx)("div",{className:"show-rotation d-none",children:(0,n.jsx)("p",{children:(0,n.jsxs)("span",{children:[this.state.rotateState,(0,n.jsx)("sup",{children:"o"})]})})}),(null==(t=F.current_element)||null==(e=t.classList)?void 0:e.contains("no-editable"))?(0,n.jsx)(N.A,{THIS:this}):(0,n.jsx)(n.Fragment,{}),["svg","path","circle","rect","polygon","ellipse","image"].includes(null==(a=F.current_element)?void 0:a.tagName)?(0,n.jsx)(m.A,{THIS:this}):(0,n.jsx)(n.Fragment,{}),(null==(s=F.current_element)?void 0:s.tagName)==="SPAN"||(null==(r=F.current_element)?void 0:r.tagName)==="A"||(null==(d=F.current_element)?void 0:d.tagName)==="a"?this.state.textstate&&(0,n.jsx)(y.A,{THIS:this}):(0,n.jsx)(n.Fragment,{}),["INPUT","TEXTAREA","SELECT","OPTION"].includes(null==(w=F.current_element)?void 0:w.tagName)?(0,n.jsx)(g.A,{THIS:this}):(0,n.jsx)(n.Fragment,{}),this.state.linkState&&void 0!==this.state.targetState.innerText&&F.current_element?(0,n.jsx)(C.A,{THIS:this}):"",["IMG"].includes(null==(v=F.current_element)?void 0:v.tagName)?(0,n.jsx)(L,{THIS:this}):(0,n.jsx)(n.Fragment,{})]})})]}),(0,n.jsx)(E,{}),(0,n.jsx)(_.A,{})]}),(0,n.jsx)(j.A,{}),(0,n.jsx)(S.A,{THIS:this})]}):(0,n.jsx)(x.A,{})})}constructor(e){super(e),this.state={screenWidth:window.innerWidth+"px",screenHeight:window.innerHeight+"px",hh:"",width:"",height:"",left:"0",top:"0",display:"none",is_pointer:!1,template:"",isLoading:!1,isSaving:!1,isDownloading:!1,isEditing:!1,targetState:"",nestedTargetState:"",item:null,targets:[],onRotateState:!1,floors:[""],isLockedArray:[],isLocked:!1,deleteButton:!1,file:null,suggestionSwitch:!1,suggestionValue:null,valueTmp:[],targetImage:!1,value:"",suggestions:[],searchVal:null,focusValue:[],firstTemplate:null,d_type:null,f_htm:null,checkedValue:null,copyElement:"",ArrowLeft0:!1,ArrowRight0:!1,ArrowUp0:!1,ArrowDown0:!1,download_Btn:!1,show
1FeedbackModal:!1,moveableLoaded:!1,rotateState:null,resizeWidth:null,resizeHeight:null,txtZindex:null,LayersSwitch:!1,layers_Inner_change:!1,ArrayList:[],layers_DataList:[],current_order_dom:[],d_height:"",d_width:"",d_scale:0,t_height:"",t_width:"",t_scale:0,download_size:0,display_menu:!1,display_download_loader:!1,isChecked:!1,isSwitch:!1,outLineValue:"2px solid red",PositioniState:!1,linkState:!1,textstate:!0,shapestate:!1,Selectedtext:null,selectedTextAnchorOffset:null,selectedTextFocusOffset:null,selectedTextLength:null,inputValue:"",ImageSrc:"",temp_resize:"75%",tabName:"",new_download_loader:!1,zoomIn:!1,isColorPicker:!1,isOpen:!1,activeButton:null,isDisabled:!1},this.handleMoveableSelecter=()=>{this.setState({targetState:""}),this.moveable.updateRect()},this.handleMoveableSelecterReset=()=>{this.setState({targetState:""}),this.props.textEditor.currentTarget="",this.moveable.updateRect()},this.reInitNavbar=()=>{this.setState({isSaving:!1,isDownloading:!1,isLoading:!1,isDisabled:!1})},this.el=document.createElement("div"),this.el.classList.add("rcopy-btn"),this.itemMap=new Map,this.pagesBtnRef=s.createRef(),this.handleClickOutsidePages=this.handleClickOutsidePages.bind(this)}}let B=(0,r.Ng)(e=>({data:e.dashboard,textEditor:e.textEditor.present,pdfData:e.pdfData}),{getSelectedElement:d.Sf,handleDragging:d.ST,handleResize:d.Z1,HandleText:d.gP,onDelete:d.ju,addNewElement:d.Uq,handleLinkValue:d.oP,onUndo:d.Kz,onRedo:d.sP,resetState:d.$V,copyPage:d.L0,deletePage:d.Db,handleBackgroundGradientSwitch:d.DI,handleBackgroundGradientBtnText:d.mh,handleBackLinearDegree:d.tW,handleBackRepeatLinearDegree:d.oY,handleBackRXPosition:d.X7,handleBackRYPosition:d.M2,handleBackRepeatRXPosition:d.Ii,handleBackRepeatRYPosition:d.jJ,handleBackgroundGradientPallete:d.a2,handleSETBackgroundGradientPallete:d.Dq,handleBackgroundGradientType:d.b,handleSvgGradientType:d.UO,handleSvgGradientSwitch:d.ji,handleSVGGradientBtnText:d.W5,SVGLinaerGradientSwitch:d.y8,SVGRadialGradientSwitch:d.IO,handleSETSvgGradientPaletteTile:d.cx,handleSVGGradientBtnSwitch:d.xq,layersInnerChange:d.N_,Span_Inner_Change:d.bq,handleLinkApply:d.pQ,unSelectElement:d.CZ})(A);a(6465);class M extends s.Component{componentDidMount(){localStorage.removeItem("elm")}componentWillMount(){}componentWillUnmount(){}render(){let{mobileSize:e,widthSize:t,portraitView:a}=this.state;return(0,n.jsx)(B,{mobileSize:e,widthSize:t,portraitView:a})}constructor(e){super(e),this.state={mobileSize:!1,portraitView:!1,widthSize:window.innerWidth,heightSize:window.innerHeight}}}let D=(0,r.Ng)(e=>({textEditor:e.textEditor.present,template:e.template}),null)(M)},29300:(e,t)=>{var a;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)n.call(e,a)&&e[a]&&(t=i(t,a));return t}(a)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(a=(function(){return s}).apply(t,[]))||(e.exports=a)}()},91867:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var n=a(29300),s=a.n(n),i=a(12115),l=a(97390),o=a(95155);let r=i.forwardRef((e,t)=>{let{bsPrefix:a,variant:n,animation:i="border",size:r,as:d="div",className:c,...p}=e;a=(0,l.oU)(a,"spinner");let h="".concat(a,"-").concat(i);return(0,o.jsx)(d,{ref:t,...p,className:s()(c,h,r&&"".concat(h,"-").concat(r),n&&"text-".concat(n))})});r.displayName="Spinner";let d=r},94274:e=>{"use strict";e.exports=function(){}},97390:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>m,Jm:()=>h,Jy:()=>i,Wz:()=>u,ff:()=>l,gy:()=>p,oU:()=>c});var n=a(12115),s=a(95155);let i=["xxl","xl","lg","md","sm","xs"],l="xs",o=n.createContext({prefixes:{},breakpoints:i,minBreakpoint:l}),{Consumer:r,Provider:d}=o;function c(e,t){let{prefixes:a}=(0,n.useContext)(o);return e||a[t]||t}function p(){let{breakpoints:e}=(0,n.useContext)(o);return e}function h(){let{minBreakpoint:e}=(0,n.useContext)(o);return e}function u(){let{dir:e}=(0,n.useContext)(o);return"rtl"===e}let m=function(e){let{prefixes:t={},breakpoints:a=i,minBreakpoint:o=l,dir:r,children:c}=e,p=(0,n.useMemo)(()=>({prefixes:{...t},breakpoints:a,minBreakpoint:o,dir:r}),[t,a,o,r]);return(0,s.jsx)(d,{value:p,children:c})}}}]);
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.