{"version":3,"file":"page_gallery_controller-PTPsyqEu.js","names":[],"sources":["../../../app/javascript/controllers/page_share_controller.js","../../../app/javascript/controllers/page_gallery_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\"\n\n// \"Save this page\" on a QR code page (AccountPagesHelper#account_page_save).\n//\n// A web page can't add a bookmark by itself — no phone browser allows it — so\n// the button hands the page's address to the phone's own share sheet, where the\n// shopper bookmarks it, texts it or mails it to themselves with their own apps.\n// Nothing is sent by us. Where a browser has no share sheet (most desktops) the\n// button copies the link instead and says so.\n//\n// The button is rendered hidden and shown here, so a page without script never\n// shows a button that does nothing: it keeps the two plain links under it,\n// which open the shopper's mail and messages with the address filled in. Those\n// links step aside once the share sheet is on offer.\n//\n//
…mailto: and sms: links…
\n//Link copied
\n//