pdf-master-landing 0.2.15 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -1 +1 @@
1
- {"app_name":"pdf_master","version":"0.2.15","build_number":"38","package_name":"pdf_master"}
1
+ {"app_name":"pdf_master","version":"0.2.18","build_number":"41","package_name":"pdf_master"}
@@ -0,0 +1 @@
1
+ import{u,j as e,s as y,r as l,L as M,H as L,F as E,c as S}from"./tokens-CzcuV8ia.js";const w=new Set,C="/app/".replace(/\/?$/,"/");function c(s){return C+s.replace(/^\//,"")}function R(s,t,n={}){if(w.has(s+":"+t))return;w.add(s+":"+t);const r=document.createElement("link");r.rel=s,r.href=t,Object.entries(n).forEach(([a,d])=>r.setAttribute(a,d)),document.head.appendChild(r)}function o(s,t){R("prefetch",s,t?{as:t,crossorigin:"anonymous"}:{})}function A(){const s=navigator.connection;return s?!!(s.saveData||s.effectiveType&&/(^|-)(2g|slow-2g)$/.test(s.effectiveType)):!1}let v=!1;function j(){if(v||(v=!0,o(c("flutter_bootstrap.js"),"script"),o(c("manifest.json")),A()))return;("requestIdleCallback"in window?t=>window.requestIdleCallback(t):t=>setTimeout(t,600))(()=>{o(c("main.dart.js"),"script"),o(c("flutter.js"),"script"),o(c("flutter_service_worker.js"),"script"),o(c("canvaskit/canvaskit.js"),"script"),o(c("canvaskit/canvaskit.wasm"),"fetch"),o(c("canvaskit/skwasm.wasm"),"fetch"),o(c("sqlite3.wasm"),"fetch"),o(c("drift_worker.dart.js"),"script"),o(c("icons/Icon-192.png"),"image")})}function z(s="_self"){const t=c("index.html");s==="_blank"?window.open(t,"_blank","noopener"):window.location.href=t}function P(){const{t:s}=u();return e.jsx("section",{id:"top",className:"hero",children:e.jsxs("div",{className:"wrap hero__inner",children:[e.jsxs("div",{className:"hero__copy",children:[e.jsxs("h1",{className:"hero__title",children:[s.heroTitleLine1,e.jsx("br",{}),s.heroTitleLine2]}),e.jsx("p",{className:"hero__lede",children:s.heroLede}),e.jsxs("div",{className:"hero__actions",children:[e.jsx("a",{href:"#download",className:"btn btn--primary btn--lg",onClick:y("download"),children:s.heroDownload}),e.jsx("button",{type:"button",className:"btn btn--ghost btn--lg",onClick:()=>z("_self"),onMouseEnter:j,children:s.heroExperience})]})]}),e.jsx("div",{className:"hero__visual","aria-hidden":!0,children:e.jsxs("div",{className:"window",children:[e.jsxs("div",{className:"window__bar",children:[e.jsxs("span",{className:"window__dots",children:[e.jsx("i",{}),e.jsx("i",{}),e.jsx("i",{})]}),e.jsx("span",{className:"window__title",children:"document.pdf"})]}),e.jsxs("div",{className:"window__body",children:[e.jsxs("aside",{className:"window__sidebar",children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]}),e.jsxs("div",{className:"window__page",children:[e.jsx("img",{src:"/brand/app-mark.png",alt:"",className:"window__mark"}),e.jsx("span",{className:"page-line",style:{width:"90%"}}),e.jsx("span",{className:"page-line",style:{width:"74%"}}),e.jsx("span",{className:"page-line page-line--hl",style:{width:"60%"}}),e.jsx("span",{className:"page-line",style:{width:"88%"}}),e.jsx("span",{className:"page-line",style:{width:"52%"}}),e.jsx("span",{className:"page-line",style:{width:"82%"}}),e.jsx("span",{className:"page-line",style:{width:"68%"}})]})]})]})})]})})}function I(){const{t:s}=u(),t=s.features;return e.jsx("section",{id:"features",className:"features",children:e.jsxs("div",{className:"wrap",children:[e.jsxs("header",{className:"features__head",children:[e.jsx("h2",{children:s.featuresTitle}),e.jsx("p",{children:s.featuresLead})]}),e.jsx("div",{className:"features__grid",children:t.map(n=>e.jsxs("article",{className:"card",children:[e.jsx("div",{className:"card__icon",children:e.jsx(O,{name:n.icon})}),e.jsx("h3",{children:n.title}),e.jsx("p",{children:n.body})]},n.title))})]})})}function O({name:s}){const t={width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0};switch(s){case"annotate":return e.jsxs("svg",{...t,children:[e.jsx("path",{d:"M4 18l4-1 11-11a2 2 0 0 0-3-3L5 14l-1 4z"}),e.jsx("path",{d:"M14 5l3 3"})]});case"merge":return e.jsxs("svg",{...t,children:[e.jsx("rect",{x:"4",y:"4",width:"8",height:"10",rx:"1.5"}),e.jsx("rect",{x:"12",y:"10",width:"8",height:"10",rx:"1.5"}),e.jsx("path",{d:"M8 16v2a2 2 0 0 0 2 2h2M14 4h1a2 2 0 0 1 2 2v2"})]});case"image":return e.jsxs("svg",{...t,children:[e.jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2"}),e.jsx("path",{d:"M7 15l3-3 3 3 2-2 4 4"}),e.jsx("path",{d:"M8 9h.01"})]});case"secure":return e.jsxs("svg",{...t,children:[e.jsx("path",{d:"M12 2l7 4v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6l7-4z"}),e.jsx("path",{d:"M9 12h6M10 12v-2a2 2 0 0 1 4 0v2M10 12v4h4v-4"})]});case"cross":return e.jsxs("svg",{...t,children:[e.jsx("rect",{x:"2",y:"4",width:"14",height:"10",rx:"1.5"}),e.jsx("rect",{x:"14",y:"9",width:"8",height:"11",rx:"1.5"}),e.jsx("path",{d:"M5 18h6"})]});case"offline":return e.jsxs("svg",{...t,children:[e.jsx("path",{d:"M12 2l8 4v6c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6l8-4z"}),e.jsx("path",{d:"M9 12l2 2 4-4"})]})}}function T({open:s,title:t,message:n,closeLabel:r,confirmLabel:a,onClose:d}){const h=l.useRef(null),f=l.useRef(null),_=l.useId(),g=l.useId();l.useEffect(()=>{const i=h.current;i&&(s&&!i.open?(i.showModal(),f.current?.focus()):!s&&i.open&&i.close())},[s]);const m=()=>h.current?.close(),b=i=>{if(i.target!==i.currentTarget)return;const p=i.currentTarget.getBoundingClientRect();(i.clientX<p.left||i.clientX>p.right||i.clientY<p.top||i.clientY>p.bottom)&&m()};return e.jsx("dialog",{ref:h,className:"notice-dialog","aria-labelledby":_,"aria-describedby":g,onClose:d,onClick:b,children:e.jsxs("div",{className:"notice-dialog__content",children:[e.jsxs("header",{className:"notice-dialog__header",children:[e.jsx("h2",{id:_,children:t}),e.jsx("button",{type:"button",className:"notice-dialog__close",onClick:m,"aria-label":r,children:e.jsx(D,{})})]}),e.jsx("p",{id:g,className:"notice-dialog__message",children:n}),e.jsx("footer",{className:"notice-dialog__footer",children:e.jsx("button",{ref:f,type:"button",className:"btn btn--brand notice-dialog__action",onClick:m,children:a})})]})})}function D(){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:e.jsx("path",{d:"m7 7 10 10M17 7 7 17",strokeLinecap:"round"})})}const N="9PF542ZFDZQL",U=`ms-windows-store://pdp/?productid=${N}`,W=`https://apps.microsoft.com/detail/${N}`,k="6788211780",B=`itms-apps://apps.apple.com/app/id${k}`,V=`macappstore://apps.apple.com/app/id${k}`,F="https://play.google.com/store/apps/details?id=com.morris.pdf.master",$="https://appgallery.huawei.com/app/detail?id=com.morris.pdf.master",H="https://github.com/chengjie-jlu/pdf_master_release",q=[{key:"mac",brand:"apple",href:V},{key:"ios",brand:"apple",href:B},{key:"windows",brand:"windows"},{key:"android",brand:"play",href:F},{key:"ohos",brand:"harmony",href:$},{key:"linux",brand:"github",href:H}];function G(){const{t:s}=u();return e.jsx("section",{id:"download",className:"download",children:e.jsxs("div",{className:"wrap",children:[e.jsx("header",{className:"download__head",children:e.jsx("h2",{children:s.downloadTitle})}),e.jsx("div",{className:"store-grid",children:q.map(t=>e.jsx(Y,{store:t},t.key))})]})})}function Y({store:s}){const{t}=u(),[n,r]=l.useState(null),a=t.stores[s.key],d=s.key!=="linux",h=()=>{if(s.key==="windows"){x(X());return}if((s.key==="mac"||s.key==="ios")&&s.href){if(!Q(s.key)){r({title:a.store,message:t.storeRequiresAppleDevice(a.platform)});return}x(s.href);return}if(s.href){x(s.href);return}r({title:a.store,message:t.storeComingSoon(a.store)})};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:"store",onClick:h,children:[e.jsx("span",{className:"store__logo",children:e.jsx(J,{name:s.brand})}),e.jsxs("div",{className:"store__text",children:[e.jsx("span",{className:"store__store",children:a.store}),e.jsxs("span",{className:"store__meta",children:[d?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"store__platform",children:a.platform}),e.jsx("span",{className:"store__dot","aria-hidden":!0,children:"·"})]}):null,a.meta]})]})]}),e.jsx(T,{open:n!=null,title:n?.title??"",message:n?.message??"",closeLabel:t.noticeClose,confirmLabel:t.noticeDismiss,onClose:()=>r(null)})]})}function X(){return Z()?U:W}function x(s){/^https?:/i.test(s)?window.open(s,"_blank","noopener"):window.location.href=s}function Z(){const t=navigator.userAgentData?.platform||navigator.platform;return/win/i.test(t)||/windows/i.test(navigator.userAgent)}function Q(s){const n=navigator.userAgentData?.platform||navigator.platform,r=/mac/i.test(n)&&navigator.maxTouchPoints>1,a=/iphone|ipad|ipod/i.test(navigator.userAgent)||r,d=/mac/i.test(n)&&!a;return s==="ios"?a:d}function J({name:s}){const t={width:20,height:20,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0};switch(s){case"apple":return e.jsx("svg",{...t,children:e.jsx("path",{d:"M16.7 12.7c0-2.4 2-3.5 2-3.6-1.1-1.6-2.8-1.8-3.4-1.9-1.4-.1-2.8.9-3.5.9s-1.8-.9-3-.9c-1.5 0-3 .9-3.8 2.3-1.6 2.8-.4 7 1.2 9.3.7 1.1 1.6 2.4 2.8 2.4 1.1 0 1.6-.7 2.9-.7s1.7.7 3 .7c1.2 0 2-.7 2.7-1.8.6-.9.9-1.8 1.1-2.7-2.4-1-2-3.7-2-4zM14.6 5.5c.6-.7 1-1.7 1-2.7-.9 0-2 .6-2.6 1.3-.6.6-1.1 1.6-1 2.6 1 .1 2-.5 2.6-1.2z"})});case"windows":return e.jsx("svg",{...t,children:e.jsx("path",{d:"M3 5.5l8-1.1V12H3V5.5zM12 4.3l9-1.3V12h-9V4.3zM3 13h8v6.6l-8-1.1V13zm9 0h9v8.7l-9-1.3V13z"})});case"play":return e.jsx("svg",{...t,children:e.jsx("path",{d:"M3.609 1.814L13.792 12 3.61 22.186a.996.996 0 01-.61-.92V2.734a1 1 0 01.609-.92zm10.89 10.893l2.302 2.303-10.937 6.333 8.635-8.636zm3.199-3.198l2.808 1.626a1 1 0 010 1.73l-2.808 1.626L15.297 12l2.401-2.491zM5.864 2.658L16.802 8.99l-2.303 2.303L5.864 2.658z"})});case"github":return e.jsx("svg",{...t,children:e.jsx("path",{d:"M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.57.1.78-.25.78-.55v-2.14c-3.2.7-3.87-1.37-3.87-1.37-.52-1.33-1.28-1.69-1.28-1.69-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.76 2.7 1.25 3.36.96.1-.75.4-1.25.73-1.54-2.55-.29-5.23-1.28-5.23-5.68 0-1.25.45-2.28 1.19-3.08-.12-.29-.52-1.46.11-3.04 0 0 .97-.31 3.16 1.18.92-.25 1.9-.38 2.88-.39.98.01 1.96.14 2.88.39 2.19-1.49 3.15-1.18 3.15-1.18.63 1.58.23 2.75.11 3.04.74.8 1.19 1.83 1.19 3.08 0 4.42-2.69 5.39-5.25 5.67.42.36.79 1.06.79 2.14v3.16c0 .3.21.66.79.55A11.51 11.51 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5z"})});case"harmony":return e.jsx("svg",{...t,children:e.jsx("path",{d:"M3.67 6.14S1.82 7.91 1.72 9.78v.35c.08 1.51 1.22 2.4 1.22 2.4 1.83 1.79 6.26 4.04 7.3 4.55 0 0 .06.03.1-.01l.02-.04v-.04C7.52 10.8 3.67 6.14 3.67 6.14zM9.65 18.6c-.02-.08-.1-.08-.1-.08l-7.38.26c.8 1.43 2.15 2.53 3.56 2.2.96-.25 3.16-1.78 3.88-2.3.06-.05.04-.09.04-.09zm.08-.78C6.49 15.63.21 12.28.21 12.28c-.15.46-.2.9-.21 1.3v.07c0 1.07.4 1.82.4 1.82.8 1.69 2.34 2.2 2.34 2.2.7.3 1.4.31 1.4.31.12.02 4.4 0 5.54 0 .05 0 .08-.05.08-.05v-.06c0-.03-.03-.05-.03-.05zM9.06 3.19a3.42 3.42 0 0 0-2.57 3.15v.41c.03.6.16 1.05.16 1.05.66 2.9 3.86 7.65 4.55 8.65.05.05.1.03.1.03a.1.1 0 0 0 .06-.1c1.06-10.6-1.11-13.42-1.11-13.42-.32.02-1.19.23-1.19.23zm8.299 2.27s-.49-1.8-2.44-2.28c0 0-.57-.14-1.17-.22 0 0-2.18 2.81-1.12 13.43.01.07.06.08.06.08.07.03.1-.03.1-.03.72-1.03 3.9-5.76 4.55-8.64 0 0 .36-1.4.02-2.34zm-2.92 13.07s-.07 0-.09.05c0 0-.01.07.03.1.7.51 2.85 2 3.88 2.3 0 0 .16.05.43.06h.14c.69-.02 1.9-.37 3-2.26l-7.4-.25zm7.83-8.41c.14-2.06-1.94-3.97-1.94-3.98 0 0-3.85 4.66-6.67 10.8 0 0-.03.08.02.13l.04.01h.06c1.06-.53 5.46-2.77 7.28-4.54 0 0 1.15-.93 1.21-2.42zm1.52 2.14s-6.28 3.37-9.52 5.55c0 0-.05.04-.03.11 0 0 .03.06.07.06 1.16 0 5.56 0 5.67-.02 0 0 .57-.02 1.27-.29 0 0 1.56-.5 2.37-2.27 0 0 .73-1.45.17-3.14z"})})}}function K(){return l.useEffect(()=>{j()},[]),e.jsxs(M,{children:[e.jsx(L,{}),e.jsxs("main",{children:[e.jsx(P,{}),e.jsx(I,{}),e.jsx(G,{})]}),e.jsx(E,{})]})}j();S(document.getElementById("root")).render(e.jsx(l.StrictMode,{children:e.jsx(K,{})}));
package/dist/index.html CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  <link rel="prefetch" href="/app/flutter_bootstrap.js" as="script" />
16
16
  <link rel="prefetch" href="/app/manifest.json" />
17
- <script type="module" crossorigin src="/assets/main-BQJk9z-o.js"></script>
17
+ <script type="module" crossorigin src="/assets/main-B9-XR1V3.js"></script>
18
18
  <link rel="modulepreload" crossorigin href="/assets/tokens-CzcuV8ia.js">
19
19
  <link rel="stylesheet" crossorigin href="/assets/style-DpAF4gqo.css">
20
20
  </head>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pdf-master-landing",
3
3
  "description": "PDF Master static landing site.",
4
- "version": "0.2.15",
4
+ "version": "0.2.18",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
7
7
  "files": [
@@ -1 +0,0 @@
1
- import{u,j as e,s as b,r as l,L as y,H as M,F as E,c as L}from"./tokens-CzcuV8ia.js";const _=new Set,C="/app/".replace(/\/?$/,"/");function c(s){return C+s.replace(/^\//,"")}function S(s,n,t={}){if(_.has(s+":"+n))return;_.add(s+":"+n);const i=document.createElement("link");i.rel=s,i.href=n,Object.entries(t).forEach(([a,d])=>i.setAttribute(a,d)),document.head.appendChild(i)}function o(s,n){S("prefetch",s,n?{as:n,crossorigin:"anonymous"}:{})}function R(){const s=navigator.connection;return s?!!(s.saveData||s.effectiveType&&/(^|-)(2g|slow-2g)$/.test(s.effectiveType)):!1}let w=!1;function x(){if(w||(w=!0,o(c("flutter_bootstrap.js"),"script"),o(c("manifest.json")),R()))return;("requestIdleCallback"in window?n=>window.requestIdleCallback(n):n=>setTimeout(n,600))(()=>{o(c("main.dart.js"),"script"),o(c("flutter.js"),"script"),o(c("flutter_service_worker.js"),"script"),o(c("canvaskit/canvaskit.js"),"script"),o(c("canvaskit/canvaskit.wasm"),"fetch"),o(c("canvaskit/skwasm.wasm"),"fetch"),o(c("sqlite3.wasm"),"fetch"),o(c("drift_worker.dart.js"),"script"),o(c("icons/Icon-192.png"),"image")})}function z(s="_self"){const n=c("index.html");s==="_blank"?window.open(n,"_blank","noopener"):window.location.href=n}function A(){const{t:s}=u();return e.jsx("section",{id:"top",className:"hero",children:e.jsxs("div",{className:"wrap hero__inner",children:[e.jsxs("div",{className:"hero__copy",children:[e.jsxs("h1",{className:"hero__title",children:[s.heroTitleLine1,e.jsx("br",{}),s.heroTitleLine2]}),e.jsx("p",{className:"hero__lede",children:s.heroLede}),e.jsxs("div",{className:"hero__actions",children:[e.jsx("a",{href:"#download",className:"btn btn--primary btn--lg",onClick:b("download"),children:s.heroDownload}),e.jsx("button",{type:"button",className:"btn btn--ghost btn--lg",onClick:()=>z("_self"),onMouseEnter:x,children:s.heroExperience})]})]}),e.jsx("div",{className:"hero__visual","aria-hidden":!0,children:e.jsxs("div",{className:"window",children:[e.jsxs("div",{className:"window__bar",children:[e.jsxs("span",{className:"window__dots",children:[e.jsx("i",{}),e.jsx("i",{}),e.jsx("i",{})]}),e.jsx("span",{className:"window__title",children:"document.pdf"})]}),e.jsxs("div",{className:"window__body",children:[e.jsxs("aside",{className:"window__sidebar",children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]}),e.jsxs("div",{className:"window__page",children:[e.jsx("img",{src:"/brand/app-mark.png",alt:"",className:"window__mark"}),e.jsx("span",{className:"page-line",style:{width:"90%"}}),e.jsx("span",{className:"page-line",style:{width:"74%"}}),e.jsx("span",{className:"page-line page-line--hl",style:{width:"60%"}}),e.jsx("span",{className:"page-line",style:{width:"88%"}}),e.jsx("span",{className:"page-line",style:{width:"52%"}}),e.jsx("span",{className:"page-line",style:{width:"82%"}}),e.jsx("span",{className:"page-line",style:{width:"68%"}})]})]})]})})]})})}function I(){const{t:s}=u(),n=s.features;return e.jsx("section",{id:"features",className:"features",children:e.jsxs("div",{className:"wrap",children:[e.jsxs("header",{className:"features__head",children:[e.jsx("h2",{children:s.featuresTitle}),e.jsx("p",{children:s.featuresLead})]}),e.jsx("div",{className:"features__grid",children:n.map(t=>e.jsxs("article",{className:"card",children:[e.jsx("div",{className:"card__icon",children:e.jsx(O,{name:t.icon})}),e.jsx("h3",{children:t.title}),e.jsx("p",{children:t.body})]},t.title))})]})})}function O({name:s}){const n={width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0};switch(s){case"annotate":return e.jsxs("svg",{...n,children:[e.jsx("path",{d:"M4 18l4-1 11-11a2 2 0 0 0-3-3L5 14l-1 4z"}),e.jsx("path",{d:"M14 5l3 3"})]});case"merge":return e.jsxs("svg",{...n,children:[e.jsx("rect",{x:"4",y:"4",width:"8",height:"10",rx:"1.5"}),e.jsx("rect",{x:"12",y:"10",width:"8",height:"10",rx:"1.5"}),e.jsx("path",{d:"M8 16v2a2 2 0 0 0 2 2h2M14 4h1a2 2 0 0 1 2 2v2"})]});case"image":return e.jsxs("svg",{...n,children:[e.jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2"}),e.jsx("path",{d:"M7 15l3-3 3 3 2-2 4 4"}),e.jsx("path",{d:"M8 9h.01"})]});case"secure":return e.jsxs("svg",{...n,children:[e.jsx("path",{d:"M12 2l7 4v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6l7-4z"}),e.jsx("path",{d:"M9 12h6M10 12v-2a2 2 0 0 1 4 0v2M10 12v4h4v-4"})]});case"cross":return e.jsxs("svg",{...n,children:[e.jsx("rect",{x:"2",y:"4",width:"14",height:"10",rx:"1.5"}),e.jsx("rect",{x:"14",y:"9",width:"8",height:"11",rx:"1.5"}),e.jsx("path",{d:"M5 18h6"})]});case"offline":return e.jsxs("svg",{...n,children:[e.jsx("path",{d:"M12 2l8 4v6c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6l8-4z"}),e.jsx("path",{d:"M9 12l2 2 4-4"})]})}}function P({open:s,title:n,message:t,closeLabel:i,confirmLabel:a,onClose:d}){const h=l.useRef(null),j=l.useRef(null),f=l.useId(),g=l.useId();l.useEffect(()=>{const r=h.current;r&&(s&&!r.open?(r.showModal(),j.current?.focus()):!s&&r.open&&r.close())},[s]);const m=()=>h.current?.close(),k=r=>{if(r.target!==r.currentTarget)return;const p=r.currentTarget.getBoundingClientRect();(r.clientX<p.left||r.clientX>p.right||r.clientY<p.top||r.clientY>p.bottom)&&m()};return e.jsx("dialog",{ref:h,className:"notice-dialog","aria-labelledby":f,"aria-describedby":g,onClose:d,onClick:k,children:e.jsxs("div",{className:"notice-dialog__content",children:[e.jsxs("header",{className:"notice-dialog__header",children:[e.jsx("h2",{id:f,children:n}),e.jsx("button",{type:"button",className:"notice-dialog__close",onClick:m,"aria-label":i,children:e.jsx(T,{})})]}),e.jsx("p",{id:g,className:"notice-dialog__message",children:t}),e.jsx("footer",{className:"notice-dialog__footer",children:e.jsx("button",{ref:j,type:"button",className:"btn btn--brand notice-dialog__action",onClick:m,children:a})})]})})}function T(){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:e.jsx("path",{d:"m7 7 10 10M17 7 7 17",strokeLinecap:"round"})})}const v="9PF542ZFDZQL",D=`ms-windows-store://pdp/?productid=${v}`,W=`https://apps.microsoft.com/detail/${v}`,N="6788211780",B=`itms-apps://apps.apple.com/app/id${N}`,U=`macappstore://apps.apple.com/app/id${N}`,V="https://play.google.com/store/apps/details?id=com.morris.pdf.master",F="https://github.com/chengjie-jlu/pdf_master_release",$=[{key:"mac",brand:"apple",href:U},{key:"ios",brand:"apple",href:B},{key:"windows",brand:"windows"},{key:"android",brand:"play",href:V},{key:"ohos",brand:"harmony"},{key:"linux",brand:"github",href:F}];function H(){const{t:s}=u();return e.jsx("section",{id:"download",className:"download",children:e.jsxs("div",{className:"wrap",children:[e.jsx("header",{className:"download__head",children:e.jsx("h2",{children:s.downloadTitle})}),e.jsx("div",{className:"store-grid",children:$.map(n=>e.jsx(q,{store:n},n.key))})]})})}function q({store:s}){const{t:n}=u(),[t,i]=l.useState(null),a=n.stores[s.key],d=s.key!=="linux"&&s.key!=="ohos",h=()=>{if(s.key==="windows"){window.location.href=G();return}if((s.key==="mac"||s.key==="ios")&&s.href){if(!X(s.key)){i({title:a.store,message:n.storeRequiresAppleDevice(a.platform)});return}window.location.href=s.href;return}if(s.href){window.open(s.href,"_blank","noopener");return}i({title:a.store,message:n.storeComingSoon(a.store)})};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:"store",onClick:h,children:[e.jsx("span",{className:"store__logo",children:e.jsx(Z,{name:s.brand})}),e.jsxs("div",{className:"store__text",children:[e.jsx("span",{className:"store__store",children:a.store}),e.jsxs("span",{className:"store__meta",children:[d?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"store__platform",children:a.platform}),e.jsx("span",{className:"store__dot","aria-hidden":!0,children:"·"})]}):null,a.meta]})]})]}),e.jsx(P,{open:t!=null,title:t?.title??"",message:t?.message??"",closeLabel:n.noticeClose,confirmLabel:n.noticeDismiss,onClose:()=>i(null)})]})}function G(){return Y()?D:W}function Y(){const n=navigator.userAgentData?.platform||navigator.platform;return/win/i.test(n)||/windows/i.test(navigator.userAgent)}function X(s){const t=navigator.userAgentData?.platform||navigator.platform,i=/mac/i.test(t)&&navigator.maxTouchPoints>1,a=/iphone|ipad|ipod/i.test(navigator.userAgent)||i,d=/mac/i.test(t)&&!a;return s==="ios"?a:d}function Z({name:s}){const n={width:20,height:20,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0};switch(s){case"apple":return e.jsx("svg",{...n,children:e.jsx("path",{d:"M16.7 12.7c0-2.4 2-3.5 2-3.6-1.1-1.6-2.8-1.8-3.4-1.9-1.4-.1-2.8.9-3.5.9s-1.8-.9-3-.9c-1.5 0-3 .9-3.8 2.3-1.6 2.8-.4 7 1.2 9.3.7 1.1 1.6 2.4 2.8 2.4 1.1 0 1.6-.7 2.9-.7s1.7.7 3 .7c1.2 0 2-.7 2.7-1.8.6-.9.9-1.8 1.1-2.7-2.4-1-2-3.7-2-4zM14.6 5.5c.6-.7 1-1.7 1-2.7-.9 0-2 .6-2.6 1.3-.6.6-1.1 1.6-1 2.6 1 .1 2-.5 2.6-1.2z"})});case"windows":return e.jsx("svg",{...n,children:e.jsx("path",{d:"M3 5.5l8-1.1V12H3V5.5zM12 4.3l9-1.3V12h-9V4.3zM3 13h8v6.6l-8-1.1V13zm9 0h9v8.7l-9-1.3V13z"})});case"play":return e.jsx("svg",{...n,children:e.jsx("path",{d:"M3.609 1.814L13.792 12 3.61 22.186a.996.996 0 01-.61-.92V2.734a1 1 0 01.609-.92zm10.89 10.893l2.302 2.303-10.937 6.333 8.635-8.636zm3.199-3.198l2.808 1.626a1 1 0 010 1.73l-2.808 1.626L15.297 12l2.401-2.491zM5.864 2.658L16.802 8.99l-2.303 2.303L5.864 2.658z"})});case"github":return e.jsx("svg",{...n,children:e.jsx("path",{d:"M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.57.1.78-.25.78-.55v-2.14c-3.2.7-3.87-1.37-3.87-1.37-.52-1.33-1.28-1.69-1.28-1.69-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.76 2.7 1.25 3.36.96.1-.75.4-1.25.73-1.54-2.55-.29-5.23-1.28-5.23-5.68 0-1.25.45-2.28 1.19-3.08-.12-.29-.52-1.46.11-3.04 0 0 .97-.31 3.16 1.18.92-.25 1.9-.38 2.88-.39.98.01 1.96.14 2.88.39 2.19-1.49 3.15-1.18 3.15-1.18.63 1.58.23 2.75.11 3.04.74.8 1.19 1.83 1.19 3.08 0 4.42-2.69 5.39-5.25 5.67.42.36.79 1.06.79 2.14v3.16c0 .3.21.66.79.55A11.51 11.51 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5z"})});case"harmony":return e.jsx("svg",{...n,children:e.jsx("path",{d:"M3.67 6.14S1.82 7.91 1.72 9.78v.35c.08 1.51 1.22 2.4 1.22 2.4 1.83 1.79 6.26 4.04 7.3 4.55 0 0 .06.03.1-.01l.02-.04v-.04C7.52 10.8 3.67 6.14 3.67 6.14zM9.65 18.6c-.02-.08-.1-.08-.1-.08l-7.38.26c.8 1.43 2.15 2.53 3.56 2.2.96-.25 3.16-1.78 3.88-2.3.06-.05.04-.09.04-.09zm.08-.78C6.49 15.63.21 12.28.21 12.28c-.15.46-.2.9-.21 1.3v.07c0 1.07.4 1.82.4 1.82.8 1.69 2.34 2.2 2.34 2.2.7.3 1.4.31 1.4.31.12.02 4.4 0 5.54 0 .05 0 .08-.05.08-.05v-.06c0-.03-.03-.05-.03-.05zM9.06 3.19a3.42 3.42 0 0 0-2.57 3.15v.41c.03.6.16 1.05.16 1.05.66 2.9 3.86 7.65 4.55 8.65.05.05.1.03.1.03a.1.1 0 0 0 .06-.1c1.06-10.6-1.11-13.42-1.11-13.42-.32.02-1.19.23-1.19.23zm8.299 2.27s-.49-1.8-2.44-2.28c0 0-.57-.14-1.17-.22 0 0-2.18 2.81-1.12 13.43.01.07.06.08.06.08.07.03.1-.03.1-.03.72-1.03 3.9-5.76 4.55-8.64 0 0 .36-1.4.02-2.34zm-2.92 13.07s-.07 0-.09.05c0 0-.01.07.03.1.7.51 2.85 2 3.88 2.3 0 0 .16.05.43.06h.14c.69-.02 1.9-.37 3-2.26l-7.4-.25zm7.83-8.41c.14-2.06-1.94-3.97-1.94-3.98 0 0-3.85 4.66-6.67 10.8 0 0-.03.08.02.13l.04.01h.06c1.06-.53 5.46-2.77 7.28-4.54 0 0 1.15-.93 1.21-2.42zm1.52 2.14s-6.28 3.37-9.52 5.55c0 0-.05.04-.03.11 0 0 .03.06.07.06 1.16 0 5.56 0 5.67-.02 0 0 .57-.02 1.27-.29 0 0 1.56-.5 2.37-2.27 0 0 .73-1.45.17-3.14z"})})}}function Q(){return l.useEffect(()=>{x()},[]),e.jsxs(y,{children:[e.jsx(M,{}),e.jsxs("main",{children:[e.jsx(A,{}),e.jsx(I,{}),e.jsx(H,{})]}),e.jsx(E,{})]})}x();L(document.getElementById("root")).render(e.jsx(l.StrictMode,{children:e.jsx(Q,{})}));