<commit_before><link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/paper-dialog/paper-dialog.html">
<link rel="import" href="../../bower_components/paper-dialog-scrollable/paper-dialog-scrollable.html">
<link rel="import" href="../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../bower_components/paper-input/paper-input.html">

<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">

<dom-module id="life-collection-detail-dialog">
  <template>
    <style>
      .buttons {
        @apply(--layout);
        @apply(--layout-justified);
      }
      paper-button.delete {
        color: var(--paper-red-500);
      }
    </style>
    <paper-dialog id="dialog">
      <h2>Collection Detail</h2>
      <paper-dialog-scrollable>
        <paper-input label="Title" value="{{target.title}}"></paper-input>
        <div style="position: relative;">
          <a href="[[_downloadURL]]" download="[[_downloadFileName]]">
            <img src="[[target.dataUrl]]" style="max-height: 60vh; max-width: 100%; width: auto;">
          </a>
        </div>
        <!-- <span>[[target.createdAt]]</span>
        <span>[[target.updatedAt]]</span> -->
        <paper-input label="Share URL" value="[[target.shareUrl]]"></paper-input>
      </paper-dialog-scrollable>
      <div class="buttons">
        <paper-button class="delete" on-tap="_openConfirmationDialog">Delete</paper-button>
        <paper-button dialog-confirm autofocus>OK</paper-button>
      </div>
    </paper-dialog>
    <paper-dialog id="confirmation">
      <div>Are you sure?</div>
      <div class="buttons">
        <paper-button dialog-dismiss>Cancel</paper-button>
        <paper-button dialog-confirm autofocus on-tap="_deleteTarget">OK</paper-button>
      </div>
    </paper-dialog>
  </template>

  <script>
    Polymer({
      is: 'life-collection-detail-dialog',
      properties: {
        target: {
          type: Object
        },

        _downloadURL: {
          type: String,<commit_msg>hide share url #23<commit_after><link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/paper-dialog/paper-dialog.html">
<link rel="import" href="../../bower_components/paper-dialog-scrollable/paper-dialog-scrollable.html">
<link rel="import" href="../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../bower_components/paper-input/paper-input.html">

<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">

<dom-module id="life-collection-detail-dialog">
  <template>
    <style>
      .buttons {
        @apply(--layout);
        @apply(--layout-justified);
      }
      paper-button.delete {
        color: var(--paper-red-500);
      }
    </style>
    <paper-dialog id="dialog">
      <h2>Collection Detail</h2>
      <paper-dialog-scrollable>
        <paper-input label="Title" value="{{target.title}}"></paper-input>
        <div style="position: relative;">
          <a href="[[_downloadURL]]" download="[[_downloadFileName]]">
            <img src="[[target.dataUrl]]" style="max-height: 60vh; max-width: 100%; width: auto;">
          </a>
        </div>
        <!-- <span>[[target.createdAt]]</span>
        <span>[[target.updatedAt]]</span> -->
        <!-- <paper-input label="Share URL" value="[[target.shareUrl]]"></paper-input> -->
      </paper-dialog-scrollable>
      <div class="buttons">
        <paper-button class="delete" on-tap="_openConfirmationDialog">Delete</paper-button>
        <paper-button dialog-confirm autofocus>OK</paper-button>
      </div>
    </paper-dialog>
    <paper-dialog id="confirmation">
      <div>Are you sure?</div>
      <div class="buttons">
        <paper-button dialog-dismiss>Cancel</paper-button>
        <paper-button dialog-confirm autofocus on-tap="_deleteTarget">OK</paper-button>
      </div>
    </paper-dialog>
  </template>

  <script>
    Polymer({
      is: 'life-collection-detail-dialog',
      properties: {
        target: {
          type: Object
        },

        _downloadURL: {
          type: String,
{'fraction_non_alphanumeric': 0.1920152091254753, 'fraction_numerical': 0.005228136882129277, 'mean_word_length': 2.791891891891892, 'pattern_counts': {'":': 0, '<': 100, '<?xml version=': 0, '>': 100, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7386162', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1278, 'n_words': 196}