{
  "always_run_in_app": true,
  "icon": {
    "color": "teal",
    "glyph": "bell"
  },
  "name": "新樓簽章提醒管理",
  "script": "const p=(await Notification.allPending()).filter(n=>/^sinlau-sign-\\d+$/.test(n.identifier)).sort((a,b)=>Number(a.identifier.split(\"-\").pop())-Number(b.identifier.split(\"-\").pop()));const a=new Alert();a.title=\"管理簽章提醒\";a.message=p.length?\"選擇要取消的提醒時間。\":\"目前沒有簽章提醒排程。\";for(const n of p){a.addAction(\"取消 \"+String(Number(n.identifier.split(\"-\").pop())).padStart(2,\"0\")+\":00\");}if(p.length)a.addDestructiveAction(\"取消全部簽章提醒\");a.addCancelAction(\"返回\");const c=await a.presentAlert();if(c>=0){const q=new Alert();q.title=\"確認取消提醒\";q.message=c<p.length?\"取消此時間的每日簽章提醒？\":\"取消全部每日簽章提醒？不影響 Scriptable 的其他通知。\";q.addDestructiveAction(\"取消提醒\");q.addCancelAction(\"保留\");if(await q.presentAlert()===0){await Notification.removePending(c<p.length?[p[c].identifier]:p.map(n=>n.identifier));}}Script.complete();\n",
  "share_sheet_inputs": []
}
