(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4628],{9631:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bmp-to-pdf",function(){return n(7706)}])},7706:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return E}});var l=n(5893),a=n(9008),i=n.n(a),s=n(7294),o=n(3658),r=n(2125),c=n(5518),d=n(8493),h=n(6963),g=n(9628),p=n(7694),u=n(5135),x=n(2711),m=n(7984),f=n(9822),v=n(3555),j=n(6294),P=n(1169),S=(n(41),n(9072)),y=n(7858),C=n(386),D=n(842),w=n(4996),_=n(6640),F=n(3115),T=n.n(F),b=n(3260),I=n.n(b),N=n(7311),R=n(5498),M=n(1163);var E=!0;t.default=e=>{let{myData:t}=e;console.log(t);const n=(0,M.useRouter)().asPath,{BMPToPDFTool:a}=(0,w.Z)(),{pages:F,hoverIndex:b,insertIndex:E,handleResetInitialState:Z,handleAddPage:A,handleDeletePage:k,handleUpdateDocument:B,handleSetInsertIndex:O,handleRearrangePages:z,handlePageSelection:U,handleRemovePageSelection:L,handlePagesSelection:q,handleDeleteSelectedPages:G,handleRotateSelectedPagesToRight:K,handleClearPageSelection:W,handleRotatePageRight:X,handleOrientationChange:V,handlePageSizeChange:Y,handleMarginChange:H}=(0,D.Z)(),{resultsInfoVisibility:J,resultsErrors:Q,handleResetInitialUploadState:$,handleResetCurrentUploadingStatus:ee,handleUpdateResultsDisplay:te}=(0,_.Z)();const[ne,le]=(0,s.useState)(!1),[ae,ie]=(0,s.useState)(0),se=(0,s.useRef)(!1),[oe,re]=(0,s.useState)(0),[ce,de]=(0,s.useState)({}),[he,ge]=(0,s.useState)(!0),[pe,ue]=(0,s.useState)(),xe=e=>{(0,C.W5)(e,re,A,undefined,se,a),e.target.value=null};(0,s.useEffect)((()=>{se.current=!0;const e=new AbortController,t=e.signal;return ue(t),de({container:document.body,getScrollPosition:()=>[document.body.scrollLeft,document.body.scrollTop],throttleTime:0,threshold:0}),()=>{e.abort(),se.current=!1}}),[]),(0,s.useEffect)((()=>{oe>0?se.current&&le(!0):se.current&&le(!1)}),[oe]),(0,s.useEffect)((()=>{F.length<=0?ie(0):ie(1)}),[F.length]);const me=(0,l.jsx)(d.W,{backend:c.tq?g.zr:h.PD,options:c.tq?{scrollAngleRanges:[{start:30,end:150},{start:210,end:330}]}:null,children:(0,l.jsxs)("div",{className:"previewer_content ".concat(I().previewer_content," d-flex flex-wrap ").concat(I().previewer_content_scrollable),children:[!c.tq&&(0,l.jsx)(p.ZP,{dragContainer:".previewer_content",selectableTargets:[".preview"],selectByClick:!1,selectFromInside:!1,toggleContinueSelect:["ctrl"],boundContainer:!1,hitRate:0,ratio:0,onSelectStart:e=>{F.filter((e=>!0===e.selected)).length>0&&!e.inputEvent.ctrlKey&&W()},onSelect:e=>{e.added.forEach((e=>{const t=parseInt(e.getAttribute("data-index"));U(t)})),e.removed.forEach((t=>{const n=parseInt(t.getAttribute("data-index"));0===e.selected.length?W():L(n)}))},scrollOptions:ce,onScroll:e=>{document.body.scrollBy(10*e.direction[0],10*e.direction[1])}}),(0,l.jsx)(f.Z,{}),F.map(((e,t)=>{const n=b===t&&E===t,a=b===t&&E===t+1;return(0,l.jsx)(v.Z,{index:t,page:e,selectedPages:F.filter((e=>!0===e.selected)),handleRearrangePages:z,handleSetInsertIndex:O,onSelectionChange:q,handleClearPageSelection:W,insertLineOnLeft:n,insertLineOnRight:a,handleDeletePage:()=>k(e.id),handleRotatePageRight:t=>{t.stopPropagation(),X(e.id)}},"page-"+e.id)}))]})});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsx)("title",{children:t.metaTitle?t.metaTitle:t.title}),(0,l.jsx)("meta",{name:"description",content:t.metaDescription?t.metaDescription:t.shortDescription}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{property:"og:title",content:t.ogTitle}),(0,l.jsx)("meta",{property:"og:description",content:t.ogDescription}),(0,l.jsx)("meta",{property:"og:image",content:t.ogImage}),(0,l.jsx)("meta",{property:"og:image:alt",content:t.ogImageAlt})]}),(0,l.jsx)("meta",{name:"Keywords",content:"BMP to PDF converter, convert BMP to PDF online, free BMP to PDF converter, BMP to PDF online conversion, BMP to PDF online converter"}),(0,l.jsx)("link",{rel:"canonical",href:"".concat(R.G).concat(n)},"canonical")]}),(0,l.jsxs)("main",{children:[(0,l.jsxs)("header",{className:" mb-0",children:[(0,l.jsx)("h1",{className:"text-center text-[##262323] text-[40px] font-[800]",children:null===t||void 0===t?void 0:t.title}),(0,l.jsx)("p",{className:"text-[##6F6767] text-center text-[16px] leading-[22px] font-[400] mt-[16px]",children:null===t||void 0===t?void 0:t.shortDescription})]}),(0,l.jsx)("section",{className:"page_section mt-0",children:(0,l.jsx)("article",{className:"container",children:(0,l.jsxs)("section",{className:T().tool_container_wrapper,children:[0===ae&&(0,l.jsx)(y.Z,{handleChange:xe,isSpinnerActive:ne,isMultipleInput:!0,acceptedMimeType:a.acceptedInputMimeType}),1===ae&&(0,l.jsx)(P.Z,{acceptedMimeType:a.acceptedInputMimeType,files:F,enableAddingMoreFiles:!0,filesComponents:me,handleChange:xe,isSpinnerActive:ne,isMultipleInput:!0,deleteFiles:G,rotateFilesToRight:K,action:async()=>{ee(),ie(2);const{successfullyConvertedFiles:e,failedFiles:t}=await(0,C.GE)(a.outputFileMimeType,pe,F,B,a.URI);e.length===F.length?te(!0,[]):t.length===F.length?te(!1,t):te(!0,t),ie(3)},actionTitle:"Convert To PDF",handleCheckboxChange:e=>{ge(e.target.checked)},handleMarginChange:H,handleOrientationChange:V,handlePageSizeChange:Y,mergePages:he}),2===ae&&(0,l.jsx)(j.Z,{progress:"Converting Images To PDF"}),3===ae&&(0,l.jsxs)(x.Z,{title:"Your images conversion is complete!",handleDownload:()=>{he?(0,C.ME)(F,a.newFileNameSuffix):(0,C.wj)(F)},handleResetInitialState:()=>{Z(),$(),ge(!0),ie(0)},children:[J&&(0,l.jsx)("div",{className:"row w-100 d-flex justify-content-center text-center mt-5 mb-5",children:(0,l.jsx)(o.Z,{size:130,color:"#EE1B22"})}),Q.length>0&&(0,l.jsx)(u.Z,{alerts:Q,type:"error",icon:(0,l.jsx)(r.Z,{size:22})})]})]})})}),(0,l.jsx)(S.Z,{title:null===t||void 0===t?void 0:t.stepDescription,stepsArray:(null===t||void 0===t?void 0:t.Steps)&&t.Steps.map(((e,t)=>({number:t+1,description:e.title})))}),(0,l.jsx)(m.Z,{title:null===t||void 0===t?void 0:t.featuresTitle,featuresArray:(null===t||void 0===t?void 0:t.Features)&&t.Features.map((e=>({title:e.title,description:e.description,icon:e.icon})))}),(0,l.jsx)("section",{className:" ",children:(0,l.jsx)("article",{className:"mt-[100px] ",children:(0,l.jsxs)("div",{className:"lg:flex ",children:[(0,l.jsx)("header",{className:"",children:(0,l.jsx)("h4",{className:"text-[#262323] lg:w-[200%] text-[32px] font-[600] tracking-wide",children:null===t||void 0===t?void 0:t.longDescriptionTitle})}),(0,l.jsx)("section",{className:"lg:ml-[220px] text-[16px] font-[400] leading-[24px] lg:mt-0 mt-5 text-[##6F6767]",children:(null===t||void 0===t?void 0:t.longDescription)&&(0,N.ZP)(t.longDescription)})]})})})]})]})}}},function(e){e.O(0,[7311,2657,7943,2080,7961,8720,7418,3891,2888,9774,179],(function(){return t=9631,e(e.s=t);var t}));var t=e.O();_N_E=t}]);